From: Konstantin Kharlamov <hi-angel@yandex.ru>
To: 50762@debbugs.gnu.org
Subject: bug#50762: diff-update-on-the-fly doesn't update hunk headers while regexp-replacing lines
Date: Thu, 23 Sep 2021 18:56:48 +0300 [thread overview]
Message-ID: <b6bcaa625174c61185ab0f173efb53f9378ebe8c.camel@yandex.ru> (raw)
As title says. I think due to this bug it would make sense to have diff-update-on-the-fly set to nil by default.
# Steps to reproduce
1. In Emacs repo, `git checkout 72f8a9dd08132119a` (arbitrary commit for the sake of testcase)
2. Create a patch from Emacs repo with `git format-patch -1 --stdout > /tmp/1.patch`, open it.
3. Note that 1st hunk has value `-2883,10 +2883,13`
4. Use regexp-replace aka `C-M-%` with `(.*^J\+.* → line1` (please replace ^J here with C-q C-j)
5. When asked for matches, press `!`, so all lines are replaced
6. Look at the first hunk again
## Expected
It changes its value to recalculation that should be happening
## Actual
It still has the older value, no recalculation has happened.
reply other threads:[~2021-09-23 15:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b6bcaa625174c61185ab0f173efb53f9378ebe8c.camel@yandex.ru \
--to=hi-angel@yandex.ru \
--cc=50762@debbugs.gnu.org \
/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).