aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-19 20:51:15 +0100
committerJoakim Verona2012-12-19 20:51:15 +0100
commitfd82bea2c856ab00b35271ecdfd623f7743e27a1 (patch)
treeee611262f049c200d3fb9b593983f168c5444d4c
parentd9aeedb928273e78cb04ffd01e7760e0f39b580a (diff)
parentf4d79bd021831eb64e1bfc7f5c5b1ddb2138b37a (diff)
downloademacs-fd82bea2c856ab00b35271ecdfd623f7743e27a1.tar.gz
emacs-fd82bea2c856ab00b35271ecdfd623f7743e27a1.zip
auto upstream
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/diff-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8e16fe02d9c..3fd8b363546 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * vc/diff-mode.el (diff-post-command-hook): Don't ignore changes at the
4 very beginning of a hunk (e.g. killing the first line).
5
12012-12-19 Michael Albinus <michael.albinus@gmx.de> 62012-12-19 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines 8 * net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 0c023b0f7f4..edd209a7910 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -1298,7 +1298,7 @@ See `after-change-functions' for the meaning of BEG, END and LEN."
1298 (re-search-forward diff-context-mid-hunk-header-re 1298 (re-search-forward diff-context-mid-hunk-header-re
1299 nil t))))) 1299 nil t)))))
1300 (when (and ;; Don't try to fixup changes in the hunk header. 1300 (when (and ;; Don't try to fixup changes in the hunk header.
1301 (> (car diff-unhandled-changes) start) 1301 (>= (car diff-unhandled-changes) start)
1302 ;; Don't try to fixup changes in the mid-hunk header either. 1302 ;; Don't try to fixup changes in the mid-hunk header either.
1303 (or (not mid) 1303 (or (not mid)
1304 (< (cdr diff-unhandled-changes) (match-beginning 0)) 1304 (< (cdr diff-unhandled-changes) (match-beginning 0))