Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2f745f7f
Commit
2f745f7f
authored
Apr 05, 2008
by
Dan Nicolaescu
Browse files
* diff-mode.el (diff-file-junk-re): Recognize the git format for
new files and for changing permissions.
parent
90e9ca17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lisp/ChangeLog
lisp/ChangeLog
+1
-1
lisp/diff-mode.el
lisp/diff-mode.el
+3
-2
No files found.
lisp/ChangeLog
View file @
2f745f7f
...
...
@@ -13,7 +13,7 @@
* 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.
...
...
lisp/diff-mode.el
View file @
2f745f7f
...
...
@@ -556,8 +556,9 @@ If the prefix ARG is given, restrict the view to the current file instead."
(
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment