aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/diff-mode.el5
2 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cb09facc268..8664a042f22 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -13,7 +13,7 @@
13 * textmodes/nroff-mode.el (nroff-mode-map): Add menus. 13 * textmodes/nroff-mode.el (nroff-mode-map): Add menus.
14 14
15 * diff-mode.el (diff-file-junk-re): Recognize the git format for 15 * diff-mode.el (diff-file-junk-re): Recognize the git format for
16 new files. 16 new files and for changing permissions.
17 (diff-mode): Set beginning-of-defun-function and 17 (diff-mode): Set beginning-of-defun-function and
18 end-of-defun-function. 18 end-of-defun-function.
19 19
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 48b8f18a132..dd4615dc2ce 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -556,8 +556,9 @@ If the prefix ARG is given, restrict the view to the current file instead."
556 (diff-end-of-hunk) 556 (diff-end-of-hunk)
557 (kill-region start (point))))) 557 (kill-region start (point)))))
558 558
559;; "index " and "new file mode" are output by git-diff. 559;; "index ", "old mode", "new mode" and "new file mode" are output by git-diff.
560(defconst diff-file-junk-re "diff \\|index \\|new file mode") 560(defconst diff-file-junk-re
561 "diff \\|index \\|\\(?:new\\(?: file\\)?\\|old\\) mode ")
561 562
562(defun diff-beginning-of-file-and-junk () 563(defun diff-beginning-of-file-and-junk ()
563 "Go to the beginning of file-related diff-info. 564 "Go to the beginning of file-related diff-info.