mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(diff-add-change-log-entries-other-window): Avoid the
splitter in context hunks.
This commit is contained in:
parent
1abe3a1e4e
commit
02e3336d0c
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* diff-mode.el (diff-add-change-log-entries-other-window): Avoid the
|
||||
splitter in context hunks.
|
||||
|
||||
2008-02-08 Kenichi Handa <handa@ni.aist.go.jp>
|
||||
|
||||
* international/fontset.el (setup-default-fontset): Fix arabic otf
|
||||
|
|
|
|||
|
|
@ -1750,7 +1750,14 @@ I.e. like `add-change-log-entry-other-window' but applied to all hunks."
|
|||
;; Move to where the changes are,
|
||||
;; `add-change-log-entry-other-window' works better in
|
||||
;; that case.
|
||||
(re-search-forward "\n[!+-<>]" nil t))
|
||||
(re-search-forward
|
||||
(concat "\n[!+-<>]"
|
||||
;; If the hunk is a context hunk with an empty first
|
||||
;; half, recognize the "--- NNN,MMM ----" line
|
||||
"\\(-- [0-9]+\\(,[0-9]+\\)? ----\n"
|
||||
;; and skip to the next non-context line.
|
||||
"\\( .*\n\\)*[+]\\)?")
|
||||
nil t))
|
||||
(save-excursion
|
||||
(add-change-log-entry-other-window)
|
||||
;; Insert a "." so that the entries created don't get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue