summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Merge from origin/emacs-28Stefan Kangas2022-02-031-2/+7
|\ | | | | | | ab2f275422 Improve documentation of 'emacs-version'
| * Improve documentation of 'emacs-version'Eli Zaretskii2022-02-021-2/+7
| | | | | | | | | | | | | | * doc/emacs/trouble.texi (Checklist): Mention the possibility of invoking 'emacs-version' with a prefix argument. * lisp/version.el (emacs-version): Improve doc string. (Bug#53720)
| * ; Auto-commit of loaddefs files.Stefan Kangas2022-02-021-15/+5
| |
* | Prevent the initial frame from showing up in the frame menuPo Lu2022-02-031-3/+6
| | | | | | | | | | * lisp/menu-bar.el (menu-bar-update-buffers): Ignore initial frame when generating frame list. (bug#53740)
* | ; cperl-mode.el: Detect prototypes in anonymous subroutinesHarald Jörg2022-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | My commit 3d49ad73e5a from 2021-09-143 had a flaw causing bad fontification and indentation after anonymous subroutines with a prototype. * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Correctly process prototypes in anonymous subroutines * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-fontify-attrs-and-signatures): new tests for various combinations of attributes, prototypes, and signatures * test/lisp/progmodes/cperl-mode-resources/proto-and-attrs.pl: new test source
* | New file lisp/emacs-lisp/debug-early.el for backtraces in early bootstrapAlan Mackenzie2022-02-022-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is also used in batch mode in general. * lisp/debug-early.el (debug-early-backtrace, debug-early): New functions. * lisp/loadup.el (top level): Load debug-early.el as first file. * src/eval.c (signal_or_quit): Remove the condition in the batch mode section of not being in dumping or bootstrap, since it is no longer needed. Test that 'debug-early's symbol-function is bound. Ensure there is enough working space in specpdl and eval_depth. (syms_of_eval): New DEFSYM for Qdebug_early. Initialise Vdebugger to Qdebug_early rather than Qnil.
* | * lisp/replace.el (query-replace-read-from): Use default for empty input.Juri Linkov2022-02-021-7/+9
| | | | | | | | | | | | Set 'default' from non-empty 'query-replace-read-from-default'. Use the default in non-regexp prompt and return it for empty input. https://lists.gnu.org/archive/html/emacs-devel/2022-02/msg00044.html
* | Improve the describe-key doc stringLars Ingebrigtsen2022-02-021-0/+6
| | | | | | | | | | * lisp/help.el (describe-key): Say something about prefix keys (bug#33320).
* | Mark vt-control and vc100-led obsolete since Emacs 29.1Lars Ingebrigtsen2022-02-022-0/+2
| |
* | Move vt-control and vt100-led to obsolete (bug#37562)Lars Ingebrigtsen2022-02-022-0/+0
| |
* | Fix decoding error in ietf-drums-parse-addressLars Ingebrigtsen2022-02-021-1/+1
| | | | | | | | | | * lisp/mail/ietf-drums.el (ietf-drums-parse-address): Don't try to decode the name if there is no name (bug#53716).
* | Fix bug with M-x compile-defun in a defconst/defvarAlan Mackenzie2022-02-021-9/+9
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (compile-defun): Have symbols-with-pos-enabled bound to non-nil when the eval takes place.
* | ; Auto-commit of loaddefs files.Stefan Kangas2022-02-021-64/+61
| |
* | * lisp/replace.el (query-replace-read-from-default): New variable.Juri Linkov2022-02-013-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | (query-replace-read-from-regexp-default): New variable. (query-replace-read-from): Use new variables. * lisp/progmodes/project.el (project-query-replace-regexp): Let-bind query-replace-read-from-regexp-default to find-tag-default-as-regexp. * lisp/progmodes/xref.el (xref-find-references-and-replace): Let-bind query-replace-read-from-default to find-tag-default. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg01909.html
* | * lisp/tab-line.el: Support non-buffer tabs in some tab face functions.Juri Linkov2022-02-011-4/+6
| | | | | | | | | | | | | | (tab-line-tab-face-special, tab-line-tab-face-modified): For non-buffer tabs when 'tab-line-tabs-function' is e.g. 'tab-line-tabs-buffer-groups', try to get the buffer from the property 'buffer'. https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg01923.html
* | * lisp/startup.el (startup--require-comp-safely): Fix typo in a92c6191b0Andrea Corallo2022-02-011-1/+1
| |
* | Remove extra \= from obsoletion messageAndreas Schwab2022-02-012-5/+5
| | | | | | | | | | | | | | * lisp/emacs-lisp/eieio.el (defclass): Remove \= from obsoletion message. * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload) (eieio-defclass-internal): Likewise.
* | Rename `comp--loadable' into `comp--compilable'Andrea Corallo2022-02-011-4/+4
| | | | | | | | | | | | | | | | * lisp/startup.el (comp--compilable): Rename from `comp--loadable'. (startup--require-comp-safely): Update accordingly. (startup--honor-delayed-native-compilations): Likewise. * src/comp.c (syms_of_comp): Update. (maybe_defer_native_compilation): Likewise.
* | * Fix `startup--require-comp-safely' (bug#53675)Andrea Corallo2022-02-011-1/+1
| | | | | | | | | | * lisp/startup.el (startup--require-comp-safely): Remove unnecessary check.
* | ; * lisp/select.el (gui--selection-value-internal): Fix comment.Po Lu2022-02-011-5/+6
| |
* | Only apply last change to the clipboardPo Lu2022-02-011-0/+1
| | | | | | | | | | * lisp/select.el (gui--selection-value-internal): Only return nil if we own the clipboard.
* | Avoid extraneous selection querying if we own the selectionPo Lu2022-02-011-14/+20
| | | | | | | | | | | | * lisp/select.el (gui--selection-value-internal): Return nil if `gui-backend-selection-owner-p' on window systems where it is reliable.
* | Fix nnregistry byte compilation warningLars Ingebrigtsen2022-01-311-2/+2
| | | | | | | | | | * lisp/gnus/nnregistry.el (nnregistry-server-opened) (nnregistry-open-server): Fix byte compilation warning.
* | (byte-compile-eval): Adjust to changes in `load-history`Stefan Monnier2022-01-314-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `function-history` patch introduced a regression which caused spurious compiler warnings. Fix it. The new code also fixes a bug in the old code, thus causing some new non-spurious warnings. Fix them as well. * lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to changes in `load-history`. * lisp/gnus/gnus-group.el (nnrss-discover-feed) (nnrss-save-server-data): Use `declare-function`. * lisp/cedet/semantic/wisent/comp.el (wisent-defcontext) (wisent-with-context): * lisp/emacs-lisp/comp.el (comp-op-case): Silence compiler warning.
* | Don't remove dummy.group from gnus-newsrc-alist on Gnus saveEric Abrahamsen2022-01-311-16/+13
| | | | | | | | | | | | | | | | bug#53352 * lisp/gnus/gnus-start.el (gnus-gnus-to-quick-newsrc-format): This function was removing dummy.group from the global value of `gnus-newsrc-alist' on save; we only wanted to remove it temporarily.
* | Obsolete gnus-registry-enabled in favor of checking gnus-registry-dbEric Abrahamsen2022-01-311-10/+10
| | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-registry.el (gnus-registry-enabled): Obsolete this variable; recommend using `gnus-registry-db' as a boolean instead. (gnus-registry-load, gnus-registry-register-message-ids, gnus-registry-article-marks-to-chars, gnus-registry-article-marks-to-names, gnus-registry-clear, gnus-registry-install-p): In all these functions, test `gnus-registry-db' instead of `gnus-registry-enabled'. We no longer set or clear that variable.
* | * lisp/vc/vc.el (vc-diff-internal): Assume revert-buffer is in current buffer.Juri Linkov2022-01-311-4/+3
| | | | | | | | | | | | | | Support the case when reverting is in the buffer with a name other than the default name "*vc-diff*". Then don't try to switch to the buffer "*vc-diff*" with an assumption that revert-buffer is always performed in the current buffer (bug#28852).
* | * lisp/progmodes/cc-mode.el (c-common-init): Bind case-fold-search to nilAlan Mackenzie2022-01-311-37/+38
| | | | | | | | This fixes bug #53605.
* | Adjust toggle-menu-bar-mode-from-frame doc stringLars Ingebrigtsen2022-01-311-1/+1
| | | | | | | | | | * lisp/menu-bar.el (toggle-menu-bar-mode-from-frame): Adjust the doc string to reflect what it does (bug#43383).
* | Make more ranges sort properly in describe-keymapLars Ingebrigtsen2022-01-311-2/+11
| | | | | | | | | | * lisp/subr.el (keymap-canonicalize): Don't consider two-character ranges as a range (bug#11325).
* | (function-history): New symbol property (bug#53632)Stefan Monnier2022-01-312-44/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the code we have in Fdefalias that tries to keep track of definitions so as to be able to undo them later. We used to store in `load-history` when an autoload is redefined as a non-autoload and in the `autoload` symbol property we used to store the autoload data that used to be used before it got overriden. Instead, store the history of the function definition of a symbol in its `function-history` symbol property. To make this list cheap in the default case, the latest value is not stored in the list (since it's in the `symbol-function`) and neither is the first file. So if there's only been a single definition (the most common case), the list is empty and the property is just not present at all. The patch also gets rid of the `autoload` vs `defun` distinction in `load-history` which seems unnecessary (a significant part of the motivation for this patch was to get rid of the special handling of autoloads in this part of the code). * src/data.c (add_to_function_history): New function. (defalias): Use it. Don't add the `t` entries for autoloads and always use `defun` regardless of the kind of definition. Change `Vautoload_queue` to only hold the function symbols since the rest is now available from `function-history`. * src/eval.c (un_autoload): Adjust accordingly. * src/lread.c (load-history): Udate docstring. * lisp/loadhist.el (loadhist-unload-filename): New var. (unload-feature): Bind it. (loadhist-unload-element): Document its availability. (loadhist--restore-autoload): Delete var. (loadhist--unload-function): Delete function. (loadhist-unload-element): Delete the `t` and `autoload` methods. Rewrite the `defun` method using `function-history`. * lisp/help-fns.el: Require `seq`. (help-fns--autoloaded-p): Rewrite. (help-fns-function-description-header): Adjust call accordingly. * doc/lispref/loading.texi (Where Defined): Remove `autoload` and `t` entries from `load-history` since we don't generate them any more. Document the `function-history` which replaces the `autoload` property. (Unloading): Adjust symbol property name accordingly. * test/lisp/loadhist-resources/loadhist--bar.el: * test/lisp/loadhist-resources/loadhist--foo.el: New files. * test/lisp/loadhist-tests.el (loadhist-tests-unload-feature-nested) (loadhist-tests-unload-feature-notnested): New tests.
* | Make Gnus address checking more resilientLars Ingebrigtsen2022-01-311-1/+2
| | | | | | | | | | | | * lisp/gnus/gnus-art.el (article--check-suspicious-addresses): Check that we have an email address before checking the validity (bug#53651).
* | Improve 'latin1-display-ucs-per-lynx'Eli Zaretskii2022-01-311-2420/+2419
| | | | | | | | | | | | | | * lisp/international/latin1-disp.el (latin1-display-ucs-per-lynx): Don't judge display-ability of all the characters by testing just one of them. Instead, install an ASCII equivalent of every character that the terminal cannot display.
* | Factor out function to check for clang in testsStefan Kangas2022-01-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also stops a flymake test from failing on my machine. * lisp/emacs-lisp/ert-x.el (ert-gcc-is-clang-p): New function factored out from ... * test/lisp/progmodes/flymake-tests.el (flymake-tests--gcc-is-clang): * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): ... here. * test/lisp/progmodes/flymake-tests.el (different-diagnostic-types) (included-c-header-files): * test/lisp/cedet/semantic/bovine/gcc-tests.el (semantic-gcc-test-output-parser-this-machine): Use above new function.
* | * lisp/image.el (image-map): Use defvar-keymap.Stefan Kangas2022-01-311-12/+10
| |
* | Merge from origin/emacs-28Stefan Kangas2022-01-318-20/+30
|\| | | | | | | | | | | 6f282b31ad Update to Org 9.5.2-13-gdd6486 6636231b2c ; * lisp/international/latin1-disp.el: Update commentary. f22e9ba9ac Fix regression in Occur Edit mode
| * Update to Org 9.5.2-13-gdd6486Kyle Meyer2022-01-306-10/+10
| |
| * ; * lisp/international/latin1-disp.el: Update commentary.Eli Zaretskii2022-01-301-8/+13
| |
| * Fix regression in Occur Edit modeEli Zaretskii2022-01-301-2/+7
| | | | | | | | | | * lisp/replace.el (occur-after-change-function): Fix the algorithm to find the smallest change in some corner cases. (Bug#53598)
* | Fix with-suppressed-warnings edebug specLars Ingebrigtsen2022-01-311-1/+1
| | | | | | | | | | * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Fix edebug spec.
* | * lisp/frame.el (undelete-frame--save-deleted-frame): Handle initial frame.Juri Linkov2022-01-301-5/+5
| | | | | | | | | | The function undelete-frame--save-deleted-frame is renamed from undelete-frame--handle-delete-frame (bug#51883).
* | * lisp/frame.el: Don't require 'frameset.el' (bug#51883).Juri Linkov2022-01-302-33/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (clone-frame): Use frame-internal-parameters. (undelete-frame--handle-delete-frame): Instead of using frameset-save, save frame-parameters except frame-internal-parameters and 'display' on non-graphic display. Also save window-state from window-state-get. (undelete-frame): Instead of using frameset-restore, set default-frame-alist for make-frame (like in clone-frame), and restore window-state with window-state-put. * lisp/frameset.el (frameset-session-filter-alist): Append parameters from frame-internal-parameters with the filter :never. Remove :name that is now in frame-internal-parameters. (frameset-persistent-filter-alist): Remove outer-window-id, parent-id, window-id that are now in frame-internal-parameters, included here via frameset-session-filter-alist. * src/frame.c (frame-internal-parameters): New variable.
* | Merge from origin/emacs-28Stefan Kangas2022-01-301-4/+4
|\| | | | | | | | | | | | | e81e375539 ; Yet another minor fix of Malayalam composition rules. 94f38cbec4 Fix last change of Malayalam composition rules ed3bbeb80d Fix rendering of Malayalam script 5ef3a52342 Improve documentation of Occur mode
| * ; Yet another minor fix of Malayalam composition rules.Eli Zaretskii2022-01-291-2/+2
| |
| * Fix last change of Malayalam composition rulesEli Zaretskii2022-01-291-6/+26
| | | | | | | | | | | | | | * lisp/language/indian.el (malayalam-composable-pattern): Reinstate. Instead of removing it, add any sequence of Malayalam characters to the existing patterns, so as not to lose the patterns that use ZWJ and ZWNJ. (Bug#53625)
| * Fix rendering of Malayalam scriptEli Zaretskii2022-01-291-26/+6
| | | | | | | | | | | | | | * lisp/language/indian.el (malayalam-composable-pattern): Remove. (script-regexp-alist): Remove 'malayalam-composable-pattern'. Instead, pass any sequence of Malayalam codepoints to the shaping engine. (Bug#53625)
* | package.el: Fix bug#53529Stefan Monnier2022-01-291-1/+2
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-autoload-ensure-default-file): Enforce Unix EOLs.
* | * lisp/tab-bar.el (tab-bar-menu-bar-button): New variable (bug#51648).Juri Linkov2022-01-291-1/+5
| | | | | | | | (tab-bar-format-menu-bar): Use it.
* | * lisp/isearch.el: Put 'isearch-scroll' property on two new symbols.Juri Linkov2022-01-291-0/+4
| | | | | | | | | | Put 'isearch-scroll' property on new commands 'recenter-other-window' and 'context-menu-open'.
* | ; * lisp/subr.el (use-dialog-box-p): Fix typo.Eli Zaretskii2022-01-291-1/+1
| |