unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Juri Linkov <juri@linkov.net>, 50489@debbugs.gnu.org
Subject: bug#50489: vc-annotate doesn't keep the current line
Date: Fri, 10 Sep 2021 02:15:46 +0300	[thread overview]
Message-ID: <91d9dcfb-f984-eeec-b5d4-6019816bd255@yandex.ru> (raw)
In-Reply-To: <87tuitr7tn.fsf@mail.linkov.net>

On 09.09.2021 20:43, Juri Linkov wrote:
> After 'C-x v g' (vc-annotate), typing 'a' (vc-annotate-revision-previous-to-line)
> doesn't keep the current line.  For VC archaeology there is a need to traverse
> the history of the current line by typing a sequence of 'a a a ...'
> But 'a' doesn't keep the line current, so need to spend time
> finding the same line in the buffer to be able to type 'a' on it again.

I think it does keep the current line (by number).

But the exact text can shift up or down between revisions, so we end up 
hunting for it.

It might be possible to keep up with the hunks by doing full diff before 
switching the revision, then count removals/additions in preceding hunks 
and go there. But it would not work when 'a' brings you to the version 
of the file before it was renamed, for example.





  reply	other threads:[~2021-09-09 23:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 17:43 bug#50489: vc-annotate doesn't keep the current line Juri Linkov
2021-09-09 23:15 ` Dmitry Gutov [this message]
2021-09-13 18:19 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-13 23:45   ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91d9dcfb-f984-eeec-b5d4-6019816bd255@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=50489@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).