summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package-vc.el
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Fix typosStefan Kangas2023-12-031-1/+1
|
* 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 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 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)
* 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)
* ; Expand 'package-vc-install' documentationPhilip Kaludercic2023-05-061-5/+7
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install): Go into further detail on the handling of the REV argument. (Bug#60418)
* Prevent unnecessary modifications of 'package-vc-selected-packages'Philip Kaludercic2023-05-041-8/+9
| | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Handle the structure of correctly, not as an alist but a list of alists. (package-vc--archive-spec-alist, package-vc--archive-spec-alists, package-vc--desc->spec, package-vc--read-archive-data, package-vc--download-and-read-archives, package-vc--unpack): Rename 'package-vc--archive-spec-alist' to 'package-vc--archive-spec-alists'.
* Rename all functions called package-*-update-* to package-*-upgrade-*Dmitry Gutov2023-04-281-9/+9
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-upgrade-all): Rename from 'package-vc-update-all'. (package-vc-upgrade): Rename from 'package-vc-update'. * lisp/emacs-lisp/package.el (package-upgrade): Rename from 'package-update' (bug#62750). (package--upgradeable-packages): Rename from 'package--updateable-packages'. (package-upgrade-all): Rename from 'package-update-all'.
* Add more documentation for the keys of `package-vc-selected-packages`.Earl Hyatt2023-04-121-26/+4
| | | | | | | | | | | * doc/emacs/package.texi (Specifying Package Sources): List the accepted keys in a new subsection of Fetching Package Sources. * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Mention the `:doc` key. Add the `:doc` key to the Customize form, mention the new Info node, correct "TexInfo" to "Texinfo", avoid Git-specific terms for the description of `:branch`, mention guessing `:vc-backend` based on the URL.
* ; * lisp/emacs-lisp/package-vc.el: Remove completed item from TODOPhilip Kaludercic2023-03-301-3/+0
|
* ; * lisp/emacs-lisp/package-vc.el (package-vc): Fix manual referencePhilip Kaludercic2023-03-301-1/+1
|
* Remove 'package-vc--query-spec'Philip Kaludercic2023-03-151-9/+0
| | | | | | | * lisp/emacs-lisp/package-vc.el (require): Do not load `inline' during compilation. (package-vc--query-spec): Remove function. (package-vc--clone): Do not call 'package-vc--query-spec'.
* Do not store :lisp-dir in package descriptorsPhilip Kaludercic2023-03-151-16/+9
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file) (package-vc--unpack-1): Query 'pkg-spec' instead of 'package-desc-extras'. (package-vc--unpack): Do not update 'package-desc-extras'. This simplification is possible due to the change in 2718bbb3bc, since we now ensure that package specifications are not lost. They are either provided by a package archive or stored in 'package-vc-selected-packages'.
* Use 'package-vc-selected-packages' to store package specsPhilip Kaludercic2023-03-151-16/+22
| | | | | | | | | | | * doc/emacs/package.texi (Fetching Package Sources): Do not promote the usage of 'package-vc-selected-packages' to install packages. * lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Remove custom setter and change docstring according to these changes. (package-vc--desc->spec): Consult 'package-vc-selected-packages' for package specifications. (package-vc--unpack): Add unknown package specifications to 'package-vc-selected-packages'
* Avoid reusing :lisp-dir twice in 'package-vc--main-file'Philip Kaludercic2023-02-241-1/+0
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file): Just use :lisp-dir from 'package-desc-extras', not 'pkg-spec'. This avoid appending the contents of :lisp-dir twice, in case it is specified both in pkg-spec and pkg-desc.
* Ensure right package-desc-type before installing packagePhilip Kaludercic2023-02-241-3/+5
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Move copying code from 'package-vc-install'. (package-vc-install): Remove copying. (Bug#61669)
* ; Avoid installing VC package dependencies multiple timesPhilip Kaludercic2023-02-161-2/+2
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Check if two package names are eq, instead checking the structural equality of package-desc objects.
* Attempt to recognise if a VC package has no Elisp filesPhilip Kaludercic2023-02-161-0/+15
| | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-non-code-file-names): Add new variable used to avoid false-positives. (package-vc--unpack): Recursively search for .el files excluding the ones listed in 'package-vc-non-code-file-names', offering to abort the installation if none are found.
* ; Raise an error if a VC package checkout is emptyPhilip Kaludercic2023-02-141-1/+4
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Check if PKG-DIR is empty before proceeding with the installation.
* ; Fix the installation of dependencies for VC packagesPhilip Kaludercic2023-02-141-8/+13
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Work with package-desc objects instead of (PACKAGE-NAME VERSION) pairs.
* ; Use the right name when specifying VC packagesPhilip Kaludercic2023-02-121-3/+4
| | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-selected-packages): Generate dummy package descriptors in here, if necessary. (package-vc--unpack): Remove dummy-descriptor generation.
* Tolerate missing elpa-packages.eld filesPhilip Kaludercic2023-02-121-2/+2
| | | | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--download-and-read-archives): Replace 'condition-case-unless-debug' with a regular 'condition-case'. It appears a few people using third-party archives that don't serve package specifications have been having issues with package-vc, when toggle-on-error is enabled. In their case, package-vc would raise an error in its first invocation, but it would go on working normally afterwards. As this behaviour is confusing and the user can't do much about a missing elpa-packages.eld to begin with, we satisfy ourselves with printing out a message and continuing on.
* ; Fix installation of dependencies for VC packagesPhilip Kaludercic2023-02-121-2/+2
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Maintain a list of package-desc objects instead of package names to install.
* ; Actually use dummy package descriptorPhilip Kaludercic2023-01-211-1/+1
| | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Set pkg-desc if nil. This revises the changes from 70947da708c8e06e31a2930520b38bafe43dba39.
* Ensure VC package names are not emptyPhilip Kaludercic2023-01-111-1/+5
| | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Raise an error if the package name is empty. (package-vc-install): Avoid generating an empty file name, if a URL ends with a slash, and raise an error if the package name is empty.
* Handle missing package description when unpacking vc packagesPhilip Kaludercic2023-01-111-0/+2
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Create a dummy descriptor if PKG-DESC is nil.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; Add "src" to the heuristic sub-directory heuristicPhilip Kaludercic2022-12-271-12/+15
| | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Check for "src" directories, next to "lisp".
* ; Always consider :lisp-dir when locating main file of VC packagesPhilip Kaludercic2022-12-251-1/+3
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--main-file): Check the :lisp-dir entry in the "extras" of a package description to find the directory with a main file.
* Add heuristic to locate lisp code in source packagesPhilip Kaludercic2022-12-251-0/+14
| | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc--unpack): Check if a "lisp" directory exists and use that instead of PKG-DIR. (Bug#60155)
* Reorder optional arguments to 'package-vc-install'Philip Kaludercic2022-12-251-5/+9
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-selected-packages): Update 'package-vc-install' invocation. (package-vc-install): Reorder and update documentation.
* Handle missing dependencies for source packagesPhilip Kaludercic2022-12-251-87/+144
| | | | | | | | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Add new function. (package-vc--unpack-1): Call 'package-vc-install-dependencies' instead of 'package-compute-transaction' and 'package-download-transaction'. It is unreasonable to abort the installation, since we cannot expect all dependencies to be available in the regular archives. Instead we note which packages couldn't be found, and warn the user that these will be missing.
* Ensure package directories for source packages from checkoutsPhilip Kaludercic2022-12-151-0/+1
| | | | | | * lisp/emacs-lisp/package-vc.el (package-vc-install-from-checkout): Set the :dir entry, since `package-vc--unpack-1' assumes the field is set, as is the case when invoking `package-vc--unpack'.
* 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-091-3/+5
|
* Consistently refer to VC packages as suchPhilip Kaludercic2022-11-271-10/+10
| | | | | | | * 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.
* 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)
* Don't break when loading VC packages on older Emacs versionsPhilip Kaludercic2022-11-231-1/+2
| | | | | | | | * 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 typos (misspelled symbols)Stefan Kangas2022-11-211-1/+1
|
* ; Fix typosStefan Kangas2022-11-201-1/+1
|
* * 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.