unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: npostavs@users.sourceforge.net
Cc: Tino Calancha <tino.calancha@gmail.com>,
	Mark Oteiza <mvoteiza@udel.edu>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Dmitry Gutov <dgutov@yandex.ru>,
	25105@debbugs.gnu.org, Dima Kogan <dima@secretsauce.net>
Subject: bug#25105: bug#25400: bug#25105: bug#25400: M-p in diff-mode jumps too far
Date: Fri, 13 Jan 2017 15:26:44 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1701131523180.13494@calancha-pc> (raw)
In-Reply-To: <87fuknzem8.fsf@users.sourceforge.net>



On Fri, 13 Jan 2017, npostavs@users.sourceforge.net wrote:

> merge 25400 25105
> tags 25400 patch
> quit
>
> I merged the bugs, and dropped #25400 from the cc list, because I'm
> getting duplicate emails everytime.
Thank you.  Sorry for the duplicated e-mails :-(
> While I'm on a meta topic, sorry
> for being hasty with merging the original patch that changed diff
> movement like that.  I didn't fully grasp it, nor tested like I should
> have done.
No problem.  Indeed you are helping a lot with the bugs.  Thank you very 
much.
>> ;; then, second commit (0beb7d2968ab76878eb3be26f2d749977fdcaa2f)
>> ;; add my fix for Bug#17544.
>
> I think the commit summary could be a bit friendlier, otherwise it looks
> good to me.
Thanks.  I agree: if i read my own commit after some months, probably i 
will not fully understand it.
I propose following more verbose one:

Fix Bug#17544

* lisp/vc/diff-mode.el (diff-file-junk-re):
Move definition before it's used.
(diff--at-diff-header-p): New predicate; return non-nil when point
is inside a hunk header, a file header, or within a line
matching diff-file-junk-re.
(diff-beginning-of-hunk): Use it.
Check if the point is inside a diff header, in the middle of a hunk,
or before the first hunk.
(diff-apply-hunk): Call diff-beginning-of-hunk with non-nil arg
before apply the hunk.
(diff-hunk-kill, diff-file-kill):
Call diff-beginning-of-hunk with non-nil arg after kill the hunks.
(diff-post-command-hook): Call diff-beginning-of-hunk with non-nil argument.






  reply	other threads:[~2017-01-13  6:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-08 21:21 bug#25400: M-p in diff-mode jumps too far Stefan Monnier
2017-01-08 23:27 ` Mark Oteiza
2017-01-09  4:34   ` Stefan Monnier
2017-01-11  4:38 ` bug#25105: " Tino Calancha
2017-01-11 23:27   ` Mark Oteiza
2017-01-11 23:34   ` Dmitry Gutov
2017-01-12  3:53     ` bug#25400: " Tino Calancha
2017-01-13  3:35       ` Dmitry Gutov
2017-01-13  3:55         ` Tino Calancha
2017-01-14  3:11           ` bug#25105: bug#25400: " Dmitry Gutov
2017-01-21  3:02             ` Tino Calancha
2017-01-23  3:42               ` bug#25105: " Dmitry Gutov
2017-01-13  4:25         ` Tino Calancha
2017-01-13  5:57           ` bug#25105: " npostavs
2017-01-13  6:26             ` Tino Calancha [this message]
2017-01-13  6:42               ` bug#25105: " npostavs
2017-01-13  6:54                 ` Tino Calancha
2017-01-14  1:49                   ` npostavs
2017-01-14  5:47                     ` Tino Calancha
2017-01-16  6:26                       ` Tino Calancha
2017-01-17 23:24                         ` Dmitry Gutov
2017-01-18  6:11                           ` Tino Calancha
2017-01-14  3:16           ` bug#25105: bug#25400: " 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=alpine.DEB.2.20.1701131523180.13494@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=25105@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=dima@secretsauce.net \
    --cc=monnier@iro.umontreal.ca \
    --cc=mvoteiza@udel.edu \
    --cc=npostavs@users.sourceforge.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).