Philip Kaludercic
db28ba29dd
Ensure 'package-vc-prepare-patch' runs in the right directory
...
* lisp/emacs-lisp/package-vc.el (package-vc-prepare-patch): Bind
'default-directory'.p
2022-11-17 20:55:04 +01:00
Philip Kaludercic
0b77909cac
Avoid duplicate source packages in 'package-alist'
...
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Remove all
other source packages before installing the new package description.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
5b8f165f75
Fix issues related to 'package-vc-install-from-checkout'
...
* 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.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
53c90abfa8
; * lisp/emacs-lisp/package-vc.el: Update TODO
2022-11-17 20:55:04 +01:00
Philip Kaludercic
4bd7ae833f
Allow the direct installation of package specifications
...
* lisp/emacs-lisp/package-vc.el (package-vc-install): Handle package
specifications as an argument.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
874d8a418f
Only fetch elpa-packages.eld when necessary
...
* lisp/emacs-lisp/package-vc.el: Remove hook from
'package-refresh-contents-hook'.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
228c247e6f
Remove duplicate package descriptions after updating
...
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Ensure there
is always just one instance of a package description in 'package-alist'.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
32f51f17c4
Remove temporary .texi files if used to build documentation
...
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Remember if a temporary file was generated and delete it afterwards.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
11cb810356
Fix the behaviour of 'byte-compile-ignore-files'
...
* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Negate the
'string-match-p' check. (Bug#59139)
2022-11-17 20:55:04 +01:00
Philip Kaludercic
3326337776
Avoid destructive manipulation of 'package-vc--archive-spec-alist'
...
* lisp/emacs-lisp/package-vc.el (package-vc--desc->spec): Replace
'mapcar' with 'apply'. This is done to avoid unintentional cycles.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
7ab556b576
Improve robustness of 'package-vc-update'
...
* 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.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
d0ea38b5fe
Have 'vc-prepare-patch' handle prefix arguments.
...
* 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'.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
4aee4cde3a
Explain that 'package-vc-install' doesn't remove tarball packages
...
* lisp/emacs-lisp/package-vc.el (package-vc-install): Expand documentation.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
a467afbd98
Mention package name when package is lacking VC data
...
* lisp/emacs-lisp/package-vc.el (package-vc-install): Add package name.
(package-vc-checkout): Add package name.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
c8e5069e6d
Add new command 'package-vc-update-all'
...
* lisp/emacs-lisp/package-vc.el (package-vc-update-all): Add command
(package-vc-update): Add an assertion to verify this.
2022-11-17 20:55:04 +01:00
Philip Kaludercic
aa56e50fe2
Raise 'wrong-type-argument' when installing package nil
...
* lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the
package is nil.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
496c578d9c
Have 'package-vc-selected-packages' consider all installed packages
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
2ed115fc3c
Fix indefinite loading of asynchronous downloads
...
* lisp/emacs-lisp/package.el (package--download-one-archive): Only add
the archive that is actually being downloaded to
'package--downloads-in-progress'.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
ccd7ab84c5
Fix edebug spec for 'package--with-response-buffer'
...
* lisp/emacs-lisp/package.el (package--with-response-buffer): Add a
spec that makes the macro debuggable.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
7c3d3fa44e
Improve robustness of documentation generation
...
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Log
output and display error messages if anything goes wrong.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
a6cd44734d
Remove unused variable in 'package-vc--unpack'
...
* lisp/emacs-lisp/package-vc.el (package-vc--unpack): Remove 'url'.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
348f7d263c
Move package spec documentation to 'package-vc-selected-packages'
...
* lisp/emacs-lisp/package-vc.el (package-vc-selected-packages): Add
documentation.
(package-vc--archive-spec-alist): Remove documentation.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
2b93d0e6f1
Fix type error in package-vc prompt function
...
* lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Pass
(not allow-url) as REQUIRE-MATCH, not as INITIAL-INPUT.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
c53c5f3884
Rename 'package-vc-refresh' to 'package-vc-rebuild'
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
2ec02024ab
Track 'default-directory' while updating source packages
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
d67b66f8ab
Respect :lisp-dir in package specs by loading a sub-directory
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
9f4a433b27
Fix generation of documentation for source packages
...
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Call "makeinfo" before "install-info"
2022-11-17 20:37:28 +01:00
Philip Kaludercic
13d051b443
Remove references to internal symbols from public docstrings
...
* 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'.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
b0200a37e4
Expand 'package-vc--unpack-1' documentation
...
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Explain what
the function does.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
f939859fe4
Clarify 'package-vc--build-documentation' docstring
...
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Rewrite the first line.
As suggested by Eli Zaretskii.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
32758c6da0
Fix the docstring for 'package-vc--version'
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
83ff0de4ce
Fix 'package-vc-selected-packages' documentation
...
* 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.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
3ff8310cc3
Mark 'package-vc-update' as interactive
...
* lisp/emacs-lisp/package-vc.el (package-vc--sourced-packages-list):
Remove function in favour of 'package-vc--read-package-name'.
(package-vc--read-package-name):
Extract out common functionality.
(package-vc--read-package-desc): Add auxiliary function based on
'package-vc--read-package-name'.
(package-vc-update): Add interactive spec using
'package-vc--read-package-desc'.
(package-vc-install): Use 'package-vc--read-package-desc'.
(package-vc-checkout): Use 'package-vc--read-package-desc'.
(package-vc--read-pkg): Remove in favour of 'package-vc--read-package-desc'.
(package-vc-refresh): Use 'package-vc--read-package-desc'.
(package-vc-prepare-patch): Use 'package-vc--read-package-desc'.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
aadf07f5b8
Autoload 'package-vc-install-selected-packages'
...
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Add an
autoload cookie.
(package-vc-selected-packages): Set
:initialize to 'custom-initialize-default'.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
e1ce202ad1
Mark 'package-vc-install-selected-packages' as interactive
...
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Add an
interactive spec.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
9d3c6205ae
Rename '-ensure-packages' to -install-selected-packages'
...
* doc/emacs/package.texi (Fetching Package Sources): Rename instances.
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Rename
to 'package-vc-install-selected-packages'.
(package-vc-selected-packages): Call renamed function.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
a4e4ceb47a
Handle strings as keys in 'package-vc-ensure-packages'
...
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Inter
sting keys while processing 'package-vc-selected-packages'.
As requested by Rudolf Adamkovič.
2022-11-17 20:37:28 +01:00
Philip Kaludercic
e55be31d55
; Fix interactive spec for 'package-vc-refresh'
...
* lisp/emacs-lisp/package-vc.el (package-vc-refresh):
Thanks to Rudolf Adamkovič for noticing the mistake.
2022-11-17 20:37:28 +01:00
Juanma Barranquero
61b9f2c317
* lisp/emacs-lisp/shortdoc.el (sequence): Don't use cl-lib (bug#59319)
2022-11-17 09:55:45 +01:00
Stefan Kangas
93036209fa
; Fix typos (duplicate words)
2022-11-17 09:34:24 +01:00
Eli Zaretskii
43cca14a9e
; * lisp/emacs-lisp/seq.el (seq-filter): Fix typo in doc string.
2022-11-17 08:48:14 +02:00
Eli Zaretskii
3b137bcbe8
; Improve doc strings in seq.el
...
* lisp/emacs-lisp/seq.el (seq-doseq, seq-setq, seq-elt)
(seq-length, seq-rest, seq-do, seq-mapn, seq-drop, seq-take)
(seq-drop-while, seq-take-while, seq-sort, seq-sort-by)
(seq-concatenate, seq-into, seq-filter, seq-remove)
(seq-remove-at-position, seq-every-p, seq-some, seq-find)
(seq-count, seq-contains, seq-contains-p, seq-set-equal-p)
(seq-position, seq-positions, seq-uniq, seq-mapcat)
(seq-partition, seq-union, seq-intersection, seq-difference)
(seq--count-successive, seq--elt-safe, seq-random-elt)
(seq-split, seq-keep): Doc fixes.
2022-11-15 19:36:49 +02:00
Stefan Kangas
6f48b46b03
; Fix typos
2022-11-11 15:52:37 +01:00
Gerd Möllmann
6d9065b748
Fix &key parameters called without arguments (bug#58714)
...
* lisp/emacs-lisp/cl-macs.el (cl--do-arglist): Check for missing
argument.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-&key-arguments): New test.
2022-11-11 14:13:46 +01:00
Nicholas Vollmer
a01024c859
bytecomp.el (byte-recompile-directory): Fix negated ignore logic
...
Previous logic would only compile files which matched the
byte-compile-ignore-files regular expression. (Bug#59115)
2022-11-09 09:50:38 +01:00
Mattias Engdegård
e46f680489
; * lisp/emacs-lisp/package.el (package-load-all-descriptors): Use \`
2022-11-06 16:01:13 +01:00
Philip Kaludercic
270020a4b4
Rephrase 'package-vc-ensure-packages' docstring
...
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Make it
easier to read.
2022-11-05 17:44:57 +01:00
Philip Kaludercic
1557bb9d8f
; Rename 'package-vc-link-directory' to '-install-from-checkout'
...
* doc/emacs/package.texi (Fetching Package Sources): Rename instances
* etc/NEWS: Rename instances.
* lisp/emacs-lisp/package-vc.el (package-vc-link-directory): Rename to
'package-vc-install-from-checkout'.
2022-11-05 17:44:54 +01:00
Eli Zaretskii
22fb5397de
; Fix documentation of package-vc.el
...
* lisp/emacs-lisp/package-vc.el (package-vc-default-backend)
(package-vc-selected-packages, package-vc--archive-spec-alist)
(package-vc--archive-data-alist, package-vc--query-spec)
(package-vc--read-archive-data, package-vc-commit)
(package-vc--main-file, package-vc--generate-description-file)
(package-vc--build-documentation, package-vc--unpack-1)
(package-vc--guess-backend, package-vc--clone)
(package-vc--unpack, package-vc-update, package-vc--release-rev)
(package-vc-install, package-vc-checkout)
(package-vc-link-directory, package-vc-refresh)
(package-vc-prepare-patch, package-vc--archives-initialize): Doc fixes.
2022-11-05 13:11:28 +02:00
Stefan Kangas
5f0af7caec
; package-vc: Pacify byte-compiler
...
* lisp/emacs-lisp/package-vc.el (package-vc-selected-packages):
Declare.
2022-11-04 20:16:04 +01:00