summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix documentation of a recent changesetEli Zaretskii2021-07-202-9/+9
| | | | | * lisp/autorevert.el (auto-revert-mode): * lisp/files.el (revert-buffer): Doc fix. (Bug#49661)
* Improve auto-revert-mode and revert-buffer doc stringsKonstantin Kharlamov2021-07-202-2/+8
| | | | | | | * lisp/autorevert.el (auto-revert-mode): * lisp/files.el (revert-buffer): Mention that there is revert-buffer-with-fine-grain that is better suited for markers preservation (bug#49661).
* Make dired-guess-default return all matching programsLars Ingebrigtsen2021-07-201-31/+15
| | | | | * lisp/dired-x.el (dired-guess-default): Return all matching programs (bug#48071).
* Allow installing packages with DOS line endingsIoannis Kappas2021-07-201-2/+19
| | | | | | * lisp/emacs-lisp/package.el (package-install-from-buffer): Allow installing files with different line ending conventions (Unix, DOS and Macos) (bug#48137).
* Quit minibuffers without aborting kmacrosMiha Rihtaršič2021-07-202-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Quitting): Document `minibuffer-quit' (Recursive Editing): Document throwing of function values to `exit'. * doc/lispref/errors.texi (Standard Errors): Document `minibuffer-quit' * lisp/minibuffer.el (minibuffer-quit-recursive-edit): New function. * lisp/simple.el (minibuffer-error-function): Do not abort keyboard macro execution if is minibuffer-quit is signaled (bug#48603). * src/data.c (syms_of_data): New error symbol `minibuffer-quit' * src/keyboard.c (recursive_edit_1): Implement throwing of function values to `exit`. In that case, the function will be called without arguments before returning from the command loop. (cmd_error): (Fcommand_error_default_function): Do not abort keyboard macro execution if minibuffer-quit is signaled. (command_loop_2): New argument HANDLERS. * src/macros.c (Fexecute_kbd_macro): Use command_loop_2 instead of command_loop_1. * src/minibuf.c (Fabort_minibuffers): Use it.
* Add commands 'kill-matching-lines' and 'copy-matching-lines'Earl Hyatt2021-07-201-0/+124
| | | | | | | | | | | * doc/emacs/search.texi: Document these additions. * lisp/replace.el: Add the commands 'kill-matching-lines' and 'copy-matching-lines'. 'kill-matching-lines' is like 'flush-lines', but adds the lines to the kill ring as a single string, keeping line endings. 'copy-matching-lines' is like 'kill-matching-lines', but only copies those lines instead of killing them.
* Put command line file names and mouse dragging onto 'file-name-history'Lars Ingebrigtsen2021-07-203-0/+6
| | | | | | | * lisp/dnd.el (dnd-open-local-file): Add file to history. * lisp/files.el (file-name-history--add): New function (bug#12915). * lisp/startup.el (command-line-1): Add file to history.
* Make wdired work better in narrowed-to buffersLars Ingebrigtsen2021-07-191-59/+63
| | | | | | * lisp/wdired.el (wdired--before-change-fn): (wdired--restore-properties): Widen before doing anything so that we get all the changed bits (bug#49124).
* Add function for filtering ANSI sequences when compilingIvan Sokolov2021-07-191-0/+32
| | | | | | * lisp/ansi-color.el (ansi-color-for-compilation-mode): New user option (bug#49609). (ansi-color-compilation-filter): New function.
* Make the `s' command in *Help* work for Lisp variables defined in CLars Ingebrigtsen2021-07-192-3/+7
| | | | | | * lisp/help-fns.el (describe-variable): Store the type. * lisp/help-mode.el (help-view-source): Use the type. This fixes the problem when looking for a variable defined in a C file.
* Use 'remember-buffer' in remember.el doc strings.Gabriel do Nascimento Ribeiro2021-07-191-6/+12
| | | | | | | | | * lisp/textmodes/remember.el (remember-initial-contents) (remember-before-remember-hook, remember-destroy): Refer to `remember-buffer'. * lisp/textmodes/remember.el (remember-buffer): Make into defcustom (bug#49373).
* Use 'remember-buffer' in remember.el doc strings.Gabriel do Nascimento Ribeiro2021-07-191-8/+10
| | | | | | | | | * lisp/textmodes/remember.el (remember-initial-contents) (remember-before-remember-hook, remember-destroy): Refer to `remember-buffer'. * lisp/textmodes/remember.el (remember-buffer): Make into defcustom (bug#49373).
* Propagate asynchronousness correctly when using proxies in url.elMadhu2021-07-191-3/+4
| | | | | | | * lisp/url/url.el (url-retrieve-internal): Propagate asynchronousness correctly when using a proxy (bug#49570). Copyright-paperwork-exempt: yes
* Fix infloop in woman-file-nameLars Ingebrigtsen2021-07-191-2/+4
| | | | | * lisp/woman.el (woman-file-name): Fix infloop for non-existent manual page (bug#414).
* Allow comint-delete-output to save the output on the kill ringLars Ingebrigtsen2021-07-191-3/+8
| | | | | * lisp/comint.el (comint-delete-output): Allow saving the output to the kill ring (bug#1496).
* Use make-separator-line in shortdocLars Ingebrigtsen2021-07-192-10/+5
| | | | | | | | * lisp/simple.el (separator-line): Tweak definition to not be so overwhelming. * lisp/emacs-lisp/shortdoc.el (shortdoc-separator): Removed. (shortdoc-display-group): Use make-separator-line.
* Add a new function for separator linesLars Ingebrigtsen2021-07-193-11/+23
| | | | | | | | | * lisp/help-fns.el (describe-symbol): Use it. * lisp/help.el (describe-key): Use it. * lisp/simple.el (separator-line): New face. (make-separator-line): New function (bug#49630).
* Fix documentation of a recent changeset (bug#5003)Eli Zaretskii2021-07-181-4/+6
| | | | | | | | | | | | | * lisp/files.el (safe-local-variable-values) (ignored-local-variable-values): Doc fix. (ignored-local-variable-values): Add :version tag. * doc/emacs/custom.texi (Safe File Variables): Mention 'ignored-local-variable-values'. * doc/lispref/variables.texi (File Local Variables): Fix wording. * etc/NEWS: Improve wording of the 'ignored-local-variable-values' entry.
* Count compile errors when FILE is a functionMattias Engdegård2021-07-181-1/+1
| | | | | | * lisp/progmodes/compile.el (compilation-parse-errors): Don't omit messages from the error count when FILE is a function rather than a regexp match number.
* Allow ignoring local variable values permanentlyLars Ingebrigtsen2021-07-181-7/+34
| | | | | | | | | | * doc/lispref/variables.texi (File Local Variables): Document it. * lisp/files.el (ignored-local-variable-values): New user option (bug#5003). (hack-local-variables-confirm): Allow ignoring permanently. (hack-local-variables-filter): Ignore the permanently ignored variables.
* Make remote file locks more robustMichael Albinus2021-07-184-12/+12
| | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-write-region): * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region): Make file locks more robust. * test/lisp/net/tramp-tests.el (tramp-test39-make-lock-file-name): Rename and extend.
* Make remote file locks more robust. (Bug#49621)Naofumi Yasufuku2021-07-181-3/+3
| | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-write-region): Make file locks more robust. (Bug#49621) Copyright-paperwork-exempt: yes
* Maintain a list of terminal buffers in the menuLars Ingebrigtsen2021-07-181-1/+24
| | | | | * lisp/term.el (term--update-term-menu): New function (bug#5641). (term-mode): Use it to list terminal buffers.
* Fix problem in `shadow-define-literal-group' (Bug#49596)Michael Albinus2021-07-181-2/+6
| | | | | | | | | | * lisp/shadowfile.el (shadow-make-fullname): HOST can also be a remote file name. Bug#49596. * test/lisp/shadowfile-tests.el (auth-source-save-behavior) (tramp-cache-read-persistent-data, tramp-persistency-file-name): Set them globally. (shadow-test06-literal-groups): Extend test.
* Make indent-tabs-mode into a regular mode instead of just a variableLars Ingebrigtsen2021-07-181-0/+4
| | | | * lisp/simple.el (indent-tabs-mode): Make into a minor mode (bug#6276).
* Don't shorten comment padding if the padding isn't spacesLars Ingebrigtsen2021-07-181-6/+14
| | | | | | * lisp/newcomment.el (comment-padright): Don't shorten non-space padding (bug#6822). (comment-padleft): Ditto.
* Fix an unlikely `copyright-find-copyright' problemLars Ingebrigtsen2021-07-181-5/+10
| | | | | * lisp/emacs-lisp/copyright.el (copyright-find-copyright): Make the copyright matcher more robust (bug#7179).
* Fix previous grep-file-at-point changeLars Ingebrigtsen2021-07-171-1/+1
| | | | * lisp/progmodes/grep.el (grep-file-at-point): Fix previous change.
* Add new function 'grep-file-at-point'Lennart Borgman2021-07-171-0/+7
| | | | | * lisp/progmodes/grep.el (grep-file-at-point): New function to return the file name at point (bug#8252).
* Enhance pcomplete support for xargsKarthik Chikmagalur2021-07-171-1/+2
| | | | | | | * lisp/pcmpl-unix.el (pcomplete/xargs): Add support for completing xargs options, including the ability to distinguish them from the command xargs runs (bug#49603). Copyright-paperwork-exempt: yes
* Make 'n'/'p' work again in shortdoc after previous changesLars Ingebrigtsen2021-07-171-10/+9
| | | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc--goto-section): Adjust to changes in how the text properties are inserted in 22a5482ab6 (bug#49605). Also make into a regular function.
* EIEIO: Prevent excessive evaluation of :initformakater2021-07-161-14/+21
| | | | | | | | | | | | | | * lisp/emacs-lisp/eieio.el (initialize-instance): Do not evaluate initform of a slot when initarg for the slot is provided, according to the following secitons of CLHS: - Object Creation and Initialization - Initialization Arguments - Defaulting of Initialization Arguments - Rules for Initialization Arguments * test/lisp/emacs-lisp/eieio-etests/eieio-tests.el: Add corresponding tests Fix a typo
* Define revert-buffer-function for *Memory Report*Mattias Engdegård2021-07-161-0/+2
| | | | | * lisp/emacs-lisp/memory-report.el (memory-report): Allow the memory report buffer to be updated by pressing 'g'.
* ; Fix last change in files.elMichael Albinus2021-07-161-1/+0
|
* Add lock-file-modeMichael Albinus2021-07-161-20/+26
| | | | | | | | | | * doc/emacs/files.texi (Interlocking): * doc/lispref/files.texi (File Locks): * etc/NEWS: Add lock-file-mode. * lisp/files.el (lock-file-name-transforms) (remote-file-name-inhibit-locks): Move down. (lock-file-mode): New minor mode.
* ; Fix wording of recent changes in documentationEli Zaretskii2021-07-161-5/+6
| | | | | | * lisp/files.el (query-about-changed-file): * doc/emacs/files.texi (Visiting): * etc/NEWS: Fix the wording of a recent change. (Bug#10755)
* Add new user option 'query-about-changed-file'Lars Ingebrigtsen2021-07-161-0/+20
| | | | | | * doc/emacs/files.texi (Visiting): Document it. * lisp/files.el (query-about-changed-file): New user option (bug#10775). (find-file-noselect): Use it.
* Fix lock-file-name-transforms build problemLars Ingebrigtsen2021-07-161-1/+0
| | | | | * lisp/files.el (lock-file-name-transforms): Remove custom-initialize-delay to fix build problem (bug#49507).
* Allow hiding variables in CustomizeLars Ingebrigtsen2021-07-161-1/+1
| | | | | * lisp/cus-edit.el (custom-toggle-hide-variable): Allow closing an option even if there are unsaved changes (bug#11655).
* Make `number-at-point' work for more hex numbersRemington Furman2021-07-161-8/+8
| | | | | | | * lisp/thingatpt.el (number-at-point): Rewrite to actually catch the hex numbers (bug#49588). Copyright-paperwork-exempt: yes
* Improve recent jka-compr-compression-info-list changeGlenn Morris2021-07-151-4/+10
| | | | | * lisp/jka-cmpr-hook.el (jka-compr-compression-info-list): Document previous change, and fix :type.
* Add bug-reference support for Codeberg projectsTassilo Horn2021-07-151-1/+16
| | | | | | | * lisp/progmodes/bug-reference.el (bug-reference-setup-from-vc-alist): Add support for codeberg.org bug and pull request references. * doc/emacs/maintaining.texi (Bug Reference): Mention that bug and pull request references for codeberg projects are supported.
* Add support for sourcehut to bug-reference.elTassilo Horn2021-07-151-0/+25
| | | | | | | | * lisp/progmodes/bug-reference.el (bug-reference-setup-from-vc-alist): Add support for bug references like #17 and ~user/project#19 for sourcehut (sr.ht). * doc/emacs/maintaining.texi (Bug Reference): Document sourcehut support.
* ; * lisp/help-fns.el: Speed up `describe-mode'Ori2021-07-151-1/+1
| | | | | | | | | | | | | * lisp/help-fns.el (help-fns--list-local-commands): Speed up (bug#49579). A predicate checks if there are no key bindings for a given function. A full list of bindings is not needed, even a single binding is sufficient to say the function is bound. Set FIRSTONLY arg in where-is-internal so this predicate runs faster, with functional equivalence. For some configurations this has a noticeable improvement on the speed of describe-mode. Copyright-paperwork-exempt: yes
* Add more car/cdr examples to shortdocLars Ingebrigtsen2021-07-151-2/+6
| | | | * lisp/emacs-lisp/shortdoc.el (list): Add more car/cdr examples.
* Improve the shortdoc link action in *Help* buffersLars Ingebrigtsen2021-07-152-6/+9
| | | | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Allow taking an optional parameter to place point on a specific function. (shortdoc--display-function): Go to the function in question in the shortdoc buffer.
* Add new user option to abbreviate file names in save-placeLars Ingebrigtsen2021-07-151-1/+11
| | | | | | * lisp/saveplace.el (save-place-abbreviate-file-names): New user option (bug#13286). (save-place-to-alist): Use it.
* Allow restoring the original order in 'tabulated-list-mode'Lars Ingebrigtsen2021-07-151-8/+36
| | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Allow restoring the original order (bug#13411). (tabulated-list--sort-by-column-name): Store the original order. (tabulated-list--original-order): New buffer-local variable.
* Autoload `split-string-shell-command'Lars Ingebrigtsen2021-07-151-0/+1
| | | | * lisp/shell.el (split-string-shell-command): Autoload.
* ; * lisp/gnus/message.el (message-signature-separator): Add :version.Eli Zaretskii2021-07-151-1/+2
|