aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * lisp/files.el (save-buffers-kill-emacs): Mark "*Process List*" as dedicated.Juri Linkov2019-12-231-1/+2
| | | | | | | Using the 'dedicated' prop for display-buffer--maybe-at-bottom marks the window of the buffer "*Process List*" as dedicated, so it won't be replaced by another buffer that might be visited following links to process buffers from the buffer "*Process List*".
* * lisp/tab-bar.el: Use alist-get instead of (cdr (assq ...))Juri Linkov2019-12-231-37/+39
| | | | * lisp/tab-bar.el (tab-bar-mode): Bind s-0 to tab-bar-switch-to-recent-tab.
* * lisp/proced.el (proced-signal-list): Add more POSIX 1003.1-2001 signals.Juri Linkov2019-12-231-2/+15
|
* Fix bug in flex completion style's sorting and simplifyJoão Távora2019-12-221-30/+32
| | | | | | | | | | | This previous commit targetting this function introduced a bug whereby the completion table's sorting function wouldn't be called. That is fixed by this commit, which also simplifies the function further: it now skips re-sorting the completions completely if there is no minibuffer input at all (in other words, when flex isn't doing anything useful). * lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify.
* * lisp/gnus/gnus-start.el: Use lexical-bindingStefan Monnier2019-12-222-32/+31
| | | | | | | | | | | (gnus-group-change-level, gnus-make-hashtable-from-newsrc-alist): Use gnus-info-make. (gnus-make-hashtable-from-newsrc-alist): Prefer `gnus-info-group` to `car` when applied to a `gnus-info` object. (gnus-make-hashtable-from-killed): Remove unused vars `lists` and `list`. (gnus-gnus-to-quick-newsrc-format): Extract common code from if branches. * lisp/gnus/gnus.el (gnus-info-make): New constructor.
* Fix wording of recent documentation changesEli Zaretskii2019-12-221-3/+4
| | | | | | | | * src/xdisp.c (syms_of_xdisp): * lisp/minibuffer.el (minibuffer-message-clear-timeout): * etc/NEWS: * doc/lispref/display.texi (Displaying Messages): Minor changes of wording of a recent commit. (Bug#38457)
* * lisp/net/trampver.el (inhibit-message): Declare.Michael Albinus2019-12-221-0/+3
|
* * lisp/term/ns-win.el (ns-insert-working-text): Comment is obsolete.Alan Third2019-12-221-2/+0
|
* Improve sorting of flex completion style with non-nil minibuffer-defaultJoão Távora2019-12-221-11/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | This affects the behaviour of flex completion when there is a default completion and the user hasn't entered any input pattern to flex-match against. It is most visible when icomplete-mode or fido-mode are being used in conjunctio. When using M-x man, for instance, the default completion is picked from text around point. Say it is "emacs" (for Emacs's man page). It will not match the intended completion, "emacs(1)", exactly. If the user hasn't yet given any input to the completion prompt, that completion should bubble to top so that icomplete-force-complete-and-exit will select it, but it didn't. This new approach uses 'string-prefix-p' instead of 'equal' to find the default to bubble to the top. This strategy could eventually be improved, most naturally by flex-matching the default string to all the candidates and picking the highest scoring one. Additionally, the new strategy only considers minibuffer-default if there is no input in the minibuffer, which seems sensible and produces a small but noticeable speedup. * lisp/minibuffer.el (completion--flex-adjust-metadata): Reformulate sorting strategy.
* Fix display of working text on NS (Bug#23412, Bug#1453)Masahiro Nakamura2019-12-221-6/+4
| | | | | | | | | | * lisp/term/ns-win.el (ns-insert-working-text): (ns-delete-working-text): Change how working text is deleted to handle changed order of operations. * src/nsterm.m ([EmacsView insertText:]): Move deletion of working text until after insertion of new text. Copyright-paperwork-exempt: yes
* * lisp/tab-bar.el: Rename tab-bar-list to tab-switcher (bug#38624)Juri Linkov2019-12-221-66/+66
|
* New variable set-message-function to show message at the end of the minibufferJuri Linkov2019-12-221-0/+70
| | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Displaying Messages): Document set-message-function and clear-message-function. * lisp/minibuffer.el (minibuffer-message-clear-timeout): New defcustom. (minibuffer-message-timer, minibuffer-message-overlay): New variables. (set-minibuffer-message, clear-minibuffer-message): New functions. (set-message-function, clear-message-function): Set variables to set-minibuffer-message and clear-minibuffer-message respectively. * src/keyboard.c (read_char): Call clear_message when Vclear_message_function is a function. * src/xdisp.c (set_message): Call Vset_message_function when it's a function. (clear_message): Call Vclear_message_function when it's a function. (syms_of_xdisp): New variables set-message-function and clear-message-function (bug#38457).
* backup-by-copying-when-privileged-mismatch applies to file gid, too.Stephen Gildea2019-12-211-6/+9
| | | | | | | | | | | | * lisp/files.el (backup-by-copying-when-privileged-mismatch): In addition to checking the file uid, a second test is added: if the file gid is not greater than backup-by-copying-when-privileged-mismatch, backup-by-copying-when-mismatch will also be forced on. * doc/emacs/files.texi, doc/lispref/backups.texi: Updated documentation. Also fixed a typo in the Emacs reference manual, changing "higher" to "no greater" so that the limit is no longer documented reversed.
* Add new function `python-shell-send-statement'lin.sun2019-12-211-0/+22
| | | | | | * lisp/progmodes/python.el (python-shell-send-statement): New function. (python-mode-map): Bind it to key "C-c C-e", and define a python-menu item for it. (Bug#38426)
* * lisp/international/mule-cmds.el: Fix bug#38642Stefan Monnier2019-12-201-21/+18
| | | | | | | | | (universal-coding-system-argument): Adjust the code to the way `universal-argument` works nowadays. Handle `prefix-arg` a bit more like `command_loop` does. * test/lisp/international/mule-tests.el (mule-cmds--test-universal-coding-system-argument): New test.
* Speed up vc-dir-updateDmitry Gutov2019-12-211-12/+15
| | | | | * lisp/vc/vc-dir.el (vc-dir-update): Speed up. (https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00568.html)
* Fix error in tramp-process-sentinelMichael Albinus2019-12-201-3/+5
| | | | | * lisp/net/tramp.el (tramp-process-sentinel): Check, that process buffer is alive.
* * lisp/tab-bar.el: Sort tab names by recency for tab switching (bug#38624)Juri Linkov2019-12-201-14/+22
| | | | | | | | * lisp/tab-bar.el (tab-bar--tabs-recent): New function with code extracted from tab-bar--tab-index-recent. (tab-bar-switch-to-tab): Use tab-bar--tabs-recent in interactive spec to sort names of tabs by recency for default values of completing-read. (tab-prefix-map): Bind RET to tab-bar-select-tab-by-name, and 'm' to tab-move.
* ; Fix typos in ange-ftp.el (bug#38660)Michael Albinus2019-12-191-2/+2
|
* More precise 'regexp-opt' documentationMattias Engdegård2019-12-181-5/+5
| | | | | | | | * lisp/emacs-lisp/regexp-opt.el (regexp-opt): * doc/lispref/searching.texi (Regexp Functions): Be more specific about how the KEEP-ORDER argument actually works. If nil, the regexp guarantees a longest match; this is the behaviour that many callers implicitly rely on.
* Fix an error with remote file name in compile.elMichael Albinus2019-12-181-11/+5
| | | | | * lisp/progmodes/compile.el (compilation-get-file-structure): Compute proper remote file name. (Bug#38648)
* Verilog-Mode collected updates.Wilson Snyder2019-12-171-5/+10
| | | | | | | | * lisp/progmodes/verilog-mode.el (verilog-compiler-directives): Support indenting `uselib. (verilog-read-decls): Fix AUTO* to ignore `protected regions. (verilog-read-auto-template-middle): Fix AUTO_TEMPLATEs with multiple module templates and at-REGEXPs, msg3183. Reported by Berk Akinci.
* Improve Tramp's file-name-completionMichael Albinus2019-12-171-2/+8
| | | | | * lisp/net/tramp.el (tramp-handle-file-name-completion): Filter out "./" and "../", if there's only one other result.
* Adjust cursor column when auto-scrolling during rectangle selectionMattias Engdegård2019-12-171-3/+7
| | | | | | * lisp/mouse.el (mouse-drag-region-rectangle): Move cursor to the correct column during auto-scrolling both when crutches are used and not (bug#38641). Reported by Konrad Podczeck.
* Make ls-files-unknown only return proper files, not directoriesAndrii Kolomoiets2019-12-171-2/+1
| | | | | | * lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Make ls-files-unknown only return proper files, not directories (bug#38615).
* vc-git-after-dir-status-stage: Avoid erroneous up-to-date statusDmitry Gutov2019-12-171-8/+13
| | | | | | * lisp/vc/vc-git.el (vc-git-after-dir-status-stage): Don't set `up-to-date' status if the previous stage (`diff-index') has assigned some other status to the file (bug#38615).
* * lisp/isearch.el (isearch-xterm-paste): Use code like in 'xterm-paste'.Juri Linkov2019-12-161-3/+5
| | | | | | Add arg 'event' and use it to get pasted text. This allows pasting text on terminals to the search string (bug#18727, bug#36950).
* Revert aa89c84e00d8dc85100e6fedab7631c415e6364d (bug#38457)Juri Linkov2019-12-163-13/+8
| | | | | | | | | | | | | * src/editfns.c (Fmessage): Don't use minibuffer-message. (Fmessage_in_echo_area): Remove function message-in-echo-area. (syms_of_editfns): Remove variable message-in-echo-area. * lisp/isearch.el (isearch--momentary-message): Remove message-in-echo-area. * lisp/minibuffer.el (minibuffer-message): Don't record message in the *Messages* buffer. (minibuffer-completion-help): Remove message-in-echo-area. * lisp/subr.el (do-after-load-evaluation): Remove discard-input (bug#38560)
* * lisp/tab-line.el (tab-line-auto-hscroll): Improve.Juri Linkov2019-12-161-22/+47
| | | | | | | | Better handling of tabs scrolled to the left. Don't scroll tabs that are already visible. Remove setq of buffer-undo-list because undo is disabled anyway in internal buffers with name " *temp*".
* * lisp/tab-bar.el (tab-bar-handle-mouse): Handle close button.Juri Linkov2019-12-161-3/+6
|
* * lisp/tab-bar.el (tab-bar-select-tab): Message about selected tab (bug#38624)Juri Linkov2019-12-161-2/+6
|
* * lisp/tab-bar.el (tab-bar-close-other-tabs): Use tab close customsRobert Cochran2019-12-161-2/+9
|
* Document variables that affect tabs in function docstringsRobert Cochran2019-12-161-2/+12
| | | | | | | * lisp/tab-bar.el (tab-bar-new-tab-to): Mention tab-bar-post-open-functions in docstring. (tab-bar-close-tab): Mention tab-bar-prevent-tab-functions, tab-bar-tab-pre-close-functions, and tab-bar-close-last-tab-choice.
* New command 'diff-buffers'Phil Sainty2019-12-161-1/+32
| | | | | | | | * lisp/vc/diff.el (diff-buffers): New command. (diff, diff-no-select, diff-file-local-copy): Improve docstrings. * doc/emacs/files.texi: * etc/NEWS: Document new command, and the previously-undocumented ability for 'diff' to compare buffers.
* * lisp/minibuffer.el (completion-pcm--find-all-completions): Simplify a bitStefan Monnier2019-12-141-63/+63
|
* * lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise.Michael Albinus2019-12-141-1/+1
|
* Don't warn about pure-space overflowEli Zaretskii2019-12-141-1/+5
| | | | | | * lisp/startup.el (command-line-1): Don't warn about pure-space overflow if we were dumped with pdumper. (Bug#38492)
* Disable undo in the process buffers of a JSONRPC connectionJoão Távora2019-12-131-1/+4
| | | | | | | * lisp/jsonrpc.el (initialize-instance jsonrpc-process-connection): Use buffer-disable-undo in stdout and stderr buffers. * lisp/jsonrpc.el (Version): Bump to 1.0.9
* * lisp/net/tramp.el (tramp-unload-tramp): Autoload function body.Michael Albinus2019-12-131-3/+6
|
* python-shell-completion-at-point: respect simple-operator (Bug#37808)Andrii Kolomoiets2019-12-131-1/+1
| | | | | * lisp/progmodes/python.el (python-shell-completion-at-point): Also stop on simple-operator while parsing input.
* Allow characters and single-char strings in rx charsetsMattias Engdegård2019-12-131-6/+20
| | | | | | | | | | | | | | | | The `not' and `intersection' forms, and `or' inside these forms, now accept characters and single-character strings as arguments. Previously, they had to be wrapped in `any' forms. This does not add expressive power but is a convenience and is easily understood. * doc/lispref/searching.texi (Rx Constructs): Amend the documentation. * etc/NEWS: Announce the change. * lisp/emacs-lisp/rx.el (rx--charset-p, rx--translate-not) (rx--charset-intervals, rx): Accept characters and 1-char strings in more places. * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-charset-or) (rx-def-in-charset-or, rx-intersection): Test the change.
* Add prefix to help.el uni-confusable* varsNoam Postavsky2019-12-132-10/+17
| | | | | | | | | * lisp/help.el (help-uni-confusables, help-uni-confusables-regexp): Rename from uni-confusable and uni-confusables-regexp, respectively. (help-uni-confusable-suggestions): Use ngettext. Use new variable name. * lisp/emacs-lisp/lisp-mode.el (lisp--match-confusable-symbol-character): Use new variable name.
* * lisp/emacs-lisp/edebug.el (edebug-remove-instrumentation): Use 'user-error'.Juri Linkov2019-12-131-1/+1
|
* * lisp/wid-edit.el (widget-field): Add ':extend t' to defface (bug#37774)Juri Linkov2019-12-131-4/+8
|
* Use `or' instead of `union' for charset union in rxMattias Engdegård2019-12-121-15/+26
| | | | | | | | | | | | | | Design change suggested by Stefan Monnier. * doc/lispref/searching.texi (Rx Constructs): * etc/NEWS: Document. * lisp/emacs-lisp/rx.el (rx--translate-or): Detect charset arguments. (rx--charset-p): New. (rx--translate-not, rx--charset-intervals, rx--translate-union): Change from `union' to `or'. (rx--translate-form, rx--builtin-forms, rx): Remove `union'. * test/lisp/emacs-lisp/rx-tests.el (rx-union, rx-def-in-union) (rx-intersection): Rename tests and change `union' to `or' and `|'.
* Optimize prompt search in TrampMichael Albinus2019-12-124-20/+29
| | | | | | | | | | | * lisp/net/tramp.el (tramp-search-regexp): New defun. (tramp-check-for-regexp, tramp-process-sentinel): * lisp/net/tramp-adb.el (tramp-adb-send-command-and-check) (tramp-adb-wait-for-output): * lisp/net/tramp-sh.el (tramp-wait-for-output) (tramp-send-command-and-check): * lisp/net/tramp-smb.el (tramp-smb-handle-set-file-acl): Bind search length.
* Treat passed strings as raw-text when percent-escaping in epgRobert Pluim2019-12-121-1/+1
| | | | | | | | | | The strings contained in gpg keys can contain UTF-8 data, but can also use percent-escapes to encode non-ASCII chars. When converting those escapes, use 'raw-text' coding system rather than 'string-to-unibyte', since the latter signals an error for non-ASCII characters. * lisp/epg.el (epg--decode-percent-escape): Convert the passed string to raw-text before treating percent escapes (Bug#38512).
* * lisp/emacs-lisp/debug.el (debug-on-entry): Allow undefined functionsStefan Monnier2019-12-111-1/+1
| | | | | | Allow placing debug-on-entry on a function not-yet-defined, which is convenient when the problem you're investigating happens while the relevant files are loaded.
* * lisp/font-lock.el (font-lock-fontify-region): Widen here (bug#38049)Stefan Monnier2019-12-111-34/+34
| | | | (font-lock-default-fontify-region): Instead of here.
* * lisp/calculator.el (cl-lib): Require at run-time as well.Stefan Monnier2019-12-111-1/+1
| | | | Needed since we pass the `cl-flet` macro to `eval` in `calculator-funcall`.