summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Give % punctuation syntax in fortran modes (bug#8820)Glenn Morris2011-06-113-11/+9
| | | | | | | * lisp/progmodes/fortran.el (fortran-mode-syntax-table): * lisp/progmodes/f90.el (f90-mode-syntax-table): Set % to punctuation. (f90-find-tag-default): Remove, no longer needed.
* * emacs-lisp/syntax.el (syntax-ppss): Clarify which items are invalid.Daniel Colascione2011-06-112-1/+5
|
* Handle gif subimage animation delay correctly.Chong Yidong2011-06-112-24/+32
| | | | | | | | | | | * lisp/image.el (image-animated-p): Return animation delay in seconds. Avoid bit manipulation in Lisp; use `delay' entry in the metadata. (image-animate-timeout): Remove DELAY argument. Use image-animated-p to get animation delay for each frame. (image-animate): Caller changed. * src/image.c (gif_load): Add animation frame delay to the metadata. (syms_of_image): Use DEFSYM. New symbol `delay'.
* * net/tramp.el (tramp-debug-message): Add `tramp-with-progress-reporter'Michael Albinus2011-06-112-1/+7
| | | | to ignored backtrace functions.
* Handle overlapping appointments in appt.el (bug#8377)Glenn Morris2011-06-112-55/+71
| | | | | | | * lisp/calendar/appt.el (appt-disp-window-function): Doc fix. (appt-check): Handle overlapping appointments. * etc/NEWS: Mention appt-disp-window-function should handle lists now.
* Window configuration, balancing and fit-to-buffer rewrites.Martin Rudalics2011-06-112-400/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * window.c (delete_deletable_window): Re-add. (Fset_window_configuration): Rewrite to handle dead buffers and consequently deletable windows. (window_tree, Fwindow_tree): Remove. Supply functionality in window.el. (compare_window_configurations): Simplify code. * window.el (window-tree-1, window-tree): New functions, moving the latter to window.el. (bw-get-tree, bw-get-tree-1, bw-find-tree-sub) (bw-find-tree-sub-1, bw-l, bw-t, bw-r, bw-b, bw-dir, bw-eqdir) (bw-refresh-edges): Remove. (balance-windows-1, balance-windows-2): New functions. (balance-windows): Rewrite in terms of window tree functions, balance-windows-1 and balance-windows-2. (bw-adjust-window): Remove. (balance-windows-area-adjust): New function with functionality of bw-adjust-window but using resize-window. (set-window-text-height): Rewrite doc-string. Use normalize-live-window and resize-window. (enlarge-window-horizontally, shrink-window-horizontally): Rename argument to DELTA. (window-buffer-height): New function. (fit-window-to-buffer, shrink-window-if-larger-than-buffer): Rewrite using new window resize routines. (kill-buffer-and-window, mouse-autoselect-window-select): Use ignore-errors instead of condition-case. (quit-window): Call delete-frame instead of delete-windows-on for the only buffer on frame.
* Move/add window-buffer-related functions to window.el.Martin Rudalics2011-06-116-183/+777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * buffer.c: New Lisp objects Qbuffer_list_update_hook and Qclone_number. Remove external declaration of Qdelete_window. (Fbuffer_list): Rewrite doc-string. Minor restructuring of code. (Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer): Run Qbuffer_list_update_hook if allowed. (Fother_buffer): Rewrite doc-string. Major rewrite for new buffer list implementation. (other_buffer_safely): New function. (Fkill_buffer): Replace call to replace_buffer_in_all_windows by calls to replace_buffer_in_windows and replace_buffer_in_windows_safely. Run Qbuffer_list_update_hook if allowed. (record_buffer): Inhibit quitting and rewrite using quittable functions. Run Qbuffer_list_update_hook if allowed. (Frecord_buffer, Funrecord_buffer): New functions. (switch_to_buffer_1, Fswitch_to_buffer): Remove. Move switch-to-buffer to window.el. (bury-buffer): Move to window.el. (Vbuffer_list_update_hook): New variable. * lisp.h (other_buffer_safely): Add prototype in buffer.c section. * window.h (resize_frame_windows): Move up in code. (Fwindow_frame): Remove EXFUN. (replace_buffer_in_all_windows): Remove prototype. (replace_buffer_in_windows_safely): Add prototype. * window.c: Declare Qdelete_window static again. Move down declaration of select_count. (Fnext_window, Fprevious_window): Rewrite doc-strings. (Fother_window): Move to window.el. (window_loop): Remove DELETE_BUFFER_WINDOWS and UNSHOW_BUFFER cases. Add REPLACE_BUFFER_IN_WINDOWS_SAFELY case. (Fdelete_windows_on, Freplace_buffer_in_windows): Move to window.el. (replace_buffer_in_windows): Implement by calling Qreplace_buffer_in_windows. (replace_buffer_in_all_windows): Remove with some functionality moved into replace_buffer_in_windows_safely. (replace_buffer_in_windows_safely): New function. (select_window_norecord, select_frame_norecord): Move in front of run_window_configuration_change_hook. Remove now obsolete declarations. (Fset_window_buffer): Rewrite doc-string. Call Qrecord_window_buffer. (keys_of_window): Move binding for other-window to window.el. * loadup.el (top-level): Load window before files for the sake of replace-buffer-in-windows. * files.el (read-buffer-to-switch) (switch-to-buffer-other-window) (switch-to-buffer-other-frame, display-buffer-other-frame): Move to window.el. * simple.el (get-next-valid-buffer, last-buffer, next-buffer) (previous-buffer): Move to window.el. * bindings.el (unbury-buffer): Move to window.el. * window.el (delete-other-windows-vertically): Move after definition of delete-other-windows. (other-window, delete-windows-on, replace-buffer-in-windows): Move here from window.c. (record-window-buffer, unrecord-window-buffer) (set-window-buffer-start-and-point, switch-to-prev-buffer) (switch-to-next-buffer): New functions. (get-next-valid-buffer, last-buffer, next-buffer): Move here from simple.el. Call switch-to-next-buffer. (previous-buffer): Move here from simple.el. Call switch-to-prev-buffer. (bury-buffer): Move here from buffer.c. Switch to previous buffer when window cannot be deleted. (unbury-buffer): Move here from bindings.el. (ctl-x-map): Move binding for other-window from window.c to here. (read-buffer-to-switch, switch-to-buffer-other-window) (switch-to-buffer-other-frame): Move here from files.el. (normalize-buffer-to-switch-to): New functions. (switch-to-buffer): Move here from buffer.c. Use read-buffer-to-switch and normalize-buffer-to-switch-to.
* Move window resize code from window.c to window.el.Martin Rudalics2011-06-103-107/+763
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * window.c: Remove declarations of Qwindow_size_fixed, window_min_size_1, window_min_size_2, window_min_size, size_window, window_fixed_size_p, enlarge_window, delete_window. Remove static from declaration of Qdelete_window, it's temporarily needed by Fbury_buffer. (replace_window): Don't assign orig_top_line and orig_total_lines. (Fdelete_window, delete_window): Remove. Window deletion is handled by window.el. (window_loop): Remove DELETE_OTHER_WINDOWS case. Replace Fdelete_window calls with calls to Qdelete_window. (Fdelete_other_windows): Remove. Deleting other windows is handled by window.el. (window_fixed_size_p): Remove. Fixed-sizeness of windows is handled in window.el. (window_min_size_2, window_min_size_1, window_min_size): Remove. Window minimum sizes are handled in window.el. (shrink_windows, size_window, set_window_height) (set_window_width, change_window_heights, window_height) (window_width, CURBEG, CURSIZE, enlarge_window) (adjust_window_trailing_edge, Fadjust_window_trailing_edge) (Fenlarge_window, Fshrink_window): Remove. Window resizing is handled in window.el. (make_dummy_parent): Rename to make_parent_window and give it a second argument horflag. (make_window): Don't set resize_proportionally any more. (Fsplit_window): Remove. Windows are split in window.el. (save_restore_action, save_restore_orig_size) (shrink_window_lowest_first, save_restore_orig_size): Remove. Resize mini windows in window.el. (grow_mini_window, shrink_mini_window): Implement by calling Qresize_root_window_vertically, resize_window_check and resize_window_apply. (saved_window, Fset_window_configuration, save_window_save): Do not handle orig_top_line, orig_total_lines, and resize_proportionally. (window_min_height, window_min_width): Move to window.el. (keys_of_window): Move bindings for delete-other-windows, split-window, delete-window and enlarge-window to window.el. * buffer.c: Temporarily extern Qdelete_window. (Fbury_buffer): Temporarily call Qdelete_window instead of Fdelete_window (Fbury_buffer will move to window.el soon). * frame.c (set_menu_bar_lines_1): Remove code handling orig_top_line and orig_total_lines. * dispnew.c (adjust_frame_glyphs_initially): Don't use set_window_height but set heights directly. (change_frame_size_1): Use resize_frame_windows. * xdisp.c (init_xdisp): Don't use set_window_height but set heights directly. * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use resize_frame_windows instead of change_window_heights and run run_window_configuration_change_hook. * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows instead of change_window_heights and run run_window_configuration_change_hook. * window.el (window-min-height, window-min-width): Move here from window.c. Add defcustoms and rewrite doc-strings. (resize-mini-window, resize-window): New functions. (adjust-window-trailing-edge, enlarge-window, shrink-window): Move here from window.c. (maximize-window, minimize-window): New functions. (delete-window, delete-other-windows, split-window): Move here from window.c. (window-split-min-size): New function. (split-window-keep-point): Mention split-window-above-each-other instead of split-window-vertically. (split-window-above-each-other, split-window-vertically): Rename split-window-vertically to split-window-above-each-other and provide defalias for old definition. (split-window-side-by-side, split-window-horizontally): Rename split-window-horizontally to split-window-side-by-side and provide defalias for the old definition. (ctl-x-map): Move bindings for delete-window, delete-other-windows and enlarge-window here from window.c. Replace bindings for split-window-vertically and split-window-horizontally by bindings for split-window-above-each-other and split-window-side-by-side. * cus-start.el (all): Remove entries for window-min-height and window-min-width. Add entries for window-splits and window-nest.
* Improve Gnus' dribble data handling.Katsumi Yamaoka2011-06-106-26/+77
|
* * lisp/calendar/appt.el (appt-mode-line): Eliminate one local variable.Glenn Morris2011-06-091-3/+3
|
* Eliminate some code duplication in appt.el.Glenn Morris2011-06-092-28/+36
| | | | | * lisp/calendar/appt.el (appt-mode-line): New function. (appt-check, appt-disp-window): Use it.
* Allow/recommend explicit args for minor-modes in file local eval:s.Glenn Morris2011-06-094-4/+9
| | | | | | | | | | | | * lisp/files.el (hack-one-local-variable-eval-safep): Allow minor-modes with explicit +/-1 arguments. * doc/emacs/custom.texi (Specifying File Variables): Recommend explicit arguments for minor modes. * etc/NEWS: Likewise. * lisp/doc-view.el, lisp/net/soap-client.el: Update file locals.
* Add `xterm-extra-capabilities' defcustom for terminals where the xterm ↵Ted Zlatanov2011-06-092-70/+131
| | | | | | | | | | | capabilities query is not needed or wanted. * term/xterm.el (xterm): Add defgroup. (xterm-extra-capabilities): Add defcustom to supply known xterm capabilities, skip querying them, or query them (default). (terminal-init-xterm): Use it. (terminal-init-xterm-modify-other-keys): New function to set up modifyOtherKeys support to simplify `terminal-init-xterm'.
* Final preparations in window.el for new window resize code.Martin Rudalics2011-06-092-0/+548
| | | | | | | | | * window.el (resize-window-reset, resize-window-reset-1) (resize-subwindows-skip-p, resize-subwindows-normal) (resize-subwindows, resize-other-windows, resize-this-window) (resize-root-window, resize-root-window-vertically) (window-deletable-p, window-or-subwindow-p) (frame-root-window-p): New functions.
* ange-ftp fixes for dired switches not being just a single short option.Glenn Morris2011-06-082-24/+24
| | | | | * lisp/net/ange-ftp.el (ange-ftp-switches-ok): New function. (ange-ftp-get-files): Use it.
* Small fixes for dired-listing-switches usage.Alexander Klimov2011-06-083-4/+10
| | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg01000.html * lisp/mail/sendmail.el (mail-recover-1, mail-recover): * lisp/files.el (recover-file, recover-session): Handle dired-listing-switches not being just a single short option.
* Allow some appt.el display functions to handle lists.Glenn Morris2011-06-082-21/+73
| | | | | * lisp/calendar/appt.el (appt-display-message, appt-disp-window): Handle lists of appointments.
* A few new functions and rewrites in window.el.Martin Rudalics2011-06-082-75/+233
| | | | | | | | | | | * window.el (one-window-p): Move down in code. Rewrite doc-string. (window-current-scroll-bars): Rewrite doc-string. Normalize live window argument. (walk-windows, get-window-with-predicate, count-windows): Rewrite doc-string. Use window-list-1. (window-in-direction-2, window-in-direction, get-mru-window): New functions.
* Merge from emacs-23; up to 2010-06-13T18:15:45Z!eliz@gnu.org.Glenn Morris2011-06-084-12/+28
|
* * lisp/calendar/appt.el (appt-check): Move some initializations into the let.Ivan Kanis2011-06-072-4/+8
|
* window-height, window-width, and window-full-width-p are now in window.el.Martin Rudalics2011-06-082-0/+11
| | | | | | | * window.c (Fwindow_height, Fwindow_width, Fwindow_full_width_p): Remove. * window.el (window-height): Defalias to window-total-height. (window-width): Defalias to window-body-width.
* Some changes and re-organization for animated gif support.Chong Yidong2011-06-073-118/+138
| | | | | | | | | | | | | | | | | * lisp/image.el (image-animate-max-time): Moved to image-mode.el. (create-animated-image): Remove unnecessary function. (image-animate): Rename from image-animate-start. New arg. (image-animate-stop): Removed; just use image-animate-timer. (image-animate-timer): Use car-safe. (image-animate-timeout): Rename argument. * lisp/image-mode.el (image-toggle-animation): New command. (image-mode-map): Bind it to RET. (image-mode): Update message. (image-toggle-display-image): Avoid a spurious cache flush. (image-transform-rotation): Doc fix. (image-transform-properties): Return quickly in the normal case. (image-animate-loop): Rename from image-animate-max-time.
* Add and rewrite window size functions in window.el.Martin Rudalics2011-06-072-24/+467
| | | | | | | | | | | | | | * window.el (window-safe-min-height, window-safe-min-width): New constants. (window-size-ignore, window-min-size, window-min-size-1) (window-sizable, window-sizable-p, window-size-fixed-1) (window-size-fixed-p, window-min-delta-1, window-min-delta) (window-max-delta-1, window-max-delta, window-resizable) (window-resizable-p, window-total-height, window-total-width) (window-body-width): New functions. (window-full-height-p, window-full-width-p): Rewrite using window-total-size. (window-body-height): Rewrite using window-body-size.
* Move get-lru-window and get-largest-window to window.el.Martin Rudalics2011-06-072-13/+108
| | | | | | | | | | | | * window.c (window_loop): Remove handling of GET_LRU_WINDOW and GET_LARGEST_WINDOW. (Fget_lru_window, Fget_largest_window): Move to window.el. * window.el (get-lru-window, get-largest-window): Move here from window.c. Rename first argument to ALL-FRAMES. Rephrase doc-strings. (get-buffer-window-list): Rewrite using window-list-1. Rephrase doc-string.
* Add window-tree based, atomic and side window functions to window.el.Martin Rudalics2011-06-062-9/+445
| | | | | | | | | | | | | | | | | * window.el (window-right, window-left, window-child) (window-child-count, window-last-child, window-any-p) (normalize-live-buffer, normalize-live-frame) (normalize-any-window, normalize-live-window) (window-iso-combination-p, window-iso-combined-p) (window-iso-combinations) (walk-window-tree-1, walk-window-tree, walk-window-subtree) (windows-with-parameter, window-with-parameter) (window-atom-root, make-window-atom, window-atom-check-1) (window-atom-check, window-side-check, window-check): New functions. (ignore-window-parameters, window-sides, window-sides-vertical) (window-sides-slots): New variables. (window-size-fixed): Move down in code. Minor doc-string fix.
* * lisp/comint.el (comint-dynamic-complete-as-filename)Andreas Schwab2011-06-062-2/+10
| | | | | (comint-dynamic-complete-filename): Correctly call completion-in-region.
* * lisp/net/rcirc.el (rcirc-prompt-for-encryption): Fix bug introduced in ↵Deniz Dogan2011-06-052-2/+7
| | | | last change.
* * lisp/net/rcirc.el (rcirc-prompt-for-encryption): New function.Deniz Dogan2011-06-052-9/+17
| | | | (rcirc): Use it to prompt for encryption.
* lisp/textmodes/bibtex.el: new command bibtex-search-entriesRoland Winkler2011-06-052-0/+126
|
* lisp/textmodes/bibtex.el: various small bug fixesRoland Winkler2011-06-042-25/+38
|
* lisp/textmodes/bibtex.el (bibtex-search-entry-globally): New variableRoland Winkler2011-06-042-4/+22
|
* lisp/textmodes/bibtex.el (bibtex-entry-format): new option sort-fieldsRoland Winkler2011-06-042-7/+33
|
* lisp/doc-view.el: Silence compiler warning.Juanma Barranquero2011-06-052-2/+8
|
* Doc fixes for timer.el (Bug#8793).Chong Yidong2011-06-042-20/+25
| | | | | * emacs-lisp/timer.el (timer-activate): Remove unused arg. (timer-activate, timer-activate-when-idle): Doc fix.
* Fix mistake in last iswitchb.el bug fix.Deniz Dogan2011-06-041-1/+1
|
* * net/tramp-sh.el (tramp-find-shell): Apply workaround also forMichael Albinus2011-06-042-3/+10
| | | | "SunOS 5.10".
* * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts)Michael Albinus2011-06-045-34/+80
| | | | | | | | | | | | | | | | | (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys) (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc) (tramp-parse-putty): * net/tramp-sh.el (tramp-completion-function-alist-rsh) (tramp-completion-function-alist-ssh) (tramp-completion-function-alist-telnet) (tramp-completion-function-alist-su) (tramp-completion-function-alist-putty): Set `tramp-autoload' cookie. * net/tramp-ftp.el: * net/tramp-sh.el: * net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after load "tramp.el" `tramp-set-completion-function'.
* * lisp/shell.el: Require and use pcomplete.Stefan Monnier2011-06-042-1/+12
| | | | | (shell-dynamic-complete-functions): Add pcomplete-completions-at-point. (shell-completion-vars): Set pcomplete-default-completion-function.
* * lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.Deniz Dogan2011-06-042-4/+8
| | | | Fixes: debbugs:8799
* * lisp/url/url-future.el (url-future-test): Fix scope of `saver'.Andreas Schwab2011-06-042-3/+7
|
* * lisp/subr.el (make-progress-reporter): Add "..." by default.Stefan Monnier2011-06-022-0/+6
| | | | Fixes: debbugs:8785
* Silence warning for unused `dotimes' counter variables.Juanma Barranquero2011-06-025-10/+19
| | | | | | | * mpc.el (mpc-select-extend, mpc-songpointer-context): * vc/log-view.el (log-view-beginning-of-defun): * vc/smerge-mode.el (smerge-apply-resolution-patch) (smerge-refine-forward, smerge-refine-chopup-region):
* Auto-commit of loaddefs files.Glenn Morris2011-06-021-1/+1
|
* * lisp/net/tramp.el (tramp-with-progress-reporter): Rename fromStefan Monnier2011-06-025-27/+36
| | | | | | | with-progress-reporter. Use `declare'. * lisp/net/tramp-smb.el: * lisp/net/tramp-sh.el: * lisp/net/tramp-gvfs.el: Update all uses.
* * calc/calc.el (calc-kill-stack-buffer): Make sure that the trailJay Belanger2011-06-012-13/+19
| | | | buffer isn't killed before making it current.
* gnus-registry.el (gnus-registry-remove-ignored): New function to remove ↵Teodor Zlatanov2011-06-012-0/+19
| | | | entries with groups we ignore.
* Silence various byte-compiler warnings.Stefan Monnier2011-06-0112-57/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): New argument `access-type' and new obsolescence format. * lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete): Adjust to new format. (byte-compile-check-variable): New `access-type' argument. Only warn if the access-type is obsolete. (byte-compile-dynamic-variable-bind, byte-compile-variable-ref) (byte-compile-variable-set): Adjust callers. * lisp/help-fns.el (describe-variable): Adjust to new obsolescence format. * lisp/mail/sendmail.el (mail-mailer-swallows-blank-line): Only mark setting it as obsolete. * lisp/simple.el (minibuffer-completing-symbol): * lisp/font-lock.el (font-lock-beginning-of-syntax-function): Only mark read access as obsolete. * lisp/minibuffer.el (minibuffer-completing-file-name): Don't make it obsolete yet. * lisp/international/quail.el (quail-mouse-choose-completion): Remove unused code referring to obsolete var. (quail-choose-completion-string): Remove. * lisp/server.el (server-clients-with, server-kill-buffer-query-function) (server-kill-emacs-query-function): Silence "unused `proc'" warnings. * lisp/proced.el (proced-send-signal): * lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Replace completion-annotate-function with completion-extra-properties.
* Add :version tags for url-queue.el.Glenn Morris2011-06-012-0/+7
| | | | | * lisp/url/url-queue.el (url-queue-parallel-processes, url-queue-timeout): Add :version tag for options that will be new in 24.1.
* * lisp/simple.el (goto-line): Use read-number.Stefan Monnier2011-06-012-23/+28
| | | | | | | | | | | (overriding-map-is-bound): Remove. (saved-overriding-map): Change default. (save&set-overriding-map): Rename from ensure-overriding-map-is-bound; Take the map as argument. (universal-argument, negative-argument, digit-argument): Use it. (restore-overriding-map): Adjust. (do-auto-fill): Use fill-forward-paragraph. (keyboard-quit): Don't signal an error when debug-on-quit is non-nil.
* * lisp/minibuffer.el (minibuffer-inactive-mode-map): New var.Stefan Monnier2011-06-013-13/+38
| | | | | | | | (minibuffer-inactive-mode): New major mode. * src/minibuf.c (get_minibuffer, read_minibuf_unwind): Call it. * lisp/mouse.el (mouse-drag-region): Remove the "mouse-1 pops up the *Messages* buffer" hack. (mouse-popup-menubar): Don't burp if the event is a normal key.