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
cd875252
Commit
cd875252
authored
Sep 09, 2009
by
Stefan Monnier
Browse files
(diff-hunk-kill): Fix the search of the next hunk (bug#4368).
parent
5cc79e5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/diff-mode.el
lisp/diff-mode.el
+2
-1
No files found.
lisp/ChangeLog
View file @
cd875252
2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
* diff-mode.el (diff-hunk-kill): Fix the search of the next hunk
(bug#4368).
2009-09-09 Katsumi Yamaoka <yamaoka@jpl.org>
* calendar/time-date.el (autoload):
...
...
lisp/diff-mode.el
View file @
cd875252
...
...
@@ -546,7 +546,8 @@ If the prefix ARG is given, restrict the view to the current file instead."
(
interactive
)
(
diff-beginning-of-hunk
)
(
let*
((
start
(
point
))
(
nexthunk
(
when
(
re-search-forward
diff-hunk-header-re
nil
t
)
;; Search the second match, since we're looking at the first.
(
nexthunk
(
when
(
re-search-forward
diff-hunk-header-re
nil
t
2
)
(
match-beginning
0
)))
(
firsthunk
(
ignore-errors
(
goto-char
start
)
...
...
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