1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 09:51:22 -08:00
emacs/lisp/vc
Tino Calancha e5e42cefd7 diff-hunk-kill independent of point inside headers
Make diff-apply-hunk and diff-hunk-kill independent of the point
position in a diff header (Bug#17544).
This change allows to apply hunks in order.  It also makes possible to
press M-k repeatedly to kill hunks in the order they appear in the buffer.
See discussion on #Bug25105.
* 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.
2017-01-21 11:54:55 +09:00
..
add-log.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
compare-w.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
cvs-status.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
diff-mode.el diff-hunk-kill independent of point inside headers 2017-01-21 11:54:55 +09:00
diff.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff-diff.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ediff-help.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff-hook.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff-init.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ediff-merg.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff-mult.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ediff-ptch.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ediff-util.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ediff-vers.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff-wind.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ediff.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
emerge.el ; Replace "25.2" with "26.1" where appropriate, which is almost everywhere 2016-11-17 22:50:40 -08:00
log-edit.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
log-view.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
pcvs-defs.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
pcvs-info.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
pcvs-parse.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
pcvs-util.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
pcvs.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
smerge-mode.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-annotate.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-bzr.el Remove leftover references to log-view-message-face 2017-01-14 06:56:37 +03:00
vc-cvs.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-dav.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-dir.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-dispatcher.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-filewise.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-git.el Remove leftover references to log-view-message-face 2017-01-14 06:56:37 +03:00
vc-hg.el Remove leftover references to log-view-message-face 2017-01-14 06:56:37 +03:00
vc-hooks.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-mtn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-rcs.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-sccs.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc-src.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
vc-svn.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
vc.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00