diff options
author | Philip Kaludercic <philipk@posteo.net> | 2022-10-30 16:52:08 +0100 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2022-10-30 16:52:08 +0100 |
commit | d33998ed3b5e05a40b9c4c1799b6e911b582ef01 (patch) | |
tree | dc9320393da2470c9a22be3e3b0ed675495b1405 /lisp/emacs-lisp/package-vc.el | |
parent | bb86ed20e16358b39288010d41d911f732f88372 (diff) | |
download | emacs-d33998ed3b5e05a40b9c4c1799b6e911b582ef01.tar.gz emacs-d33998ed3b5e05a40b9c4c1799b6e911b582ef01.tar.bz2 emacs-d33998ed3b5e05a40b9c4c1799b6e911b582ef01.zip |
Have 'last-change' accept a line number instead of a range
* 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'.
Diffstat (limited to 'lisp/emacs-lisp/package-vc.el')
-rw-r--r-- | lisp/emacs-lisp/package-vc.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index c3f54c1be8d..52e7e25e9f1 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -507,8 +507,8 @@ If no such revision can be found, return nil." (ignore-error vc-not-supported (vc-call-backend (vc-backend (buffer-file-name)) 'last-change - (match-beginning 0) - (match-end 0)))))))) + (buffer-file-name) + (line-number-at-pos nil t)))))))) ;;;###autoload (defun package-vc-install (name-or-url &optional name rev backend) |