aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* New variable set-message-function to show message at the end of the minibufferJuri Linkov2019-12-225-4/+160
| | | | | | | | | | | | | | | | | | | * 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-214-11/+20
| | | | | | | | | | | | * 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.
* ;* src/process.c (read_process_output): Fix last change.Eli Zaretskii2019-12-211-1/+4
|
* Add new function `python-shell-send-statement'lin.sun2019-12-212-0/+28
| | | | | | * 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)
* Allow control of data amount read from subprocess in one chunkEli Zaretskii2019-12-212-5/+22
| | | | | | | | | | | * src/process.c (syms_of_process) <read-process-output-max>: New variable. (read_process_output): Use it instead of the hard-coded constant 4096. (Bug#38561) Use SAFE_ALLOCA to support large buffers for reading process output. * etc/NEWS: Mention 'read-process-output-max'.
* * lisp/international/mule-cmds.el: Fix bug#38642Stefan Monnier2019-12-202-21/+26
| | | | | | | | | (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)
* Elisp manual: mention parse-partial-sexp as the source of a parser state, etcAlan Mackenzie2019-12-201-9/+10
| | | | | | | | * doc/lispref/syntax.texi (Parser State): mention parse-partial-sexp as a function returning a parser state, and the function to which one supplies a parser state as an argument for continued parsing. Refine the documentation of syntax-ppss-context, and correct the text introducing it and another function.
* Support setting OS names of threads on MS-WindowsEli Zaretskii2019-12-204-5/+91
| | | | | | | | | | | | | | | | | | | * src/w32fns.c (setup_w32_kbdhook): Don't initialize is_debugger_present here... (globals_of_w32fns): ...initialize it here. Also initialize the new global variable set_thread_description. * src/systhread.c: [WINDOWSNT] Include mbctype.h (w32_set_thread_name): New function. (MS_VC_EXCEPTION): New macro. (THREADNAME_INFO, IsDebuggerPresent_Proc) (SetThreadDescription_Proc): New typedefs. (w32_beginthread_wrapper): Call w32_set_thread_name to set the name of the new thread. * src/thread.h (struct thread_state): New member thread_name. * src/thread.c (Fmake_thread): Set the thread_name field of the new thread object. (run_thread): Free the thread_name member after the thread exits.
* 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-182-10/+10
| | | | | | | | * 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).
* Fix face merging for display strings broken by a recent commitEli Zaretskii2019-12-162-5/+1
| | | | | | | | * src/xfaces.c (face_at_string_position): Revert the last change, as it cannot possibly solve bug#38563. * src/xdisp.c (face_at_pos): Fix a typo made during last change here, which broke face merging for display strings. (Bug#38633)
* * 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-166-78/+11
| | | | | | | | | | | | | * 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-163-1/+44
| | | | | | | | * 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.
* Adjust intptr_t advicePaul Eggert2019-12-141-4/+6
| | | | | * doc/lispref/internals.texi (C Integer Types): Say to prefer uintptr_t when pointer arithmetic might overflow intptr_t.
* Remove nothing from union output_dataPaul Eggert2019-12-143-4/+0
| | | | | | * src/frame.h (union output_data): Remove ‘nothing’ member. It has had no effect for quite some time. All uses removed.
* Update documentation of pure-space overflowEli Zaretskii2019-12-142-11/+19
| | | | | | | * doc/lispref/internals.texi (Garbage Collection) (Pure Storage): * src/alloc.c (Fgarbage_collect): Update the documentation of pure-space overflow for when pdumper is used. (Bug#38492)
* * 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
|
* Fix cross-references in ELisp manualEli Zaretskii2019-12-141-3/+4
| | | | | * doc/lispref/commands.texi (Misc Events, Special Events): Fix cross-references. (Bug#38520)
* 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)
* Fix typo that broke GNU/Linux unexec buildPaul Eggert2019-12-131-1/+0
| | | | | | | * src/emacs.c (Fdump_emacs): Remove stray closing brace that breaks the build when configured with --with-dumping=unexec on GNU/Linux. (Apparently everybody is using pdumper now.) I introduced the bug in 2019-07-09T00:50:39Z!eggert@cs.ucla.edu.
* xfaces.c: Silence spurious maybe-uninitialized compiler warningJuanma Barranquero2019-12-131-0/+1
| | | | * src/xfaces.c (face_inherited_attr): Initialize 'ok' to false.
* 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-134-17/+43
| | | | | | | | | | | | | | | | 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.
* ; * src/emacs-module.h.in: Sort includes alphabetically.Philipp Stephani2019-12-131-1/+1
|
* 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.
* A better fix for extension of overlay string's facesEli Zaretskii2019-12-132-20/+9
| | | | | | | | | * src/xdisp.c (face_at_pos): Revert previous change that rejected the underlying face if it failed the filtering criteria. * src/xfaces.c (face_at_string_position): Reset the base face's attribute used for filtering faces if the attribute is t. (Bug#38563)
* * 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-124-48/+65
| | | | | | | | | | | | | | 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 `|'.
* ; * src/xdisp.c (face_at_pos): Fix last change.Eli Zaretskii2019-12-121-1/+2
|
* 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.
* Avoid spurious warning about maybe-uninitialized variableJuanma Barranquero2019-12-121-1/+1
| | | | | * src/xdisp.c (face_at_pos): Initialize base_face_id to 0 to silence the compiler.