summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* ; Expand 'package-vc-install' documentationPhilip Kaludercic2023-05-061-5/+7
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Go into further detail on the handling of the REV argument. (Bug#60418)
* Fix doc strings of 'mark-sexp' and 'mark-word'Eli Zaretskii2023-05-061-6/+16
| | | | | | * lisp/emacs-lisp/lisp.el (mark-sexp): * lisp/simple.el (mark-word): Clarify the doc strings in various usage cases. (Bug#62892)
* (package-upgrade): Don't remove the package from 'package-selected-packages'Dmitry Gutov2023-05-061-1/+1
| | | | | | * lisp/emacs-lisp/package.el (package-upgrade): Don't remove the package from 'package-selected-packages', fixing the problem described in https://debbugs.gnu.org/62720#718.
* Make loaddefs-generate slightly more tolerantRobert Pluim2023-05-041-2/+5
| | | | | | | | | There are packages in the wild, such as vlf-20191126.2250, which have entries that are not terminated by three ';', but by two. Tolerate such entries. * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Search for two ';' as a delimiter, not three. (Bug#63236)
* Prevent unnecessary modifications of 'package-vc-selected-packages'Philip Kaludercic2023-05-041-8/+9
| | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Handle the structure of correctly, not as an alist but a list of alists. (package-vc--archive-spec-alist, package-vc--archive-spec-alists, package-vc--desc->spec, package-vc--read-archive-data, package-vc--download-and-read-archives, package-vc--unpack): Rename 'package-vc--archive-spec-alist' to 'package-vc--archive-spec-alists'.
* Recognize defstruct slot names in various eieio functionsThuna2023-05-031-0/+1
| | | | | | | | * lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Set each slot's name's 'slot-name' property so that 'eieio--known-slot-name-p' can recognize them. (Bug#62959) Copyright-paperwork-exempt: yes
* Prevent generating empty autoload filesPhilip Kaludercic2023-04-301-66/+56
| | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Remove optimisation that would mistakenly discard old loaddefs in case a file was not modified by EXTRA-DATA is non-nil. (Bug#62734)
* ; Remove some leftover textDmitry Gutov2023-04-281-4/+1
|
* ; Minor improvements in doc strings of package-upgrade commandsEli Zaretskii2023-04-281-3/+8
| | | | | * lisp/emacs-lisp/package.el (package-upgrade) (package-upgrade-all): Doc fixes. (Bug#62720)
* package-upgrade[-all]: Expand docstrings to note the current limitationDmitry Gutov2023-04-281-2/+10
| | | | | * lisp/emacs-lisp/package.el (package-upgrade, package-upgrade-all): Expand docstrings to note the current limitation (bug#62720).
* Rename all functions called package-*-update-* to package-*-upgrade-*Dmitry Gutov2023-04-282-26/+26
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-upgrade-all): Rename from 'package-vc-update-all'. (package-vc-upgrade): Rename from 'package-vc-update'. * lisp/emacs-lisp/package.el (package-upgrade): Rename from 'package-update' (bug#62750). (package--upgradeable-packages): Rename from 'package--updateable-packages'. (package-upgrade-all): Rename from 'package-update-all'.
* Documentation copyedits for 'package-install-upgrade-built-in' etcEli Zaretskii2023-04-161-5/+5
| | | | | | | | | * etc/NEWS: More details about the new option 'package-install-upgrade-built-in'. * lisp/emacs-lisp/package.el (package-install-upgrade-built-in) (package--active-built-in-p, package-install): Doc fixes. (Bug#62720)
* Allow upgrading built-in packages with 'package-install'Philip Kaludercic2023-04-161-8/+39
| | | | | | | | | * etc/NEWS: Mention the change * lisp/emacs-lisp/package.el (package--upgradable-built-in-p): Add new predicate. (package-install-upgrade-built-in): Add new user option to enable feature. (package-install): Respect new user option.
* Add more documentation for the keys of `package-vc-selected-packages`.Earl Hyatt2023-04-121-26/+4
| | | | | | | | | | | * doc/emacs/package.texi (Specifying Package Sources): List the accepted keys in a new subsection of Fetching Package Sources. * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Mention the `:doc` key. Add the `:doc` key to the Customize form, mention the new Info node, correct "TexInfo" to "Texinfo", avoid Git-specific terms for the description of `:branch`, mention guessing `:vc-backend` based on the URL.
* ; * lisp/emacs-lisp/package-vc.el: Remove completed item from TODOPhilip Kaludercic2023-03-301-3/+0
|
* ; * lisp/emacs-lisp/package-vc.el (package-vc): Fix manual referencePhilip Kaludercic2023-03-301-1/+1
|
* Comp fix calls to redefined primtives with op-bytecode (bug#61917)Andrea Corallo2023-03-291-18/+23
| | | | | | | | * test/src/comp-tests.el (61917-1): New test. * src/comp.c (syms_of_comp): New variable. * lisp/loadup.el: Store primitive arities before dumping. * lisp/emacs-lisp/comp.el (comp--func-arity): New function. (comp-emit-set-call-subr): Make use of `comp--func-arity'.
* Revert "Comp fix calls to redefined primtives with op-bytecode (bug#61917)"Andrea Corallo2023-03-281-19/+11
| | | | | | | This reverts commit 263d6c38539691c954f4c3057cbe8d5468499b91. These patch series caused a number of regression and more analysis is required.
* Revert "* lisp/emacs-lisp/comp.el (comp-emit-set-call-subr): Improve..."Andrea Corallo2023-03-281-1/+1
| | | | | | | This reverts commit 4a7a0c9a9f521b04b23580901e9c0a662b504e32. These patch series caused a number of regression and more analysis is required.
* ; Fix edebug spec for 'gv-define-simple-setter' (bug#62256)Matus Goljer2023-03-261-1/+1
|
* ; 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.