summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* ; Improve documentation of :predicate in globalized minor modesEli Zaretskii2023-03-231-9/+17
| | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Improve documentation of the :predicate keyword in defining globalized minor modes.
* Fix :predicate handling in globalized minor modesStefan Monnier2023-03-231-1/+1
| | | | | * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix a thinko. (Bug#62376)
* * lisp/emacs-lisp/comp.el (comp-emit-set-call-subr): Improve 263d6c38539Andrea Corallo2023-03-211-1/+1
|
* Comp fix calls to redefined primtives with op-bytecode (bug#61917)Andrea Corallo2023-03-201-11/+19
| | | | | | * lisp/emacs-lisp/comp.el (comp-emit-set-call-subr): Fix compilation of calls to redefined primtives with dedicated op-bytecode. * test/src/comp-tests.el (61917-1): New test.
* Remove 'package-vc--query-spec'Philip Kaludercic2023-03-151-9/+0
| | | | | | | * lisp/emacs-lisp/package-vc.el (require): Do not load `inline' during compilation. (package-vc--query-spec): Remove function. (package-vc--clone): Do not call 'package-vc--query-spec'.
* Do not store :lisp-dir in package descriptorsPhilip Kaludercic2023-03-151-16/+9
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file) (package-vc--unpack-1): Query 'pkg-spec' instead of 'package-desc-extras'. (package-vc--unpack): Do not update 'package-desc-extras'. This simplification is possible due to the change in 2718bbb3bc, since we now ensure that package specifications are not lost. They are either provided by a package archive or stored in 'package-vc-selected-packages'.
* Use 'package-vc-selected-packages' to store package specsPhilip Kaludercic2023-03-151-16/+22
| | | | | | | | | | | * doc/emacs/package.texi (Fetching Package Sources): Do not promote the usage of 'package-vc-selected-packages' to install packages. * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Remove custom setter and change docstring according to these changes. (package-vc--desc->spec): Consult 'package-vc-selected-packages' for package specifications. (package-vc--unpack): Add unknown package specifications to 'package-vc-selected-packages'
* * Make sure `default-directory' exists before spawning processes (bug#62004)Andrea Corallo2023-03-081-1/+3
| | | | | * lisp/emacs-lisp/comp.el (comp-final, comp-run-async-workers): Bind `default-directory' to `invocation-directory'.
* * lisp/emacs-lisp/comp.el (comp-prettyformat-insn): Fix (bug#61917)Andrea Corallo2023-03-061-4/+6
|
* ; Minor fix of last changeEli Zaretskii2023-03-051-1/+1
| | | | | * lisp/emacs-lisp/comp.el (comp-subr-trampoline-install): Fix wording. (Bug#61880)
* * Warn when certain primitives are redefined (bug#61880)Andrea Corallo2023-03-051-0/+11
| | | | | | * lisp/emacs-lisp/comp.el (comp-warn-primitives): New constant. (comp-subr-trampoline-install): Warn when a sensitive primitive is being redefined.
* * lisp/emacs-lisp/debug-early.el (debug-early-backtrace): Fix bug#61847Stefan Monnier2023-03-011-4/+4
| | | | | | | The `noerror` arg of `require` doesn't do what Stefan naively thought when he wrote this code, so use `condition-case` instead. Also check for `cl-defmethod` since `cl-prin1` can't be loaded before that anyway.
* Revert "Don't disable eldoc when doing edebug"Eli Zaretskii2023-03-011-0/+1
| | | | | | | | This reverts commit 6fd1fb8a6837acde8e1c9ab26618ec0f36121c72. It turns out ElDoc does show messages inside Edebug, if you are (un)lucky enough to have point where ElDoc has something to show. Bug#56459 needs to be fixed in some more complex way.
* Avoid reusing :lisp-dir twice in 'package-vc--main-file'Philip Kaludercic2023-02-241-1/+0
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file): Just use :lisp-dir from 'package-desc-extras', not 'pkg-spec'. This avoid appending the contents of :lisp-dir twice, in case it is specified both in pkg-spec and pkg-desc.
* Ensure right package-desc-type before installing packagePhilip Kaludercic2023-02-241-3/+5
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Move copying code from 'package-vc-install'. (package-vc-install): Remove copying. (Bug#61669)
* ; * lisp/emacs-lisp/eldoc.el (eldoc-display-in-echo-area): Fix typo.Yuan Fu2023-02-221-1/+1
|
* Add 'process-status' to process shortdocRobert Pluim2023-02-211-0/+3
| | | | * lisp/emacs-lisp/shortdoc.el (process): Add 'process-status'.
* * lisp/emacs-lisp/comp.el (comp--trampoline-abs-filename): Improve 5d0b45cd67bAndrea Corallo2023-02-211-4/+2
|
* Make the native compiler always use `make-temp-file' for temporary filesAndrea Corallo2023-02-201-2/+2
| | | | | | | * src/comp.c (CALL4I): Define macro. (Fcomp__compile_ctxt_to_file): Use `make-temp-file' instead of `make-temp-file-internal'. * lisp/emacs-lisp/comp.el (comp--trampoline-abs-filename): Likewise.
* Merge from origin/emacs-28Stefan Kangas2023-02-191-1/+1
|\ | | | | | | | | | | | | | | f5a99945b6f ; Update ChangeLog for Emacs 28.3 f7bd5ac5521 Update HISTORY for Emacs 28.3 # Conflicts: # etc/NEWS
* | Fix invocation of File->Close from the menu barEli Zaretskii2023-02-191-13/+14
| | | | | | | | | | | | | | | | | | | | * lisp/simple.el (kill-buffer--possibly-save): Don't request LONG-FORM from 'read-multiple-choice' if GUI dialog should be used. * lisp/emacs-lisp/rmc.el (read-multiple-choice): Doc fix. (read-multiple-choice--short-answers): Don't append "?" to CHOICES and don't display the prompt in the echo area if GUI dialog is used. Use 'use-dialog-box-p'. (Bug#61553)
* | * Fix `native-comp-enable-subr-trampolines' semanticAndrea Corallo2023-02-181-1/+2
| | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--trampoline-abs-filename): Interpret `native-comp-enable-subr-trampolines' relative to `invocation-directory'.
* | ; Fix typoStefan Kangas2023-02-181-1/+1
| |
* | ; Improve and update documentation of native compilationEli Zaretskii2023-02-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | * src/comp.c (syms_of_comp) <native-comp-enable-subr-trampolines> <native-comp-eln-load-path>: Doc fixes. * lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions): Doc fix. * doc/lispref/compile.texi (Native-Compilation Variables): Document 'native-comp-jit-compilation' and 'native-comp-enable-subr-trampolines'.
* | Merge 'emacs-29' into 'feature/inhibit-native-comp-cleanup'Andrea Corallo2023-02-171-8/+31
|\ \
| * | ; Avoid installing VC package dependencies multiple timesPhilip Kaludercic2023-02-161-2/+2
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Check if two package names are eq, instead checking the structural equality of package-desc objects.
| * | Attempt to recognise if a VC package has no Elisp filesPhilip Kaludercic2023-02-161-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-non-code-file-names): Add new variable used to avoid false-positives. (package-vc--unpack): Recursively search for .el files excluding the ones listed in 'package-vc-non-code-file-names', offering to abort the installation if none are found.
| * | Improve backward compatibility of save-restrictionGregory Heytings2023-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/editfns.c (save_restriction_save_1): Renamed from 'save_restrictions_save'. Make it static. (save_restriction_restore_1): Renamed from 'save_restriction_restore'. Make it static. (save_restriction_restore): New function, combining 'save_restriction_save_1' and 'narrowing_locks_save'. (save_restriction_save): New function, combining 'save_restriction_restore_1' and 'narrowing_locks_restore'. (Fsave_restriction): Restore the previous code. (narrowing_locks_save, narrowing_locks_restore): Make them static. * src/lisp.h: Remove two functions that are not externally visible anymore. * src/comp.c (helper_save_restriction): Restore the previous code. * src/bytecode.c (exec_byte_code): Restore the previous code. * lisp/emacs-lisp/bytecomp.el (byte-compile-save-restriction): Decrement unbinding count.
| * | ; Raise an error if a VC package checkout is emptyPhilip Kaludercic2023-02-141-1/+4
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Check if PKG-DIR is empty before proceeding with the installation.
| * | ; Fix the installation of dependencies for VC packagesPhilip Kaludercic2023-02-141-8/+13
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Work with package-desc objects instead of (PACKAGE-NAME VERSION) pairs.
| * | Merge branch 'scratch/fix-locked-narrowing'Gregory Heytings2023-02-131-1/+1
| |\ \
| | * | Fix 'save-restriction' for narrowing locksGregory Heytings2023-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/editfns.c (narrowing_locks_save): (narrowing_locks_restore): Make them non-static. * src/lisp.h: Make them externally visible. * src/bytecode.c (exec_byte_code): Save and restore narrowing locks. * lisp/emacs-lisp/bytecomp.el (byte-compile-save-restriction): Increment unbinding count. * src/comp.c (helper_save_restriction): Save and restore narrowing locks.
* | | | * Generate trampolines in a temporary directory if no other option is viableAndrea Corallo2023-02-141-8/+12
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--trampoline-abs-filename): Use temporary file if no other option is viable.
* | | | * Fix previous changeAndrea Corallo2023-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/generate-lisp-file.el (generate-lisp-file-trailer): Fix previous change b6e2799aa1c.
* | | | Rename native-comp-deferred-compilation-deny-listAndrea Corallo2023-02-131-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (native-comp-jit-compilation-deny-list) (native-compile-async-skip-p): Rename native-comp-deferred-compilation-deny-list into native-comp-jit-compilation-deny-list. (native-comp-deferred-compilation-deny-list): Mark it obsolete.
* | | | Rename native-comp-deferred-compilation into native-comp-jit-compilationAndrea Corallo2023-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/comp.c (maybe_defer_native_compilation, syms_of_comp): Rename native-comp-deferred-compilation into native-comp-jit-compilation. * lisp/subr.el (native-comp-deferred-compilation): Mark native-comp-deferred-compilation as obsolete. * lisp/startup.el (native-comp-deferred-compilation) (normal-top-level): Rename native-comp-deferred-compilation into native-comp-jit-compilation. * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Likewise. * lisp/emacs-lisp/generate-lisp-file.el (generate-lisp-file-trailer): Likewise.
* | | | Rename comp-enable-subr-trampolines into native-comp-enable-subr-trampolinesAndrea Corallo2023-02-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/data.c (Ffset): Rename comp-enable-subr-trampolines into native-comp-enable-subr-trampolines. * src/comp.c (syms_of_comp): Likewise. * lisp/subr.el (comp-enable-subr-trampolines): Make comp-enable-subr-trampolines obsolete. * lisp/startup.el (native-comp-enable-subr-trampolines) (normal-top-level): Rename comp-enable-subr-trampolines into native-comp-enable-subr-trampolines. * lisp/loadup.el (dump-mode): Likewise. * lisp/emacs-lisp/comp.el (comp-subr-trampoline-install) (comp--trampoline-abs-filename): Likewise.
* | | | * lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions): Improve docAndrea Corallo2023-02-131-1/+6
| | | |
* | | | Support `comp-enable-subr-trampolines' as string valueAndrea Corallo2023-02-131-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/comp.c (syms_of_comp): Update `comp-enable-subr-trampolines'. * lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions) (comp--trampoline-abs-filename): Support `comp-enable-subr-trampolines' string value. * src/data.c (Ffset): Use Vcomp_enable_subr_trampolines now.
* | | | * Some more `inhibit-native-compile' clean-upAndrea Corallo2023-02-132-4/+2
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/generate-lisp-file.el (generate-lisp-file-trailer): Use `native-comp-deferred-compilation'.
* | | | Revert "Add new variable 'inhibit-native-compilation'"Andrea Corallo2023-02-131-19/+16
| | | | | | | | | | | | | | | | This reverts commit 5fec9182dbeffa88cef6651d8c798ef9665d6681.
* | | | Revert "Rename to inhibit-automatic-native-compilation"Andrea Corallo2023-02-131-1/+1
|/ / / | | | | | | | | | This reverts commit f97993ee667f9be7589825f3a4fbc095d6944ec6.
* | | ; Use the right name when specifying VC packagesPhilip Kaludercic2023-02-121-3/+4
| | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-selected-packages): Generate dummy package descriptors in here, if necessary. (package-vc--unpack): Remove dummy-descriptor generation.
* | | Tolerate missing elpa-packages.eld filesPhilip Kaludercic2023-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--download-and-read-archives): Replace 'condition-case-unless-debug' with a regular 'condition-case'. It appears a few people using third-party archives that don't serve package specifications have been having issues with package-vc, when toggle-on-error is enabled. In their case, package-vc would raise an error in its first invocation, but it would go on working normally afterwards. As this behaviour is confusing and the user can't do much about a missing elpa-packages.eld to begin with, we satisfy ourselves with printing out a message and continuing on.
* | | ; Fix installation of dependencies for VC packagesPhilip Kaludercic2023-02-121-2/+2
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Maintain a list of package-desc objects instead of package names to install.
* | | lisp-mode: add docstring recognition for more common lisp symbolsNicolas Martyanoff2023-02-091-0/+3
|/ / | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (define-compiler-macro) (define-setf-expander, deftype): Add the 'doc-string-elt' property for proper docstring highlighting in Common Lisp.
* | Fix docstring fontification of CL's 'defstruct'Eli Zaretskii2023-02-021-0/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (defstruct): Set 'doc-string' property. Patch by Nicolas Martyanoff <nicolas@n16f.net>. Copyright-paperwork-exempt: yes
* | Fix spurious errors on Windows when deleting temporary *.eln filesEli Zaretskii2023-01-291-2/+5
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--native-compile): On MS-Windows, ignore errors when deleting a temporary .eln file. (Bug#60996)
* | ; Actually use dummy package descriptorPhilip Kaludercic2023-01-211-1/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Set pkg-desc if nil. This revises the changes from 70947da708c8e06e31a2930520b38bafe43dba39.
* | Fix an oversight in advice.elMichael Heerdegen2023-01-191-1/+1
| | | | | | | | | | | | | | | | This fixes an oversight from 77c3c464a16: "* lisp/emacs-lisp/advice.el (ad-advised-functions): Make it a plain list" that caused an issue as reported in Bug#60893. * lisp/emacs-lisp/advice.el (ad-read-advised-function): Adjust to handle the new type of elements of `ad-advised-functions'.