summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* ; Improve robustness of package-report-bugSpencer Baugh2023-07-161-7/+8
| | | | | | | | | * lisp/emacs-lisp/package.el (package-report-bug): Do not assume that every entry in 'custom-current-group-alist' has a non-nil entry for a filename. It is possible for a group to not be associated with any file, e.g. when a 'defgroup' form is evaluated using 'eval-expression'. (bug#64543)
* ; * lisp/emacs-lisp/lisp.el (raise-sexp): Fix typo in doc string.Eli Zaretskii2023-07-121-1/+1
|
* Improve natnump shortdocRobert Pluim2023-07-041-3/+4
| | | | | | * lisp/emacs-lisp/shortdoc.el (number): Make it clear that zero satisfies 'natnump'. Move 'natnump' next to 'cl-plusp' to highlight the difference between them.
* ; Improve documentation of text-property-search-* functionsEli Zaretskii2023-07-011-17/+18
| | | | | | | * doc/lispref/text.texi (Property Search): Improve wording and markup. * lisp/emacs-lisp/text-property-search.el (text-property-search-forward) (text-property-search-backward): Doc fixes. (Bug#64367)
* Fix VC package build when doc file isn't in a subdirDaniel Semyonov2023-06-251-1/+1
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Expand 'file' before attempting to get its directory. (Bug#64242)
* * lisp/emacs-lisp/shortdoc.el: More and better `substring` examples.Mattias EngdegÄrd2023-06-241-2/+4
| | | | Suggested by Juri Linkov.
* Don't truncate filenames with "emacs.el" in themEli Zaretskii2023-06-201-1/+1
| | | | | | * lisp/emacs-lisp/find-func.el (find-function-search-for-symbol): Avoid false positives when looking for "emacs.el" matches the likes of "emacs.elpa". (Bug#64143)
* Fix documentation of :predicate in 'define-globalized-minor-mode'Eli Zaretskii2023-06-181-2/+5
| | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Document that :predicate creates a customizable user option. (Bug#64048)
* Revert "* package.el (package--get-activatable-pkg): Prefer source packages"Eli Zaretskii2023-06-081-12/+4
| | | | | | This reverts commit fb87d5008e21d1bc03547c1edf2280fb4cb8311e. It caused problems when new versions of packages are installed without deleting old versions. (Bug#63757)
* ; Update my mail addressAndrea Corallo2023-06-082-2/+2
| | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el: Update author mail. * lisp/emacs-lisp/comp.el: Likewise. * src/comp.c: Likewise. * test/lisp/emacs-lisp/comp-cstr-tests.el: Likewise. * test/src/comp-resources/comp-test-funcs-dyn.el: Likewise. * test/src/comp-resources/comp-test-funcs.el: Likewise. * test/src/comp-resources/comp-test-pure.el: Likewise. * test/src/comp-tests.el: Likewise.
* Fix `emacs-lisp-native-compile-and-load' for C-h f (bug#58314)Andrea Corallo2023-06-061-10/+21
| | | | | | | | | * lisp/emacs-lisp/comp.el (comp-write-bytecode-file): New function spilling code from `batch-byte+native-compile'. (batch-byte+native-compile): Make use of. * lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load): Produce the elc file and ask to have it loaded.
* Revert changes to the order in which package descs are loadedPhilip Kaludercic2023-06-041-1/+1
| | | | | | * lisp/emacs-lisp/package.el (package-load-all-descriptors): Remove NOSORT argument to 'directory-files', reverting back to the behaviour as of Emacs 28. (Bug#63757)
* ; Fix 'package-install-upgrade-built-in' check for package menuPhilip Kaludercic2023-05-311-2/+2
| | | | | | | | | * lisp/emacs-lisp/package.el (package-menu--find-upgrades): Use correct check to verify if a built-in packages in the package menu can be upgraded or not. This change improves upon a faulty assumption from ba2c76fa2bc3aabfda7d1d09cc5148f3f9d8e08e. (Bug#63587)
* Allow to disable the DWIMish behavior of 'x' in package menuEli Zaretskii2023-05-291-1/+14
| | | | | | | | * lisp/emacs-lisp/package.el (package-menu-use-current-if-no-marks): New defcustom. (package-menu-execute): Use it. (Bug#62563) * etc/NEWS: Announce the new option.
* Avoid duplicates when adding package dirs to load-pathStefan Monnier2023-05-231-1/+6
| | | | | | | | Do not merge to master, we're going to delete this code there. * lisp/emacs-lisp/package.el (package-activate-1): Check if the path we're about to add is already in 'load-path', since package autoload files have been updating 'load-path' for a decade.
* Avoid duplicate load-path entry when generating package autoloadsRobert Pluim2023-05-231-2/+6
| | | | | | | | | 'file-name-directory' produces a path ending in '/', so that needs to be run through 'directory-file-name' to avoid duplicate entries in 'load-path'. (Bug#63625) * lisp/emacs-lisp/package.el (package-generate-autoloads): Call 'directory-file-name' on the directory of 'load-file-name'.
* ; * lisp/emacs-lisp/benchmark.el (benchmark-progn): Fix declare form.Eli Zaretskii2023-05-181-1/+1
|
* Improve documentation of package-menu commandsEli Zaretskii2023-05-181-51/+59
| | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi (Package Menu): Document that some package-menu filters accept lists of values interactively. * lisp/emacs-lisp/package.el (package-menu-execute) (package-menu-hide-package, package-menu-describe-package) (package-menu-mark-delete, package-menu-mark-install) (package-menu-mark-unmark, package-menu-backup-unmark) (package-menu-quick-help, package-menu-get-status) (package-menu--find-upgrades, package-menu-mark-upgrades) (package-menu-filter-by-archive) (package-menu-filter-by-description) (package-menu-filter-by-keyword) (package-menu-filter-by-name-or-description) (package-menu-filter-by-name, package-menu-filter-by-status) (package-menu-filter-by-version, package-menu-filter-marked) (package-menu-describe-package): Doc fixes.
* * Account for `byte-compile-warnings' during native compilation (bug#63302).Andrea Corallo2023-05-171-0/+2
| | | | | * lisp/emacs-lisp/comp.el (comp-final, comp-run-async-workers): Forward `byte-compile-warnings' to child processes.
* Avoid duplicate VC packages in 'package-selected-packages'Philip Kaludercic2023-05-161-3/+5
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Check if 'package-selected-packages' already contains the package name. (bug#63338)
* Fix building of VC package manuals with relative includesJoseph Turner2023-05-131-1/+4
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Invoke makeinfo with -I to ensure the package directory is always consulted for @include statements. (Bug#63337)
* Ensure that package menu respects 'package-install-upgrade-built-in'Philip Kaludercic2023-05-121-1/+3
| | | | | | * lisp/emacs-lisp/package.el (package-menu--find-upgrades): Check if built-in packages can be upgraded if 'package-install-upgrade-built-in' is non-nil.
* Ensure that EXTRA-DATA are always written when generating autoloadsPhilip Kaludercic2023-05-121-1/+14
| | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Handle edge-case where no autoloads are found. (Bug#63260)
* define-minor-mode: sanitize mode function messagesNicholas Vollmer2023-05-071-1/+1
| | | | | | * emacs-lisp/easy-mmode.el (define-minor-mode): Ensure mode's pretty name is not interprted as a message formatting string, e.g., if the mode name contains a '%'. (Bug#63343)
* ; 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'.