summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix State button for customize-icon (Bug#66635)Mauro Aranda2023-10-221-3/+3
| | | | | | | | | | | | | | | * lisp/cus-edit.el (custom-icon-action): New function. (custom-icon): Use it as the :action. Otherwise, clicking the State button is a noop. Remove irrelevant stuff from the docstring and comment out some copy-pasta. (custom-icon-extended-menu): New variable, the menu to show upon :action. (custom-icon-set): Really redraw the widget with the new settings. Comment out strange call to custom-variable-backup-value. (custom-icon-save): New function. * lisp/emacs-lisp/icons.el (icons--merge-spec): Fix call to plist-get and avoid infloop.
* Add missing :version to two defcustomsStefan Kangas2023-10-141-2/+4
| | | | | * lisp/emacs-lisp/eldoc.el (eldoc-print-after-edit) (eldoc-echo-area-prefer-doc-buffer): Add missing custom :version.
* Fix a defcustom :type in eldoc.elMauro Aranda2023-10-141-1/+3
| | | | | * lisp/emacs-lisp/eldoc.el (eldoc-echo-area-prefer-doc-buffer): Make :type a choice, to allow for the value 'maybe'. (Bug##66539)
* ; Set maintainer for elint.el to emacs-develStefan Kangas2023-10-121-4/+5
| | | | * lisp/emacs-lisp/elint.el: Set maintainer to emacs-devel.
* ; Normalize GNU ELPA :core package statementsStefan Kangas2023-10-011-2/+2
| | | | | | * lisp/emacs-lisp/let-alist.el: * lisp/progmodes/project.el: Normalize GNU ELPA :core package statement.
* ; * lisp/emacs-lisp/let-alist.el (let-alist): Fix quoting in doc string.Eli Zaretskii2023-09-291-1/+1
|
* Doc fix in let-alist for keys with nil valueStefan Kangas2023-09-291-2/+9
| | | | | * lisp/emacs-lisp/let-alist.el (let-alist): Clarify that keys with a nil value will give the same result as if they were missing.
* Add missing builtin package declarationsStefan Kangas2023-09-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/finder.el (finder--builtins-alist): Add new package directories 'leim' and 'obsolete' as part of the 'emacs' package. Add new package directory 'use-package' as part of the 'use-package' package. * lisp/net/eudc-capf.el: * lisp/net/eudcb-ecomplete.el: * lisp/net/eudcb-macos-contacts.el: * lisp/net/eudcb-mailabbrev.el: Declare library as part of the 'eudc' package. * lisp/mail/ietf-drums-date.el: Declare library as part of the 'ietf-drums' package. * lisp/image/image-dired-dired.el: * lisp/image/image-dired-external.el: * lisp/image/image-dired-tags.el: * lisp/image/image-dired-util.el: Declare library as part of the 'image-dired' package. * lisp/emacs-lisp/oclosure.el: * lisp/keymap.el: * lisp/progmodes/c-ts-common.el: Declare library as part of the 'emacs' package. (Bug#62751) (cherry picked from commit 94b1de2774b5c1fa3c28285229900657638f5c3f)
* Add more missing builtin package declarationsStefan Kangas2023-09-181-0/+1
| | | | | | | * lisp/emacs-lisp/shorthands.el: Declare library as part of the 'emacs' package. * lisp/epa-ks.el: Declare library as part of the 'epa' package. (Bug#55388)
* Bump seq version to 2.24Stefan Kangas2023-09-041-1/+1
| | | | * lisp/emacs-lisp/seq.el: Bump version to 2.24. (Bug#60990)
* Doc fixes for obsolete functions and variablesStefan Kangas2023-09-021-5/+2
| | | | | | | | | | | | | * admin/notes/multi-tty: * doc/emacs/building.texi (Debugger Operation): * doc/misc/efaq-w32.texi (Line ends by file system): * doc/misc/gnus.texi (Hashcash): * lisp/emacs-lisp/eieio.el (eieio-class-parents) (eieio-class-children): * lisp/progmodes/perl-mode.el: * lisp/textmodes/ispell.el (ispell-lookup-words): * src/buffer.h: Update or delete references to variables and functions made obsolete in Emacs 24.4.
* * lisp/emacs-lisp/gv.el (buffer-local-value): Unobsolete (bug#65555).Eli Zaretskii2023-09-021-1/+0
|
* * Fix native disassemble on Windows platforms (bug#65455)Andrea Corallo2023-08-271-7/+4
| | | | * lisp/emacs-lisp/disass.el (disassemble-internal): Improve regexp.
* * Handle missing eln file when trying to disassble (bug#65455)Andrea Corallo2023-08-271-2/+4
| | | | | * lisp/emacs-lisp/disass.el (disassemble-internal): Handle missing eln file.
* * lisp/emacs-lisp/comp.el (comp--native-compile): Fix OUTPUT for non abs pathsAndrea Corallo2023-08-271-1/+2
|
* Fix order in which package-vc dependencies are resolvedPhilip Kaludercic2023-08-191-4/+2
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Avoid a type-mismatch when comparing two packages. (Bug#65283)
* Fix building of VC package manuals with relative org links/includesJoseph Turner2023-08-191-1/+2
| | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Ensure that default-default is the docs-directory around org-export-to-file to ensure that links to relative files work correctly. (Bug#65243)
* * Fix `batch-byte+native-compile' target directory.Andrea Corallo2023-08-121-2/+3
| | | | | * lisp/emacs-lisp/comp.el (batch-native-compile): Don't shadow `native-compile-target-directory' unless necessary.
* Fix emacs-lisp-native-compile-and-load eln target directory (bug#64226)Andrea Corallo2023-08-091-5/+4
| | | | | | | | | * lisp/emacs-lisp/comp.el (comp-spill-lap-function): Don't use `byte+native-compile' to select output directory but always axpect it explicit through `native-compile-target-directory'. (batch-byte+native-compile): Set `native-compile-target-directory'. * test/src/comp-tests.el (comp-tests-bootstrap): Set `native-compile-target-directory'.
* ; Improve help-echo in package.elEli Zaretskii2023-08-061-13/+29
| | | | | * lisp/emacs-lisp/package.el (package-menu-mode-menu): Improve help-echo descriptions. (Bug#65094)
* ; Filter packages available for upgrade via menu barArash Esbati2023-08-061-0/+2
| | | | | * lisp/emacs-lisp/package.el (package-menu-mode-menu): Add entry to filter packages available for upgrade via menu bar. (bug#65094)
* Fix handling of 'byte-compile-ignore-files' when nilJim Porter2023-08-051-1/+3
| | | | | | | | Before this fix, when 'byte-compile-ignore-files' was nil, 'byte-recompile-directory' would ignore every file (bug#64985). * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Handle case when 'byte-compile-ignore-files' is nil.
* Fix loaddef generation with ";;;foo-autoload" cookies in external packagesJim Porter2023-08-041-1/+2
| | | | | | | | | | This caused an issue where package-specific autoload cookies weren't being correctly recognized, so they got dumped into the package's main "<pkg>-autoloads.el" file, instead of "<pkg>-loaddefs.el" as they should (bug#65023). * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--parse-file): Save match data when checking syntax.
* Fix handling of ".elpaignore" file when compiling packagesJim Porter2023-08-011-6/+4
| | | | | | * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Treat 'byte-compile-ignore-files' as a list of regexps per its docstring (bug#64985).
* Fix 'string-pixel-width' under 'line-prefix'Eli Zaretskii2023-07-311-3/+6
| | | | | | * lisp/emacs-lisp/subr-x.el (string-pixel-width): Disable 'line-prefix' and 'wrap-prefix' to avoid their effect on the calculated string width. (Bug#64971)
* Fix rx wrong-code bug: ranges starting with ^Mattias EngdegÄrd2023-07-301-7/+13
| | | | | | | | | | | (rx (in (?^ . ?a))) was incorrectly translated to "[^-a]". Change it so that we get "[_-a^]" instead. * lisp/emacs-lisp/rx.el (rx--generate-alt): Split ranges starting with `^` occurring first in a non-negated character alternative. * test/lisp/emacs-lisp/rx-tests.el (rx-any): Add and adapt tests. (cherry picked from commit 5f5d668ac7917d61e9366fe0c3efd7b542671c3d)
* ; 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)