Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c422d9f0
Commit
c422d9f0
authored
Jan 15, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(diff-end-of-hunk): Revert 2008-01-08 change.
parent
9292328f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
lisp/diff-mode.el
lisp/diff-mode.el
+1
-5
No files found.
lisp/diff-mode.el
View file @
c422d9f0
...
...
@@ -401,13 +401,9 @@ when editing big diffs)."
(
defun
diff-end-of-hunk
(
&optional
style
)
;; Especially important for unified (because headers are ambiguous).
(
setq
style
(
diff-hunk-style
style
))
;; Some versions of diff replace all-blank context lines in unified
;; format with empty lines. The use of \n below avoids matching such
;; lines as headers.
;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01990.html
(
let
((
end
(
and
(
re-search-forward
(
case
style
;; A `unified' header is ambiguous.
(
unified
(
concat
"^[^-+# \\
\n
]\\|"
(
unified
(
concat
"^[^-+# \\]\\|"
diff-file-header-re
))
(
context
"^[^-+#! \\]"
)
(
normal
"^[^<>#\\]"
)
...
...
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