new files and for changing permissions.
* textmodes/nroff-mode.el (nroff-mode-map): Add menus.
* diff-mode.el (diff-file-junk-re): Recognize the git format for
- new files.
+ new files and for changing permissions.
(diff-mode): Set beginning-of-defun-function and
end-of-defun-function.
(diff-end-of-hunk)
(kill-region start (point)))))
-;; "index " and "new file mode" are output by git-diff.
-(defconst diff-file-junk-re "diff \\|index \\|new file mode")
+;; "index ", "old mode", "new mode" and "new file mode" are output by git-diff.
+(defconst diff-file-junk-re
+ "diff \\|index \\|\\(?:new\\(?: file\\)?\\|old\\) mode ")
(defun diff-beginning-of-file-and-junk ()
"Go to the beginning of file-related diff-info.