* textmodes/nroff-mode.el (nroff-mode-map): Add menus.
* diff-mode.el (diff-file-junk-re): Recognize the git format for
- new files and for changing permissions.
+ new files, deleted 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 ", "old mode", "new mode" and "new file mode" are output by git-diff.
+;; "index ", "old mode", "new mode", "new file mode" and
+;; "deleted file mode" are output by git-diff.
(defconst diff-file-junk-re
- "diff \\|index \\|\\(?:new\\(?: file\\)?\\|old\\) mode ")
+ "diff \\|index \\|\\(?:deleted file\\|new\\(?: file\\)?\\|old\\) mode")
(defun diff-beginning-of-file-and-junk ()
"Go to the beginning of file-related diff-info.