summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Better shortdoc examplesMattias Engdegård2022-12-141-32/+106
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/shortdoc.el (symbol, comparison): New. (string, list, number): Remove or change examples that do not have well-defined results, such as `eq` on strings or floats. Edit other examples for better illustrating each respective operation.
* | Shortdoc: read and evaluate strings after :evalMattias Engdegård2022-12-141-7/+9
| | | | | | | | | | | | * lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): If the parameter of :eval is a string then read, evaluate and print the result. This was always the intention and is documented behaviour.
* | ; Fix typosStefan Kangas2022-12-131-1/+1
| |
* | Fix error message when installing non-existent packageStefan Kangas2022-12-111-2/+4
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-compute-transaction): Don't add trailing dash to package name in non-existent package error. (Bug#59923)
* | Fix pcase rx patterns using rx-let bindings (bug#59814)Mattias Engdegård2022-12-111-7/+7
| | | | | | | | | | | | | | | | Reported by Daniel Pittman. * lisp/emacs-lisp/rx.el (rx): Move binding of rx--local-definitions... (rx--to-expr): ...here. * test/lisp/emacs-lisp/rx-tests.el (rx-let-pcase): New test.
* | ; Improve checkdoc.el commentary sectionStefan Kangas2022-12-101-8/+17
| | | | | | | | | | * lisp/emacs-lisp/checkdoc.el: Improve wording of Commentary. (checkdoc): Link commentary from defgroup.
* | ; tabulated-list.el: Remove duplicate obsolete declarationJuanma Barranquero2022-12-101-2/+0
| | | | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-line-number-width): Remove second `define-obsolete-function-alias' for the same function.
* | Ensure 'package-vc--version' always returns a versionPhilip Kaludercic2022-12-101-1/+2
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--version): Return "0" even if the main file exists, but lacks version headers.
* | Ensure 'package-vc--main-file' always returns an existing filePhilip Kaludercic2022-12-101-9/+29
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (require): Explicitly require cl-lib. (package-vc--main-file): If the expected file name is missing, try and find the closest match.
* | Check if package already exists before installing from checkoutPhilip Kaludercic2022-12-101-0/+4
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-from-checkout): Copy check from 'package-vc--unpack'.
* | ; Fix reference in docstring to 'package-vc-install-from-checkout'Philip Kaludercic2022-12-101-5/+5
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-checkout): Fix reference.
* | Refresh the package quickstart file in package-vcMatt Armstrong2022-12-101-0/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Call `package--quickstart-maybe-refresh', just as `package-install-from-buffer' does. (bug#59728)
* | ; Normalize GPLv3 license statements in new filesStefan Kangas2022-12-092-6/+10
| |
* | Fix 'add-display-text-property' when OBJECT is non-nilEli Zaretskii2022-12-061-2/+3
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/subr-x.el (add-display-text-property): Fix the case where OBJECT is not nil. (Bug#59857) * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-add-display-text-property): Add test for this case.
* | Restore font-lock-type-face for lisp mode &symbolsTom Gillespie2022-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2) (lisp-el-font-lock-keywords-2): Restore use of type face instead of builtin face for &symbol keywords. This fixes what appears to be a copy paste error that changed the face for common lisp and emacs lisp &symbol style keywords that was introduced in commit a498e5f83 by restoring the type face to font-lock-type-face as consistent with the comments.
* | ; Remove debugging leftover messageEli Zaretskii2022-12-031-1/+0
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--native-compile): Remove unnecessary call to 'message'. (Bug#59766)
* | Fix gud-minor-mode-menuEli Zaretskii2022-12-031-3/+0
| | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode) (easy-mmode-define-keymap): Don't declare obsolete, since we are still using it in gud.el. (Bug#59769) (Bug#59605) Do not merge to master.
* | Revert "Make easy-mmode-defmap obsolete and adjust only caller"Eli Zaretskii2022-12-031-1/+3
| | | | | | | | | | | | | | | | This reverts commit 8bb5c1bfec0929f2ba419e1c503f5acc01c336c2. That commit lost too many useful features in the GUD menus and caused several bugs, the last of them bug#59769. Do not merge to master.
* | Fix error editing multisession variables (bug#59710)Juanma Barranquero2022-12-021-2/+3
| | | | | | | | | | | | * lisp/emacs-lisp/multisession.el (multisession-edit-value): Do not use `bound-and-true-p' on a non-symbol. This reverts commit bd586121ac21e046f60f75eeb0200866c38d6f9f.
* | Fix the width of margins for icons in outline-minor-mode (bug#59719)Juri Linkov2022-12-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/display.texi (Icons): Add :width spec. * lisp/emacs-lisp/icons.el (icons--create): Handle :width as well. * lisp/outline.el (outline--margin-width, outline-margin-width): New variables. (outline-open-in-margins, outline-close-in-margins) (outline-close-rtl-in-margins): Don't inherit from parents. Use `:width font' instead of `:height 10'. (outline-minor-mode): Calculate the number of columns for margins to fit the icons.
* | ; Fix typos (don't abbreviate "with" or "without")Stefan Kangas2022-12-012-2/+2
| |
* | Insert news for installed packages onlymuffinmad2022-11-301-1/+4
| | | | | | | | | | * lisp/emacs-lisp/package.el (describe-package-1): Check package is installed and "news" is a regular file. (Bug#59684)
* | ; Fix type error in 'package-maintainers'Philip Kaludercic2022-11-301-1/+1
| | | | | | | | | | * lisp/emacs-lisp/package.el (package-maintainers): Pass the email address to 'ietf-drums-parse-address' (Bug#59676).
* | Do not prune native-compiled system directories (bug#59658)Juanma Barranquero2022-11-281-1/+3
| | | | | | | | | | * lisp/emacs-lisp/comp.el (native-compile-prune-cache): Skip last directory in `native-comp-eln-load-path'.
* | ; Consistently call alists "association list"Stefan Kangas2022-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | * doc/lispref/compile.texi (Compiler Errors): * doc/misc/gnus.texi (Score File Format): * etc/NEWS.24: * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): * lisp/progmodes/gdb-mi.el (gdb-threads-list) (gdb-breakpoints-list, gdb-place-breakpoints): Prefer the term "association list" for alists.
* | Consistently refer to VC packages as suchPhilip Kaludercic2022-11-272-12/+12
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el: Replace instances of "source package" in comments and docstrings. * lisp/emacs-lisp/package.el: Replace instances of "source package" in comments and docstrings.
* | Improve robustness of server.el testsJim Porter2022-11-261-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert--insert-infos): Allow 'message' to be a function that is called when inserting the info. (ert-info): Update docstring to describe using a function for MESSAGE-FORM. * lisp/server.el (server-start): Log when the server is starting. * test/lisp/server-tests.el (server-tests/can-create-frames-p): New constant. Use it to skip tests that need to create frames. (server-tests/start-emacsclient): Rename to... (server-tests/start-client): ... this, and set the process's buffer. (server-tests/with-server): Put the server file in a temporary directory so we don't conflict with real Emacs servers. (server-tests/with-client): New macro... (server-tests/server-start/stop-prompt-with-client) (server-tests/emacsclient/server-edit) (server-tests/emacsclient/create-frame) (server-tests/emacsclient/create-frame): ... use it. (server-tests/server-start/stop-prompt-with-client): Simplify.
* | Fix generation of autoloads on MS-WindowsEli Zaretskii2022-11-261-15/+20
| | | | | | | | | | | | * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--file-load-name): Handle the case when FILE and OUTFILE don't share any common ancestor directory. (Bug#59507)
* | Show package name in package-vc--unpack promptDaanturo2022-11-251-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Display the package name when asking whether to overwrite its previous checkout. (Bug#59548)
* | Fix easy menu separator in oldXMenuManuel Giraud2022-11-251-4/+7
| | | | | | | | | | * lisp/emacs-lisp/easymenu.el (easy-menu-convert-item-1): Replace a string of dash with a menu separator as the doc says. (Bug#59370)
* | Don't break when loading VC packages on older Emacs versionsPhilip Kaludercic2022-11-232-4/+3
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--generate-description-file): Append a :kind property instead of modifying the version number. * lisp/emacs-lisp/package.el (package-desc): Remove special handling for "vc annotated" versions. (bug#59404)
* | ; Fix typosStefan Kangas2022-11-231-1/+1
| |
* | Merge remote-tracking branch 'savannah/master' into feature/tree-sitterYuan Fu2022-11-2137-537/+1757
|\ \
| * | ; Fix typos (misspelled symbols)Stefan Kangas2022-11-211-1/+1
| | |
| * | Activate direct asynchronous processes for Tramp container methodsMichael Albinus2022-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Remote processes): Mention also tramp-container.el. * lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Add `tramp-direct-async' to "mock" method. * lisp/net/tramp-container.el (tramp-methods) <docker, podman, kubernetes>: Add `tramp-direct-async'. * lisp/net/tramp.el (tramp-methods): Adapt docstring. (tramp-handle-make-process): Handle `tramp-direct-async'. * test/lisp/net/tramp-tests.el (tramp-methods) <mock>: Add `tramp-direct-async'.
| * | * lisp/outline.el (outline-search-function): New variable (bug#53981).Juri Linkov2022-11-211-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (outline-font-lock-keywords, outline-font-lock-face) (outline-minor-mode-highlight-buffer, outline-next-preface) (outline-next-heading, outline-previous-heading) (outline-back-to-heading, outline-on-heading-p, outline-demote) (outline-map-region, outline-next-visible-heading) (outline-hide-sublevels, outline-up-heading): Use outline-search-function when it's non-nil as an alternative to searching outline-regexp. (outline-search-level, outline-search-text-property): New functions. * lisp/apropos.el (apropos-mode): Set outline-search-function instead of unreliable outline-regexp. (apropos-print): Add text property outline-level. * lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Add text property outline-level on text separate from final newlines. (shortdoc-display-group): Add a narrow newline to not show text properties of the final line when the outline is hidden. (shortdoc--display-function): Add text property outline-level. (shortdoc-mode): Set buffer-local outline-search-function and outline-level.
| * | Disable display-line-numbers-mode in string-pixel-width (bug#59311)Juri Linkov2022-11-201-0/+4
| | | | | | | | | | | | | | | * lisp/emacs-lisp/subr-x.el (string-pixel-width): Turn off display-line-numbers-mode when it's enabled.
| * | ; Fix typosStefan Kangas2022-11-202-3/+3
| | |
| * | * lisp/emacs-lisp/package.el (package-maintainers): Improve error handlingPhilip Kaludercic2022-11-191-4/+13
| | |
| * | * lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic-variable-bind): TypoStefan Monnier2022-11-181-1/+1
| | |
| * | ; Fix typosStefan Kangas2022-11-184-4/+4
| | |
| * | ; Fix typos (prefer US spelling)Stefan Kangas2022-11-182-3/+3
| | |
| * | * lisp/emacs-lisp/package-vc.el: Autoload package-vc-update{,-all}Philip Kaludercic2022-11-171-0/+2
| | |
| * | ; Clarify what a package specification isPhilip Kaludercic2022-11-171-2/+3
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Expand docstring.
| * | Ensure 'package-vc-prepare-patch' runs in the right directoryPhilip Kaludercic2022-11-171-2/+3
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-prepare-patch): Bind 'default-directory'.p
| * | Avoid duplicate source packages in 'package-alist'Philip Kaludercic2022-11-171-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Remove all other source packages before installing the new package description.
| * | Fix issues related to 'package-vc-install-from-checkout'Philip Kaludercic2022-11-171-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file): Ensure the package name is a string. (package-vc--unpack-1): Use pkg-dir instead of the empty return value of 'package-lisp-dir'. (package-vc-install-from-checkout): Fix file name handling.
| * | ; * lisp/emacs-lisp/package-vc.el: Update TODOPhilip Kaludercic2022-11-171-0/+3
| | |
| * | Allow the direct installation of package specificationsPhilip Kaludercic2022-11-171-17/+28
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Handle package specifications as an argument.
| * | Only fetch elpa-packages.eld when necessaryPhilip Kaludercic2022-11-171-1/+0
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el: Remove hook from 'package-refresh-contents-hook'.