mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-12 17:10:43 -08:00
Merge from origin/emacs-30
e8830015b0Require ert-x for use by 'ert-font-lock-deftest-file'a1841b4d8e; * admin/authors.el (authors-aliases): Don't ignore "one...69d8f9d1b7Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)68f53e4348eieio.texi: Fix bug#7350553c887fdf6; cperl-mode.el: Fix an invalid face specificationf5cd5585f4; Recommend GNU Find for 'find-dired'65e589698e; * lisp/filesets.el (filesets-homepage): Fix URL.1f243a9780Delete duplicated line in Viper refcardd63bff4d88Fix Tramp shortdoc integration759b18a33c* lisp/imenu.el (imenu-flatten): More limitations in docs...794bb2a2e3remember-data-file: Don't unconditionally call set-visite...7766ba8419Align columns in which-key with wide characters properlybd25a98b4ebibtex-mode: fix patch bibtex validation for non-file buf...4729065ee7Document 'buttonize-region' in manualf189457e5a; * lisp/yank-media.el (yank-media-handler): Fix docstrin...2b53e11a08Use black-on-white by default for doc-view-svg-face.32d0c8f6afetags-regen-file-extensions: Enable for more extensions8f265b49e3; Fix last changec8ed48b990; Improve documentation of 'append'c1f2501f55Update and improve UI of sql-read-product (bug#73412)4f5fc519f0Insert correct commit data into VC package descriptions98177d4b3dDocument reporting security issues in user manualb986e2018a* BUGS: Minor copy edit.
This commit is contained in:
commit
c90eb98dab
25 changed files with 174 additions and 208 deletions
|
|
@ -36,6 +36,7 @@
|
|||
;;; Code:
|
||||
|
||||
(require 'ert)
|
||||
(require 'ert-x)
|
||||
(require 'newcomment)
|
||||
(require 'pcase)
|
||||
|
||||
|
|
|
|||
|
|
@ -265,13 +265,13 @@ asynchronously."
|
|||
|
||||
(add-hook 'package-read-archive-hook #'package-vc--read-archive-data 20)
|
||||
|
||||
(defun package-vc-commit (pkg)
|
||||
"Return the last commit of a development package PKG."
|
||||
(cl-assert (package-vc-p pkg))
|
||||
(defun package-vc-commit (pkg-desc)
|
||||
"Return the last commit of a development package PKG-DESC."
|
||||
(cl-assert (package-vc-p pkg-desc))
|
||||
;; FIXME: vc should be extended to allow querying the commit of a
|
||||
;; directory (as is possible when dealing with git repositories).
|
||||
;; This should be a fallback option.
|
||||
(cl-loop with dir = (package-desc-dir pkg)
|
||||
(cl-loop with dir = (package-desc-dir pkg-desc)
|
||||
for file in (directory-files dir t "\\.el\\'" t)
|
||||
when (vc-working-revision file) return it
|
||||
finally return "unknown"))
|
||||
|
|
@ -359,7 +359,11 @@ asynchronously."
|
|||
requires))))
|
||||
(list :kind 'vc)
|
||||
(package--alist-to-plist-args
|
||||
(package-desc-extras pkg-desc))))
|
||||
(let ((extras (copy-alist (package-desc-extras pkg-desc))))
|
||||
(setf (alist-get :commit extras)
|
||||
(package-vc-commit pkg-desc))
|
||||
extras)
|
||||
)))
|
||||
"\n")
|
||||
nil pkg-file nil 'silent))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue