summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * ; package-vc: Pacify byte-compilerStefan Kangas2022-11-041-0/+1
| | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Declare.
| * Merge branch 'feature/package+vc'Philip Kaludercic2022-11-043-69/+953
| |\
| | * * lisp/emacs-lisp/package-vc.el: Expand commentaryPhilip Kaludercic2022-11-041-0/+11
| | |
| | * ; * lisp/emacs-lisp/package-vc.el (package-vc): Add missing :prefixPhilip Kaludercic2022-11-041-0/+1
| | |
| | * Link to Manual from the package-vc groupPhilip Kaludercic2022-11-041-0/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc): Add 'custom-manual' link.
| | * Document 'package-vc-selected-packages'Philip Kaludercic2022-11-041-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi: Expand documentation and give example. * etc/NEWS: Mention 'package-vc-selected-packages'. * lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Remove function. (package-vc-ensure-packages): Add function based on 'package-vc--select-packages'. (package-vc-selected-packages): Call 'package-vc-ensure-packages' from custom setter.
| | * Autoload all entry functionsPhilip Kaludercic2022-11-031-0/+3
| | |
| | * ; Mention that 'package-vc-checkout' open a directoryPhilip Kaludercic2022-11-031-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-checkout): Mention it in the docstring.
| | * ; Explicitly mark internal functions as suchPhilip Kaludercic2022-11-031-64/+64
| | |
| | * * lisp/emacs-lisp/package-vc.el (package-vc-version): Use main filePhilip Kaludercic2022-11-031-11/+7
| | |
| | * Add command 'package-vc-checkout'Philip Kaludercic2022-11-031-41/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/package.texi: Document feature. * etc/NEWS: Mention feature. * lisp/emacs-lisp/package-vc.el (package-vc-clone): Extract functionality out of 'package-vc-unpack'. (package-vc-unpack): Extract functionality out to 'package-vc-clone'. (package-vc-checkout): Add command.
| | * ; Update TODO sectionPhilip Kaludercic2022-11-021-8/+0
| | |
| | * ; Handle case that was forgotten in the last commitPhilip Kaludercic2022-11-021-1/+1
| | |
| | * Track file name in 'package--downloads-in-progress'Philip Kaludercic2022-11-021-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package--download-one-archive): Move 'cl-pushnew' call from 'package--download-one-archive' and cons file name onto the archive. (package--download-one-archive): Cons the file name onto the archive. (package--download-and-read-archives): Remove 'cl-pushnew' call.
| | * ; Replace 'let*' with 'let' where possiblePhilip Kaludercic2022-11-021-4/+4
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Do it. (package-vc--read-archive-data): Do it.
| | * Ensure 'package-vc-update' runs 'package-vc-unpack-1' only oncePhilip Kaludercic2022-11-011-11/+32
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-update): Use 'vc-sourced-packages-list' and other hacks.
| | * ; Avoid loading package-vc in 'package-load-descriptor'Philip Kaludercic2022-10-311-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-load-descriptor): Remove the :commit check. The property is mostly unused anyway, and this unnecessarily slows down initialisation if a package is installed from source.
| | * ; Actually check if NAME-OR-URL is a stringPhilip Kaludercic2022-10-311-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Use stringp as predicate instead of binding it as a variable.
| | * Allow specifying and pinning source packages to be installedPhilip Kaludercic2022-10-311-0/+45
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--select-packages): Add custom setter for 'package-vc-selected-packages'. (package-vc-selected-packages): Add user option.
| | * ; Update TODO sectionPhilip Kaludercic2022-10-301-3/+0
| | |
| | * Merge remote-tracking branch 'origin/master' into feature/package+vcPhilip Kaludercic2022-10-3017-243/+401
| | |\
| | * | Have 'last-change' accept a line number instead of a rangePhilip Kaludercic2022-10-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-release-rev): Use new signature. * lisp/vc/vc-git.el (vc-git-last-change): Update signature * lisp/vc/vc.el (vc-default-last-change): Update signature and use 'annotate-command'.
| | * | Display a message after installing source packagesPhilip Kaludercic2022-10-301-1/+12
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-unpack-1): Print message and return t.
| | * | Prefer "Package-Version" over "Version" if availablePhilip Kaludercic2022-10-301-2/+7
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-release-rev): Search for both in sequence.
| | * | ; Avoid a type error on malformed "elpa-packages.eld" inputPhilip Kaludercic2022-10-301-2/+2
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el: Use 'eq' instead of '='
| | * | Extract last source package release from local VCS dataPhilip Kaludercic2022-10-301-29/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist): Unmention :release-rev (package-vc-desc->spec): Fall back on other archives if a specification is missing. (package-vc-main-file): Add new function, copying the behaviour of elpa-admin.el. (package-vc-generate-description-file): Use 'package-vc-main-file'. (package-vc-unpack): Handle special value ':last-release'. (package-vc-release-rev): Add new function using 'last-change'. (package-vc-install): Pass ':last-release' as REV instead of a release. * lisp/vc/vc-git.el (vc-git-last-change): Add Git 'last-change' implementation. * lisp/vc/vc.el (vc-default-last-change): Add default 'last-change' implementation. This attempts to replicate the behaviour of elpa-admin.el's "elpaa--get-last-release-commit".
| | * | Explicitly handle :vc-backend in a package specificationPhilip Kaludercic2022-10-281-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist): Document the feature. (package-vc-unpack): Check for :vc-backend in both PKG-SPEC and the archive specification data.
| | * | Ensure that package specifications are always fetchedPhilip Kaludercic2022-10-281-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--archives-initialize): Add new function, extending 'package--archives-initialize'. (package-vc-install): Use new function. (package-vc-link-directory): Use new function.
| | * | Allow specifying the VC backend used by 'package-vc-install'Philip Kaludercic2022-10-281-3/+5
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Add argument BACKEND.
| | * | Update handling for new elpa-packages.eld formatPhilip Kaludercic2022-10-281-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-elpa-packages-version): Add constant. (package-vc-archive-data-alist): Add variable. (package-vc--read-archive-data): Separate package specifications from metadata. (package-vc-unpack): Check archive metadata.
| | * | Add support for :release-rev in 'package-vc-archive-spec-alist'Philip Kaludercic2022-10-261-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist): Update docstring. (package-vc-install): Use :release-rev if invoked with a prefix argument.
| | * | ;Fix typo "pacakge" -> "package"Philip Kaludercic2022-10-231-6/+6
| | | |
| | * | Extract separate function 'package-vc-guess-backend'Philip Kaludercic2022-10-231-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-guess-backend): New function. (package-vc-unpack): Use it. (package-vc-sourced-packages-list): Use it. (package-vc-install): Use it.
| | * | ;Fix typo "heusitic" -> "heuristic"Philip Kaludercic2022-10-231-5/+5
| | | |
| | * | Use user option 'package-vc-default-backend' when cloningPhilip Kaludercic2022-10-231-6/+10
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-unpack): Respect 'package-vc-default-backend'.
| | * | ; Require map only during compilationPhilip Kaludercic2022-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | As map is only used by 'pcase' during macro-expansion, it is not necessary to load it all the time.
| | * | ; Update TODO listPhilip Kaludercic2022-10-231-0/+5
| | | |
| | * | Immediately check out the right branch or revisionPhilip Kaludercic2022-10-231-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-unpack) Use REV to avoid checking out the wrong branch/revision first. * lisp/vc/vc-bzr.el: Handle REV. * lisp/vc/vc-git.el: Handle REV. * lisp/vc/vc-hg.el: Handle REV. * lisp/vc/vc-svn.el: Handle REV. * lisp/vc/vc.el: Make BACKEND optional and add REV.
| | * | ; Remove unnecessary "TODO"s from the package headerPhilip Kaludercic2022-10-231-5/+5
| | | |
| | * | ; Remove unnecessary 'let' bindingPhilip Kaludercic2022-10-231-6/+5
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (pacakge-vc-desc->spec): Simplify function.
| | * | Add auxiliary function to query package specificationsPhilip Kaludercic2022-10-231-0/+8
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-query-spec): Add inline function.
| | * | Request "elpa-packages.eld" instead of "elpa-packages"Philip Kaludercic2022-10-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--read-archive-data): Apply change. (package-vc--download-and-read-archives): Apply change.
| | * | Remove 'package-vc-install' alias 'package-checkout'Philip Kaludercic2022-10-211-3/+0
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-checkout): Remove it.
| | * | Have 'package-vc-link-directory' use name if givenPhilip Kaludercic2022-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-link-directory): Use the NAME argument.
| | * | Build documentation like elpa-admin.elPhilip Kaludercic2022-10-201-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-build-documentation): Add function to build a documentation file. (package-vc-unpack-1): Use 'package-vc-build-documentation'.
| | * | Merge remote-tracking branch 'origin/master' into feature/package+vcPhilip Kaludercic2022-10-201-1/+2
| | |\ \
| | * | | Remove modifications to the list of ignored files in source packagesPhilip Kaludercic2022-10-181-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-unpack-1): Remove 'vc-ignore' calls.
| | * | | Use 'elpa-packages' files for VC metadataPhilip Kaludercic2022-10-182-65/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-default-backend): Add new option. (package-vc-archive-spec-alist): Add new variable to store the contents of 'elpa-packages' for each archive. (pacakge-vc-desc->spec): Add function to query package specifications. (package-vc--read-archive-data): Add a 'package-read-archive-hook' implementation. (package-vc--download-and-read-archives): Add a 'package-refresh-contents-hook' implementation. (package-vc-main-file): Remove function. (package-vc-generate-description-file): Use package specifications. (package-vc-unpack-1): Adapt to previous changes. (package-vc-unpack): Adapt to previous changes. (package-vc-sourced-packages-list): Adapt to previous changes. (package-vc-install): Adapt to previous changes. * lisp/emacs-lisp/package.el (package-read-archive-hook): Allow extending 'package-read-all-archive-contents' using a hook. (package-read-all-archive-contents): Use 'package-read-archive-hook'. (package-refresh-contents-hook): Allow extending 'package-refresh-contents' using a hook. (package-refresh-contents): Use 'package-refresh-contents-hook'.
| | * | | Merge remote-tracking branch 'origin/master' into feature/package+vcPhilip Kaludercic2022-10-185-120/+141
| | |\ \ \
| | * | | | Only clone packages if necessaryPhilip Kaludercic2022-10-171-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-unpack): Check if directory exists before cloning.