unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33054: 25.2; diff-model: M-k kills wrong hunk
@ 2018-10-15 20:56 Dima Kogan
       [not found] ` <mailman.2215.1539636970.1284.bug-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Dima Kogan @ 2018-10-15 20:56 UTC (permalink / raw)
  To: 33054

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

I'm using a very recent build: e4896856172

Steps to reproduce bug:

- Open attached diff. Emacs should open it in diff-mode
- Put point on 'd' in the second "diff": (goto-char 98)
- M-k

This should kill the hunk we're on. We are unambiguously sitting on the
second hunk, but the latest diff-mode is confused, thinks we're on the
first hunk, and kills that instead. Kinda. Moving the point even one
character forward makes it work.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: bug.patch --]
[-- Type: text/x-diff, Size: 229 bytes --]

diff --git a/111.py b/111.py
--- a/111.py
+++ b/111.py
@@ -154,3 +154,3 @@
 
-    aaa
+    bbb
 
diff --git a/222.py b/222.py
--- a/222.py
+++ b/222.py
@@ -224,3 +230,3 @@ writemodel(m_to)
     asdf
-    21234
+    345
     zxcv

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-16 19:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-15 20:56 bug#33054: 25.2; diff-model: M-k kills wrong hunk Dima Kogan
     [not found] ` <mailman.2215.1539636970.1284.bug-gnu-emacs@gnu.org>
2018-10-16 18:26   ` Alan Mackenzie
2018-10-16 19:06     ` dima
2018-10-16 19:27       ` Alan Mackenzie

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).