summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* 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'.
| * Remove duplicate package descriptions after updatingPhilip Kaludercic2022-11-171-0/+5
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Ensure there is always just one instance of a package description in 'package-alist'.
| * Remove temporary .texi files if used to build documentationPhilip Kaludercic2022-11-171-3/+7
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Remember if a temporary file was generated and delete it afterwards.
| * Fix the behaviour of 'byte-compile-ignore-files'Philip Kaludercic2022-11-171-4/+3
| | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Negate the 'string-match-p' check. (Bug#59139)
| * Avoid destructive manipulation of 'package-vc--archive-spec-alist'Philip Kaludercic2022-11-171-1/+1
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--desc->spec): Replace 'mapcar' with 'apply'. This is done to avoid unintentional cycles.
| * Improve robustness of 'package-vc-update'Philip Kaludercic2022-11-171-17/+12
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-update): Ensure that the command is only invoked with installed packages. that the hook is always removed and that 'vc-pull' is always called in the right directory.
| * Have 'vc-prepare-patch' handle prefix arguments.Philip Kaludercic2022-11-171-9/+9
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-prepare-patch): Use 'vc-prepare-patch-prompt-revisions'. * lisp/vc/vc.el (vc-prepare-patch-prompt-revisions): Extract common function and handle prefix arguments. (vc-prepare-patch): Pull logic out to 'vc-prepare-patch-prompt-revisions'.
| * Explain that 'package-vc-install' doesn't remove tarball packagesPhilip Kaludercic2022-11-171-1/+3
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Expand documentation.
| * Mention package name when package is lacking VC dataPhilip Kaludercic2022-11-171-2/+3
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Add package name. (package-vc-checkout): Add package name.
| * Add new command 'package-vc-update-all'Philip Kaludercic2022-11-171-0/+10
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-update-all): Add command (package-vc-update): Add an assertion to verify this.
| * Raise 'wrong-type-argument' when installing package nilPhilip Kaludercic2022-11-171-0/+2
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the package is nil.
| * Have 'package-vc-selected-packages' consider all installed packagesPhilip Kaludercic2022-11-171-4/+3
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-selected-packages): Consider more than just one value in `package-alist', in case there are multiple installations.
| * Fix indefinite loading of asynchronous downloadsPhilip Kaludercic2022-11-171-1/+1
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package--download-one-archive): Only add the archive that is actually being downloaded to 'package--downloads-in-progress'.
| * Fix edebug spec for 'package--with-response-buffer'Philip Kaludercic2022-11-171-4/+1
| | | | | | | | | | * lisp/emacs-lisp/package.el (package--with-response-buffer): Add a spec that makes the macro debuggable.
| * Improve robustness of documentation generationPhilip Kaludercic2022-11-171-8/+14
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Log output and display error messages if anything goes wrong.
| * Remove unused variable in 'package-vc--unpack'Philip Kaludercic2022-11-171-1/+1
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Remove 'url'.
| * Move package spec documentation to 'package-vc-selected-packages'Philip Kaludercic2022-11-171-29/+27
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Add documentation. (package-vc--archive-spec-alist): Remove documentation.
| * Fix type error in package-vc prompt functionPhilip Kaludercic2022-11-171-1/+1
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Pass (not allow-url) as REQUIRE-MATCH, not as INITIAL-INPUT.
| * Rename 'package-vc-refresh' to 'package-vc-rebuild'Philip Kaludercic2022-11-171-4/+9
| | | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi (Fetching Package Sources): Update documentation. * lisp/emacs-lisp/package-vc.el (package-vc-refresh): Rename from. (package-vc-rebuild): Rename to. This intends to clarify the intention and avoid confusion with 'package-refresh-contents'. Thanks to Rudolf Adamkovič for the suggestion.
| * Track 'default-directory' while updating source packagesPhilip Kaludercic2022-11-171-4/+7
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-update): Add the source directory to the identifier list, in case the remaining 'vc-do-command' arguments are all read-time constants.
| * Respect :lisp-dir in package specs by loading a sub-directoryPhilip Kaludercic2022-11-172-44/+38
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-repository-store): Remove obsolete variable. (package-vc--unpack-1): Respect :lisp-dir. (package-vc--unpack): Add :lisp-dir to the package description if necessary. * lisp/emacs-lisp/package.el (package--delete-directory): Check if a directory is a symbolic link.
| * Fix generation of documentation for source packagesPhilip Kaludercic2022-11-171-2/+8
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Call "makeinfo" before "install-info"
| * Remove references to internal symbols from public docstringsPhilip Kaludercic2022-11-171-2/+2
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-repository-store): Unmention 'package-vc--unpack'. (package-vc-install): Unmention 'package-vc--guess-backend' in favour of 'package-vc-heuristic-alist'.
| * Expand 'package-vc--unpack-1' documentationPhilip Kaludercic2022-11-171-1/+5
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Explain what the function does.
| * Clarify 'package-vc--build-documentation' docstringPhilip Kaludercic2022-11-171-1/+1
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Rewrite the first line. As suggested by Eli Zaretskii.
| * Fix the docstring for 'package-vc--version'Philip Kaludercic2022-11-171-1/+1
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--version): Replace docstring. It seems like this was just copied over from 'package-vc-commit', for no good reason.
| * Fix 'package-vc-selected-packages' documentationPhilip Kaludercic2022-11-171-2/+6
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Remove reference to non-existent function and add an explanation that the value won't override an existing source package installation.