summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* * ido.el (ido-read-file-name): Conform to the requirements ofLeo Liu2013-07-112-3/+22
| | | | | | | | read-file-name. (ido-read-directory-name): Conform to the requirements of read-directory-name. Fixes: debbugs:11861
* lisp/subr.el (delay-warning): New function.Juanma Barranquero2013-07-112-0/+11
|
* gnus-start.el (gnus-clean-old-newsrc): Always remove 'unexist' marks if ↵David Engster2013-07-102-2/+11
| | | | `gnus-newsrc-file-version' does not match `gnus-version'. This fixes a bug in Emacs trunk where the 'unexist' marks were always removed at startup because "Gnus v5.13" was considered smaller than "Ma Gnus v0.03".
* gnus.el (gnus-summary-line-format): DocfixTassilo Horn2013-07-102-1/+7
|
* Improve scrolling when line-spacing != 0 and scroll-step = 1.Eli Zaretskii2013-07-102-37/+55
| | | | | | | | | lisp/simple.el (default-line-height): New function. (line-move-partial, line-move): Use it instead of computing the line height inline. (line-move-partial): Always compute ROWH. If the last line is partially-visible, but its text is completely visible, allow cursor to enter such a partially-visible line.
* Fix last patch.Michael Albinus2013-07-101-3/+4
|
* Improve error messages. (Bug#14808)Michael Albinus2013-07-103-56/+89
| | | | | | | | | | | | | | | | | | * net/tramp.el (tramp-current-connection): New defvar, moved from tramp-sh.el. (tramp-message-show-progress-reporter-message): Removed, not needed anymore. (tramp-error-with-buffer): Show message in minibuffer. Discard input before waiting. Reset connection timestamp. (with-tramp-progress-reporter): Improve messages. (tramp-process-actions): Use progress reporter. Delete process in case of error. Improve messages. * net/tramp-sh.el (tramp-barf-if-no-shell-prompt): Use condition-case. Call `tramp-error-with-buffer' with vector and buffer. (tramp-current-connection): Removed. (tramp-maybe-open-connection): The car of `tramp-current-connection' are the first 3 slots of the vector.
* * progmodes/cfengine.el: Do not indent inside continued strings.Ted Zlatanov2013-07-102-2/+7
|
* Add comment.Michael Albinus2013-07-101-2/+4
|
* Timestamp fixes for undo.Paul Eggert2013-07-092-0/+10
| | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/text.texi (Undo): Document (t . 0) and (t . -1) in buffer-undo-list. * etc/NEWS: Changes to visited-file-modtime, set-visited-file-modtime. * lisp/files.el (clear-visited-file-modtime): Move here from fileio.c. * src/atimer.c (schedule_atimer): * src/fileio.c (Ffile_newer_than_file_p): Minor cleanup: use EMACS_TIME_LT so that we can remove EMACS_TIME_GT. * src/buffer.c (buffer-undo-list): Document (t . 0) and (t . -1). * src/fileio.c (Fclear_visited_file_modtime): Move to lisp/files.el. (syms_of_fileio): Remove Sclear_visited_file_name. (Fvisited_file_modtime): Return -1, not (-1 ...), when the visited file doesn't exist; this avoids an ambiguity with negative timestamps. (Fset_visited_file_modtime): Accept -1 and 0 as time-list arg. * src/systime.h (make_emacs_time, invalid_emacs_time): Don't assume struct timespec layout; POSIX doesn't guarantee it. (EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE): Remove. * src/undo.c (record_first_change): Push (visited-file-modtime) onto undo list rather than reimplementing it by hand, incorrectly. Fixes: debbugs:14824
* * files.el (require-final-newline): Allow safe local value.Leo Liu2013-07-102-1/+8
| | | | Fixes: debbugs:14834
* ChangeLog fixGlenn Morris2013-07-081-19/+20
|
* * ido.el (ido-add-virtual-buffers-to-list): Robustify. (Bug#14552)Leo Liu2013-07-092-2/+9
|
* * ido.el (ido-read-directory-name): Handle fallback.Leo Liu2013-07-092-7/+16
| | | | | | (ido-read-file-name): Update DIR to ido-current-directory. Fixes: debbugs:1516
* * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove extraDmitry Gutov2013-07-092-5/+11
| | | | | | "autoload". Remove "warn lower camel case" section, previously commented out. Highlight negation char. Do not highlight the target in singleton method definitions.
* Merge changes made in Gnus masterGnus developers2013-07-083-1/+36
|
* * lisp/faces.el (tty-setup-hook): Declare the hook.Stefan Monnier2013-07-082-0/+6
|
* * lisp/emacs-lisp/pcase.el (pcase--split-pred): Add `vars' argument to tryStefan Monnier2013-07-082-6/+19
| | | | | | | and detect when a guard/pred depends on local vars. (pcase--u1): Adjust caller. Fixes: debbugs:14773
* Fix lisp/ChangeLog entry for last commit.Eli Zaretskii2013-07-081-0/+2
|
* Improve scrolling when line-spacing is non-nil.Eli Zaretskii2013-07-082-15/+55
| | | | | lisp/simple.el (line-move-partial, line-move): Account for line-spacing.
* * net/shr.el (shr-map): Reinstate the `u' key bindingLars Magne Ingebrigtsen2013-07-082-0/+6
| | | | It's been used a while.
* ChangeLog fixes.Juanma Barranquero2013-07-081-27/+24
|
* lisp/subr.el (read-quoted-char): Remove unused local variable `char'.Juanma Barranquero2013-07-082-6/+10
|
* * faces.el (tty-run-terminal-initialization): function changed (StefanMichael Kifer2013-07-076-107/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Monnier's patch). * viper.el (viper-emacs-state-mode-list): add egg-status-buffer-mode. (viper-version): version update. (viper-go-away,viper-setup-hooks): function changed (Stefan Monnier's patch). (viper--lookup-key,viper-catch-tty-ESC,viper-uncatch-tty-ESC, viper-setup-ESC-to-escape): new functions (Stefan Monnier's patch). * viper-cmd.el: (viper-del-forward-char-in-insert): new function. (viper-save-kill-buffer): check if buffer is modified. (viper-envelop-ESC-key): function deleted (Stefan Monnier's patch). (viper-intercept-ESC-key): function changed (Stefan Monnier's patch). * viper-keym.el (viper-ESC-key): constant changed (Stefan Monnier's patch). * ediff.el (ediff-files-command,ediff3-files-command): new functions. (ediff-merge-command,ediff-merge-with-ancestor-command): new functions. (ediff-directories-command,ediff-directories3-command): new functions. (ediff-merge-directories-command): new function. (ediff-merge-directories-with-ancestor-command): new function. All the above are command-line interfaces to ediff: facilitate calling Emacs with the appropriate ediff functions invoked. (ediff-version): version update.
* Improve scrolling of windows whose font is different from frame's default.Eli Zaretskii2013-07-072-19/+52
| | | | | | | | | lisp/simple.el (default-font-height, window-screen-lines): New functions. (line-move, line-move-partial): Use them instead of frame-char-height and window-text-height. This makes scrolling text smoother when the buffer's default face uses a font that is different from the frame's default font.
* Merge changes made in Gnus masterGnus developers2013-07-067-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-07-06 Lars Ingebrigtsen <larsi@gnus.org> * gnus.texi (Group Parameters): Mention regexp substitutions (bug#11688). 2013-07-06 Nathan Trapuzzano <nbtrap@nbtrap.com> (tiny change) * gnus.texi (Generic Marking Commands): Fix grammar (bug#13368). 2013-07-06 Lars Ingebrigtsen <larsi@gnus.org> * gnus.texi (Emacsen): Fix version. * gnus-faq.texi (FAQ 1-6): Mention the correct Emacs version. 2013-07-06 Lars Ingebrigtsen <larsi@gnus.org> * gnus-art.el (gnus-block-private-groups): Allow `global' methods to display images. * gnus.el (gnus-valid-select-methods): Mark nnrss as global. * message.el (message-cancel-news): According to <mailman.216.1372942181.12400.help-gnu-emacs@gnu.org>, "cancel" is preferred over "cmsg cancel" in the Subject. * nnir.el (nnir-engines): Note that the group specs are regexps (bug#13238). * gnus-msg.el (gnus-copy-article-buffer): If the article buffer has gotten read-only text properties, ensure that those aren't heeded when copying stuff over (bug#13434). * mm-view.el (mm-inline-text-html): Don't bug out on multipart messages (bug#13762).
* * lisp/files.el (write-file): Do not display confirm dialog for NS,Jan Djärv2013-07-062-0/+9
| | | | | | | | | | | | | | | | | | it does its own dialog, which can't be cancelled. * src/nsfns.m: Remove panelOK. (ns_fd_data): New. (ns_run_file_dialog): New function. (Fns_read_file_name): Fill in ns_fd_data, post an event and start the event loop, so file dialog is popped up by ns_run_file_dialog, called by sendEvent (Bug#14578). (EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods. * src/nsterm.h (NSSavePanel): Update comment. (NSAPP_DATA2_RUNFILEDIALOG): Define. (ns_run_file_dialog): Declare. * src/nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG.
* Fix vertical cursor motion with non-default fonts.Eli Zaretskii2013-07-062-3/+11
| | | | | lisp/simple.el (line-move-partial): Adjust the row returned by posn-at-point for the current window-vscroll. (Bug#14567)
* * net/tramp-sh.el (tramp-sh-file-gvfs-monitor-dir-process-filter):Michael Albinus2013-07-062-11/+26
| | | | (tramp-sh-file-inotifywait-process-filter): Handle file names with spaces.
* Add TODO entry.Michael Albinus2013-07-061-0/+3
|
* lisp/window.el (window-state-put): Remove window if buffer was not restored.Martin Rudalics2013-07-062-3/+22
| | | | | | (window-state-put-stale-windows): New variable. (window--state-put-2): Save list of windows without matching buffer. (window-state-put): Remove "bufferless" windows if possible.
* lisp/simple.el (alternatives-define): Remove leftover :group keyword.Juanma Barranquero2013-07-062-2/+6
| | | | Tweak docstring.
* lisp/gnus/auth-source.el (auth-source-netrc-parse-one): Allow empty strings ↵David Kastrup2013-07-062-2/+8
| | | | in authinfo file again (important for blank passwords). This had been broken with 2013-06-15 change
* * ido.el (ido-use-virtual-buffers): Allow new value 'auto.Leo Liu2013-07-062-19/+66
| | | | | | | | (ido-enable-virtual-buffers): New variable. (ido-buffer-internal, ido-toggle-virtual-buffers) (ido-make-buffer-list): Use it. (ido-exhibit): Support turning on and off virtual buffers automatically.
* lisp/simple.el (alternatives-define): New macro.Juanma Barranquero2013-07-062-0/+65
| | | | etc/NEWS: Document new "generic commands" support.
* * lisp/subr.el (read-quoted-char): Use read-key.Stefan Monnier2013-07-052-23/+27
| | | | | | (sit-for): Let read-event decode tty input. Fixes: debbugs:14782
* Fix previous patch.Michael Albinus2013-07-051-28/+31
|
* * calendar/todo-mode.el: Add handling of file deletion, both byStephen Berman2013-07-052-198/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mode command and externally. Fix various related bugs. Clarify Commentary and improve some documentation strings and code. (todo-delete-file): New command. (todo-check-file): New function. (todo-show): Handle external deletion of the file we're trying to show. Replace called-interactively-p by an optional prefix argument to avoid problematic interaction with catch form when byte compiled (bug#14702). (todo-quit): Handle external deletion of the archive's todo file. Make sure the buffer that was visiting the archive file is still live before trying to bury it. (todo-category-completions): Handle external deletion of any category completion files. (todo-jump-to-category, todo-basic-insert-item): Recalculate list of todo files, in case of external deletion. (todo-add-file): Replace unnecessary setq by let-binding. (todo-find-archive): Check whether there are any archives. Replace unnecessary setq by let-binding. (todo-archive-done-item): Use find-file-noselect to get the archive buffer whether or not the archive already exists. Remove superfluous code. Use file size instead of buffer-file-name to check if the archive is new; if it is, update list of archives. (todo-default-todo-file): Allow nil to be a valid value for when there are no todo files. (todo-reevaluate-default-file-defcustom): Use corrected definition of todo-default-todo-file. (todo-key-bindings-t+a+f): Add key binding for todo-delete-file. (todo-delete-category, todo-show-categories-table) (todo-category-number): Clarify comment. (todo-filter-items): Clarify documentation string. (todo-show-current-file, todo-display-as-todo-file) (todo-reset-and-enable-done-separator): Tweak documentation string. (todo-done-separator): Make separator length window-width, since bug#2749 is now fixed. Fixes: debbugs:14688
* * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): SupportMichael Albinus2013-07-052-26/+88
| | | | | | | | both "gvfs-monitor-dir" and "inotifywait". (tramp-sh-file-inotifywait-process-filter): Renamed from `tramp-sh-file-notify-process-filter'. (tramp-sh-file-gvfs-monitor-dir-process-filter) (tramp-get-remote-gvfs-monitor-dir): New defuns.
* * autoinsert.el (auto-insert-alist): Default to lexical-binding.Leo Liu2013-07-052-1/+8
|
* Add multi-monitor support on W32.YAMAMOTO Mitsuharu2013-07-042-4/+32
|
* * filenotify.el: New package.Michael Albinus2013-07-046-123/+474
| | | | | | | | | | | | | | | | | | | | | * autorevert.el (top): Require filenotify.el. (auto-revert-notify-enabled): Remove. Use `file-notify-support' instead. (auto-revert-notify-rm-watch, auto-revert-notify-add-watch) (auto-revert-notify-handler): Use `file-notify-*' functions. * subr.el (file-notify-handle-event): Move function to filenotify.el. * net/tramp.el (tramp-file-name-for-operation): Handle `file-notify-add-watch' and `file-notify-rm-watch'. * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler for `file-notify-add-watch' and `file-notify-rm-watch'. (tramp-process-sentinel): Improve trace. (tramp-sh-handle-file-notify-add-watch) (tramp-sh-file-notify-process-filter) (tramp-sh-handle-file-notify-rm-watch) (tramp-get-remote-inotifywait): New defuns.
* * lisp/buff-menu.el (Buffer-menu-multi-occur): Add args and move theJuri Linkov2013-07-043-4/+12
| | | | | | | | | call of `occur-read-primary-args' to interactive spec. * lisp/ibuffer.el (ibuffer-mode-map): Bind "M-s a C-o" to `ibuffer-do-occur' like in buff-menu.el. Fixes: debbugs:14673
* * lisp/buff-menu.el (Buffer-menu-mode-map): Bind "M-s a C-o" toMatthias Meulien2013-07-042-0/+19
| | | | | | | | `Buffer-menu-multi-occur'. Add it to the menu. (Buffer-menu-mode): Document it in docstring. (Buffer-menu-multi-occur): New command. Fixes: debbugs:14673
* * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight moreDmitry Gutov2013-07-032-11/+56
| | | | keywords and built-ins.
* gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): Revert 2013-01-14 changeKatsumi Yamaoka2013-07-032-12/+18
|
* Merge from emacs-24; up to 2012-12-29T12:57:49Z!fgallina@gnu.orgGlenn Morris2013-07-022-2/+6
|\
| * * lisp/subr.el (y-or-n-p): Handle empty prompts.Glenn Morris2013-07-022-2/+8
| | | | | | | | Fixes: debbugs:14770
* | Make info-xref checks case-sensitive by defaultGlenn Morris2013-07-023-18/+58
| | | | | | | | | | | | | | | | | | | | * lisp/info.el (Info-find-node, Info-find-in-tag-table) (Info-find-node-in-buffer, Info-find-node-2, Info-goto-node): Add option for exact case matching of nodes. * lisp/info-xref.el (info-xref): New custom group. (info-xref-case-fold): New option. (info-xref-goto-node-p): Pass info-xref-case-fold to Info-goto-node.
* | * ido.el (ido-delete-file-at-head): Respect delete-by-moving-to-trash.Leo Liu2013-07-032-2/+8
| |