GNU bug report logs -
#44001
vc-print-log-setup-buttons leaves point at eob
Previous Next
Reported by: Thien-Thi Nguyen <ttn <at> gnuvola.org>
Date: Wed, 14 Oct 2020 23:59:02 UTC
Severity: normal
Tags: fixed, patch
Merged with 31764
Found in version 26.1
Fixed in version 26.2
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44001 in the body.
You can then email your comments to 44001 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Wed, 14 Oct 2020 23:59:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Thien-Thi Nguyen <ttn <at> gnuvola.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 14 Oct 2020 23:59:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I have the following in my ~/.emacs flow:
;; 2020-02-01
;;
;; As of Emacs 26 (or thereabouts), ‘C-x v l’ for files w/
;; "fewer" commits, leaves point at the end of the buffer,
;; whereas it used to leave it at the beginning, or rather on
;; the "selected" commit entry, which typically was the first --
;; same result after all.
;;
;; The culprit seems to be the buttons for extending the commit
;; range, drawn at the end of the buffer by
;; ‘vc-print-log-setup-buttons’. This advice fixes things for
;; now. The true fix will be to upstream this, either directly
;; into the function itself, or into its caller. Probably
;; better to do it in the caller.
;;
;; FIXME: Upstream the fix!
;;
(advice-add 'vc-print-log-setup-buttons :around
(lambda (orig-fun &rest args)
"Do ‘save-excursion’ around the original function."
(save-excursion
(apply orig-fun args))))
I know advice is not the right way to do it, but am writing to
ask if this approach is okay. (If so, i can work up a patch.)
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query) ; (2020) Software Libero
(pcase (context query) ; = Dissenso Etico
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Thu, 15 Oct 2020 06:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 44001 <at> debbugs.gnu.org (full text, mbox):
Thien-Thi Nguyen <ttn <at> gnuvola.org> writes:
> I have the following in my ~/.emacs flow:
>
> ;; 2020-02-01
> ;;
> ;; As of Emacs 26 (or thereabouts), ‘C-x v l’ for files w/
> ;; "fewer" commits, leaves point at the end of the buffer,
> ;; whereas it used to leave it at the beginning, or rather on
Can you please provide receipt to reproduce this? For me, on Emacs 28:
1. emacs -Q
2. C-x C-f <file-under-git-repo>
3. C-x v l
The point is at the top log entry.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Thu, 15 Oct 2020 06:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 44001 <at> debbugs.gnu.org (full text, mbox):
Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:
> Thien-Thi Nguyen <ttn <at> gnuvola.org> writes:
>
>> I have the following in my ~/.emacs flow:
>>
>> ;; 2020-02-01
>> ;;
>> ;; As of Emacs 26 (or thereabouts), ‘C-x v l’ for files w/
>> ;; "fewer" commits, leaves point at the end of the buffer,
>> ;; whereas it used to leave it at the beginning, or rather on
>
> Can you please provide receipt to reproduce this? For me, on Emacs 28:
>
> 1. emacs -Q
> 2. C-x C-f <file-under-git-repo>
> 3. C-x v l
>
> The point is at the top log entry.
Looks like this was fixed in bug#31764:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31764
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Thu, 15 Oct 2020 08:08:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 44001 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
() Andrii Kolomoiets <andreyk.mad <at> gmail.com>
() Thu, 15 Oct 2020 09:57:49 +0300
Looks like this was fixed in bug#31764:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31764
Indeed, and w/ the same approach i stumbled upon.
Thanks! I suppose we can close this bug, then.
BTW, for future reference, how did you find this
previous bug report?
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query) ; (2020) Software Libero
(pcase (context query) ; = Dissenso Etico
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Thu, 15 Oct 2020 08:22:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 44001 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Thu, 15 Oct 2020 04:04:46 -0400, Thien-Thi Nguyen <ttn <at> gnuvola.org> said:
Thien-Thi> () Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Thien-Thi> () Thu, 15 Oct 2020 09:57:49 +0300
Thien-Thi> Looks like this was fixed in bug#31764:
Thien-Thi> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31764
Thien-Thi> Indeed, and w/ the same approach i stumbled upon.
Thien-Thi> Thanks! I suppose we can close this bug, then.
Thien-Thi> BTW, for future reference, how did you find this
Thien-Thi> previous bug report?
I donʼt know about Andrii, but 'git log --grep
vc-print-log-setup-buttons' will do it.
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#44001
; Package
emacs
.
(Thu, 15 Oct 2020 08:24:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 44001 <at> debbugs.gnu.org (full text, mbox):
Thien-Thi Nguyen <ttn <at> gnuvola.org> writes:
> () Andrii Kolomoiets <andreyk.mad <at> gmail.com>
> () Thu, 15 Oct 2020 09:57:49 +0300
>
> Looks like this was fixed in bug#31764:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31764
>
> Indeed, and w/ the same approach i stumbled upon.
> Thanks! I suppose we can close this bug, then.
>
> BTW, for future reference, how did you find this
> previous bug report?
Found call to 'vc-print-log-setup-buttons' in 'vc-print-log-internal' in
vc.el, noticed it's already under 'save-excursion'.
Then 'vc-annotate' (C-x v g) and then
'vc-annotate-show-log-revision-at-line' (l).
Forcibly Merged 31764 44001.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 21 Oct 2020 18:49:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 19 Nov 2020 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 213 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.