summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix warning-suppress for list type "warning type"Xuan Wang2024-03-311-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Per the documentation of 'warning-suppress-types' and the implementation of 'warning-suppress-p', a warning type can be either a symbol or a list of symbols. The previous implementation could generate wrong 'warning-suppress-types': old behavior: type warning-suppress-types pkg -> '((pkg)) Correct (pkg subtype) -> '(((pkg subtype))) Incorrect Now we check whether type is a cons cell first. (Should not use listp here, as listp returns t for nil.) new behavior: type warning-suppress-types pkg -> '((pkg)) Correct (pkg subtype) -> '((pkg subtype)) Correct * lisp/emacs-lisp/warnings.el (warnings-suppress): Fix saving warning types in 'warning-suppress-types'. (Bug#70063) Copyright-paperwork-exempt: yes
* * Don't install unnecessary trampolines (bug#69573) (don't merge)Andrea Corallo2024-03-261-7/+9
| | | | | * lisp/emacs-lisp/comp.el (comp-subr-trampoline-install): Check that subr-name actually matches the target subr.
* * Fix missing `comp-files-queue' update (bug#63415).Andrea Corallo2024-03-211-2/+3
| | | | | * lisp/emacs-lisp/comp.el (native--compile-async): Update `comp-files-queue' for real.
* ; * lisp/emacs-lisp/cl-macs.el (cl-labels): Fix stray diff marker.Robert Pluim2024-03-201-1/+1
|
* Fix 'shortdoc-copy-function-as-kill'Eli Zaretskii2024-03-161-1/+1
| | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc-copy-function-as-kill): Fix handling of functions with no arguments. (Bug#69720)
* Improve documentation of 'edebug-print-*' variablesEli Zaretskii2024-03-161-4/+8
| | | | | | * lisp/emacs-lisp/edebug.el (edebug-print-length) (edebug-print-level): Fix doc strings and customization labels. Suggested by Matt Trzcinski <matt@excalamus.com>. (Bug#69745)
* ; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Another doc fix.Eli Zaretskii2024-02-201-4/+4
|
* ; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Doc fix.Eli Zaretskii2024-02-201-2/+2
|
* Improve directory prompt used by package-vc-checkoutJoseph Turner2024-02-141-2/+2
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Use read-directory-name instead of read-file-name. (Bug#66114)
* * Improve reproducibility of inferred values by native compAndrea Corallo2024-02-111-0/+2
| | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to reorder conses using 'sxhash-equal' as its behavior is not reproducible over different sessions.
* Fix documentation of icon-elementsDaniel Martín2024-01-141-1/+1
| | | | | * lisp/emacs-lisp/icons.el (icon-elements): The plist key it returns is `image', not `display'. (Bug#68451)
* Handle package versions that are not version stringsPhilip Kaludercic2024-01-101-2/+2
| | | | | | | | * lisp/emacs-lisp/package.el (package-menu--version-predicate): Ignore any errors raised by 'version-to-list', thus falling back to the default version list. (Bug#68317) (cherry picked from commit eb913c7501489e1eae475cae843fccdf14cc24d8)
* Fix icons.el when icon does not exist as a fileEli Zaretskii2024-01-061-5/+7
| | | | | | * lisp/emacs-lisp/icons.el (icons--create): Handle the case when ICON is a file that doesn't exists or is unreadable. Suggested by David Ponce <da_vid@orange.fr>. (Bug#66846)
* ; Add 2024 to copyright yearsPo Lu2024-01-02101-101/+101
|
* ; Fix typosStefan Kangas2023-12-035-5/+5
|
* Ensure that directory is expanded in package-vc-checkoutJoseph Turner2023-11-261-0/+1
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc-checkout): Expand DIRECTORY. (Bug#66115)
* Fix byte-compilation warnings about 'sqlite-rollback'Eli Zaretskii2023-11-241-2/+0
| | | | | | | * lisp/sqlite.el (sqlite-transaction, sqlite-commit) (sqlite-rollback): Declare. * lisp/emacs-lisp/multisession.el (sqlite-commit) (sqlite-transaction): Remove declaration.
* Fix string-pixel-width with global setting of display-line-numbersDmitry Gutov2023-11-181-4/+3
| | | | | | * lisp/emacs-lisp/subr-x.el (string-pixel-width): Instead of checking for display-line-numbers-mode, set the display-line-numbers variable to nil (bug#67248).
* ; Fix 'add-face-text-property' shortdocEshel Yaron2023-11-141-1/+1
| | | | | * lisp/emacs-lisp/shortdoc.el (text-properties): Add missing ':no-eval' keyword. (Bug#67138)
* Add two doc strings to cl-extra.elJeremy Bryant2023-11-121-2/+9
| | | | | * lisp/emacs-lisp/cl-extra.el (cl--random-time) (cl-find-class): Add docstrings. (Bug#66949)
* Improve documentation of signaling errors in batch modeEli Zaretskii2023-11-091-0/+7
| | | | | | | | | | | | * doc/lispref/control.texi (Signaling Errors) (Processing of Errors): * doc/lispref/os.texi (Batch Mode): * doc/lispref/debugging.texi (Invoking the Debugger): * lisp/emacs-lisp/debug.el (debug): * src/eval.c (Fsignal): * lisp/subr.el (error): Document more prominently that signaling an unhandled error in batch mode kills Emacs. Better documentation of backtrace in batch mode.
* Suggest alternative reason for ERT test duplication errorMattias Engdegård2023-11-041-1/+1
| | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-set-test): Amend error message; maybe the redefinition was caused by a file loaded twice. (Bug#66782) Suggested by Xiyue Deng. (cherry picked from commit 425d23fbeaede81ab4f50b4073949cc1c8a3fbd0)
* * lisp/emacs-lisp/cl-lib.el (cl--defalias): Improve&fix docstringStefan Monnier2023-10-301-2/+1
|
* Add two docstrings in cl-lib.elJeremy Bryant2023-10-301-0/+4
| | | | | * lisp/emacs-lisp/cl-lib.el (cl--set-buffer-substring) (cl--defalias): Add docstrings. (Bug#66828)
* 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)