summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Improve how change-log-mode fills all-file-name linesLars Ingebrigtsen2022-01-251-0/+15
| | | | | | * lisp/vc/add-log.el (change-log-fill-file-list): New function to improve how we fill all-file-name ChangeLog lines (bug#19341). (change-log-indent): Use it.
* * `batch-byte+native-compile' produce .eln younger than .elc (bug#52912)Andrea Corallo2022-01-251-6/+11
| | | | | | | * lisp/emacs-lisp/comp.el (batch-native-compile): Add return value. (batch-byte+native-compile): Touch the produced .eln after the corresponding .elc is produced.
* * lisp/emacs-lisp/comp.el (batch-byte+native-compile): Fix unwind formAndrea Corallo2022-01-251-2/+2
|
* Don't mutate literals in tabulated-list-widen-current-columnLars Ingebrigtsen2022-01-251-0/+3
| | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-widen-current-column): Avoid mutating constants (bug#53501).
* Fix widening some columns in tabulated-list-widen-current-columnLars Ingebrigtsen2022-01-251-1/+4
| | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-widen-current-column): Don't bug out on list-based columns (bug#53498).
* Treat "-" as a positional arg in 'eshell-eval-using-options'Jim Porter2022-01-252-10/+8
| | | | | | | | | | * lisp/eshell/esh-opt.el (eshell--process-args): Treat "-" as a positional arg. * lisp/eshell/em-tramp.el (eshell/su): Simplify checking for "-". * test/lisp/eshell/esh-opt-tests.el (esh-opt-test/eval-using-options-stdin): New test.
* Don't manipulate args in-place for 'eshell-eval-using-options'Jim Porter2022-01-252-69/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for preserve the original arguments to forward on to :external commands. Previously, when :preserve-args was also set, the original argument list could be altered, changing the meaning of the command. * lisp/eshell/esh-opt.el (eshell-eval-using-options): Copy MACRO-ARGS when :preserve-args is set, and pass the original value to 'eshell--do-opts'. (eshell--do-opts): Use the original arguments when calling an external command. * lisp/eshell/em-tramp.el (eshell/su, eshell/sudo): Don't copy the original arguments, since 'eshell-eval-using-options' does this for us. * test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test): Split this test into... (esh-opt-test/process-args) (esh-opt-test/process-args-parse-leading-options-only) (esh-opt-test/process-args-external): ... these. (test-eshell-eval-using-options): Split this test into... (esh-opt-test/eval-using-options-short) (esh-opt-test/eval-using-options-long) (esh-opt-test/eval-using-options-constant) (esh-opt-test/eval-using-options-user-specified) (esh-opt-test/eval-using-options-short-single-token) (esh-opt-test/eval-using-options-terminate-options) (esh-opt-test/eval-using-options-parse-leading-options-only) (esh-opt-test/eval-using-options-unrecognized): ... these. (esh-opt-test/eval-using-options-external): New test. * test/lisp/eshell/em-tramp-tests.el: New tests.
* Improve the term-clear-full-screen-programs doc stringLars Ingebrigtsen2022-01-251-2/+2
| | | | | * lisp/term.el (term-clear-full-screen-programs): Improve the doc string.
* Merge from origin/emacs-28Stefan Kangas2022-01-251-2/+3
|\ | | | | | | | | c34d06e3d7 * configure.ac (LIBSECCOMP): Bump minimum version for facc... 335a5a9e0f Make the `f' command work in image-mode again
| * Make the `f' command work in image-mode againLars Ingebrigtsen2022-01-241-2/+3
| | | | | | | | | | * lisp/image.el (image-show-frame): Protect against not having computed the animation data yed (bug#53489).
* | Remove some dubious uses of `interactive-form`Stefan Monnier2022-01-242-6/+4
| | | | | | | | | | | | | | * lisp/emacs-lisp/cl-generic.el (cl--generic-lambda): `commandp` and `interactive-form` are for function values, not for source code. * lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag): Prefer `commandp` over `interactive-form`.
* | Add Eshell syntax to more easily bypass Eshell's own pipeliningSean Whitton2022-01-242-0/+184
| | | | | | | | | | | | | | | | * etc/NEWS: * doc/misc/eshell.texi (Input/Output): Document the new syntax. * lisp/eshell/em-extpipe.el: New module (Bug#46351). * test/lisp/eshell/em-extpipe-tests.el: New tests. * lisp/eshell/esh-module.el (eshell-modules-list): Add `eshell-extpipe'.
* | Make hi-lock-face-defaults into a defcustomLars Ingebrigtsen2022-01-241-2/+4
| | | | | | | | * lisp/hi-lock.el (hi-lock-face-defaults): Make into defcustom.
* | * lisp/hi-lock.el (hi-lock-use-overlays): New variable.Juri Linkov2022-01-241-1/+15
| | | | | | | | | | (hi-lock-set-pattern): Use it. Set overlay priority to 1. (bug#53155)
* | Implement alternative sub-buffer support in term.elMiha Rihtaršič2022-01-241-35/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/e/eterm-color.ti: Added termcaps for entering and leaving an alternative sub-buffer. * lisp/term.el (term-reset-size): Resize correctly in an alternative sub-buffer is in use. (term-clear-full-screen-programs): New user option. (term-handle-ansi-escape): (term-termcap-format): Handle termcaps for entering and leaving an alternative sub-buffer. (term-switch-to-alternate-sub-buffer): New (used to be commented out) function to enter or leave an alternative sub-buffer. bug#53485
* | * lisp/info.el (Info-link-keymap): Fix repetitive clicks on the header line.Juri Linkov2022-01-241-1/+1
| | | | | | | | | | | | | | Rebind [header-line mouse-1] from mouse-select-window to Info-mouse-follow-link. It selects the window anyway, but also allows repetitively clicking on the Next button on the Info header line (bug#53170).
* | Don't list the default hi-lock faces twice in the future historyLars Ingebrigtsen2022-01-241-3/+5
| | | | | | | | | | * lisp/hi-lock.el (hi-lock-read-face-name): Don't include faces twice in the defaults (bug#19877).
* | Fix gnus-article-truncate-lines doc stringLars Ingebrigtsen2022-01-241-3/+1
| | | | | | | | | | * lisp/gnus/gnus-art.el (gnus-article-truncate-lines): Fix doc string.
* | * lisp/faces.el (read-face-name): Support a list of defaults for M-n.Juri Linkov2022-01-241-58/+60
| | | | | | | | | | | | When MULTIPLE is nil and the arg DEFAULT is a list, keep its elements in the "future history" of the minibuffer retrieved by `M-n M-n ...'. (bug#53255)
* | * lisp/minibuffer.el (completions-sort): Fix type.Glenn Morris2022-01-241-1/+1
| | | | | | | | Flagged by test-custom-opts.
* | Allow sorting in electric-buffer-list with `S'Lars Ingebrigtsen2022-01-241-0/+1
| | | | | | | | | | * lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Add the `S' sorting command here, too (bug#20178).
* | ERC: Add new comaintainer, F. Jason ParkAmin Bandali2022-01-2436-37/+37
| | | | | | | | * lisp/erc/erc*.el: Add J.P. as my comaintainer to headers.
* | Fix \href{a_b} in tex-modeLars Ingebrigtsen2022-01-241-0/+5
| | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): Fontify href parameters like constants so that _ aren't fontified like subscripts.
* | Revert "Fix tex-mode handling of _ chars in href{} commands"Lars Ingebrigtsen2022-01-241-11/+1
| | | | | | | | | | | | This reverts commit 487a0be7f7eb0ca9402247f13a11e39aa2946d05. This will be fixed a different way.
* | Make anonymous functions work in auto-mode-alistLars Ingebrigtsen2022-01-241-0/+1
| | | | | | | | | | * lisp/files.el (set-auto-mode--apply-alist): Don't infloop on anonymous functions in auto-mode-alist (bug#20709).
* | Don't loop so much in gud-query-cmdline on remote systemsLars Ingebrigtsen2022-01-241-7/+12
| | | | | | | | | | * lisp/progmodes/gud.el (gud-query-cmdline): Avoid looping over large numbers of files on remote systems (bug#21528).
* | Make Completions sorting a user optionProtesilaos Stavrou2022-01-241-1/+16
| | | | | | | | | | | | | | * etc/NEWS: Document the new user option. * lisp/minibuffer.el (completions-sort): Add new user option. (minibuffer-completion-help): Implement it for the Completions buffer. (Bug#53362)
* | Allow jumping to ert failure definitionsLars Ingebrigtsen2022-01-242-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-test): (ert-deftest): Store the file name. (ert-test-location): New function. (ert-run-tests-batch): Use it. * lisp/emacs-lisp/find-func.el (find-ert-deftest-regexp): New variable. (find-function-regexp-alist): Add ert-deftest (bug#22471). Based on code by Phillip Lord <phillip.lord@russet.org.uk>.
* | Add a *Help* command that'll take you to the lispref manualLars Ingebrigtsen2022-01-242-0/+16
| | | | | | | | | | | | | | | | * doc/emacs/help.texi (Help Mode): Document it. * lisp/help-mode.el (help-mode-map): Add an `I' keystroke. (help-goto-lispref-info): New command. * lisp/info-look.el (:mode): Add an entry for the lispref manual.
* | Fix tex-mode handling of _ chars in href{} commandsLars Ingebrigtsen2022-01-241-1/+11
| | | | | | | | | | | | * lisp/textmodes/tex-mode.el (tex--current-command): New function (bug#23102). (tex-font-lock-suscript): Don't subscript _ chars in href.
* | Make `font-lock-add-keywords' work in derived modesLars Ingebrigtsen2022-01-241-2/+3
| | | | | | | | | | * lisp/font-lock.el (font-lock-set-defaults): Make `font-lock-add-keywords' work in derived modes (bug#24176).
* | ; * lisp/emacs-lisp/byte-opt.el: Remove outdated commentsMattias Engdegård2022-01-241-116/+2
| | | | | | | | | | These were optimisation ideas that have been implemented, have become irrelevant, or were impractical to begin with.
* | Remove the unused unbind-all bytecodeMattias Engdegård2022-01-242-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | It was implemented but never generated, originally intended for TCO in the pre-lexbind era (which was semantically dubious anyway). Removing it speeds up the interpreter because there is no longer any need for the outermost `count` variable unless checking is enabled. * lisp/emacs-lisp/bytecomp.el: * lisp/emacs-lisp/comp.el (comp-limplify-lap-inst): * src/bytecode.c (BYTE_CODES, exec_byte_code): Remove definition and implementation of unbind-all, freeing up the opcode for other purposes.
* | Add "then" to sh--completion-keywordsLars Ingebrigtsen2022-01-241-1/+1
| | | | | | | | | | * lisp/progmodes/sh-script.el (sh--completion-keywords): Allow completing over "then" (bug#53490).
* | Fix Gnus registry key bindingsLars Ingebrigtsen2022-01-241-40/+37
| | | | | | | | | | * lisp/gnus/gnus-registry.el (gnus-registry-install-shortcuts): Don't overwrite all other M M commands (bug#53492).
* | Expunge read-with-symbol-position and read-symbol-positions-listAlan Mackenzie2022-01-241-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | These are remnants of the old way of determining byte compiler warning positions. * src/lread.c (read_internal_start, read1): Remove initializations amd manipulations of these variables. (syms_of_lread): Remove the declarations of the variables. * lisp/emacs-list/bytecomp.el (compile-defun, byte-compile-from-buffer): Remove bindings of the variables.
* | Bind print-symbols-bare to t in byte-compile-from-bufferAlan Mackenzie2022-01-231-6/+7
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Bind print-symbols-bare to t here for the benefit of non-defining forms in buffers.
* | Make message in hack-local-variables-confirm clearerLars Ingebrigtsen2022-01-231-1/+1
| | | | | | | | | | | | * lisp/files.el (hack-local-variables-confirm): Mention the .dir-locals.el file in the message to be slightly less confusing (bug#27066).
* | Make `C-x M-x insert-kbd-macro RET RET' work betterLars Ingebrigtsen2022-01-231-2/+3
| | | | | | | | | | * lisp/macros.el (insert-kbd-macro): Don't give bogus output on names that have no function definition (bug#30309).
* | Fix tabulated-list-widen-current-column widening wrong columnThuna2022-01-231-11/+11
| | | | | | | | | | | | | | | | * tabulated-list.el (tabulated-list-widen-current-column): Use correct comparison operation when checking if point is within the column bounds (bug#53375). Copyright-paperwork-exempt: yes
* | Allow using outline minor mode in `M-x apropos-value'Lars Ingebrigtsen2022-01-231-11/+19
| | | | | | | | | | | | | | | | | | * lisp/apropos.el (apropos-mode): Set up outline minor mode (bug#31094). (apropos-value): Don't add "---" separators, because it doesn't really seem to add anything much. (apropos-value-internal): Escape newlines so that no values can be confused for headings.
* | Make apropos-print-doc more resilientLars Ingebrigtsen2022-01-231-1/+3
| | | | | | | | | | * lisp/apropos.el (apropos-print-doc): Don't bug out on doc strings that have invalid command key syntaxes.
* | Fix position argument to macroexp--warn-wrap in cconv--convert-funcbodyAlan Mackenzie2022-01-231-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/cconv.el (cconv--convert-funcbody): Change the position argument to macroexp--warn-wrap from BODY to ARG, to give correct positions in warning messages.
* | Improve `M-x speedbar' under emacs -nw very slightlyLars Ingebrigtsen2022-01-231-1/+3
| | | | | | | | | | | | * lisp/speedbar.el (speedbar-frame-mode): `M-x speedbar' doesn't seem to do anything visible under -nw, so issue a message in that case to tell the user how to proceed (bug#32597).
* | Regenerate ldefs-boot.elLars Ingebrigtsen2022-01-231-65/+122
| |
* | Add new function to prompt a user for a process namePhil Sainty2022-01-231-0/+42
| | | | | | | | | | * lisp/emacs-lisp/subr-x.el (read-process-name): New function (bug#32640).
* | Improve scheme-imenu-generic-expressionAlex Kost2022-01-231-6/+47
| | | | | | | | | | * lisp/progmodes/scheme.el (scheme-imenu-generic-expression): Improve so that we match `define-public' etc (bug#33117).
* | Make occur edit mode more resilientLars Ingebrigtsen2022-01-231-0/+1
| | | | | | | | | | * lisp/replace.el (occur-engine): Make the prefix read-only so that it's preserved in edit mode (bug#53419).
* | Merge from origin/emacs-28Stefan Kangas2022-01-231-1/+1
|\| | | | | | | | | 6d3608be88 Seccomp: improve support for newer versions of glibc (Bug#... e58ecd01d5 EUDC: Fix a quoting bug in the BBDB backend
| * EUDC: Fix a quoting bug in the BBDB backendThomas Fitzsimmons2022-01-211-1/+1
| | | | | | | | | | * lisp/net/eudcb-bbdb.el (eudc-bbdb-query-internal): Fix a quoting bug introduced during lexical-binding conversion.