]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-end-of-hunk): Watch out for ambiguous headers.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Feb 2002 17:00:21 +0000 (17:00 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Feb 2002 17:00:21 +0000 (17:00 +0000)
lisp/ChangeLog
lisp/diff-mode.el

index e4d34ff1c4731430a1029819120b8a104aa58686..4baedc19edf095ac8b7ebf191b98dfea7d343d0f 100644 (file)
@@ -1,6 +1,10 @@
+2002-02-22  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * diff-mode.el (diff-end-of-hunk): Watch out for ambiguous headers.
+
 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
 
-       * progmodes/etags.el (find-tag-noselect, find-tag) 
+       * progmodes/etags.el (find-tag-noselect, find-tag)
        (find-tag-other-window, find-tag-other-frame, find-tag-regexp):
        Fix a typo in doc strings.
 
 
        Support for ICCCM  Extended Segments in X selections:
 
-       * international/mule-conf.el (ctext-no-compositions) 
+       * international/mule-conf.el (ctext-no-compositions)
        (compound-text-with-extensions): New coding systems.
        (x-ctext-with-extensions, ctext-with-extensions): Aliases for
        compound-text-with-extensions.
-       (non-standard-icccm-encodings-alist) 
+       (non-standard-icccm-encodings-alist)
        (non-standard-designations-alist): New variables.
-       (ctext-post-read-conversion, ctext-pre-write-conversion): New
-       functions.
+       (ctext-post-read-conversion, ctext-pre-write-conversion):
+       New functions.
 
 2002-02-18  Andreas Schwab  <schwab@suse.de>
 
@@ -23,8 +27,8 @@
 
 2002-02-15  Andreas Schwab  <schwab@suse.de>
 
-       * textmodes/tex-mode.el (tex-font-lock-keywords-2): Require
-       non-letter after specials.
+       * textmodes/tex-mode.el (tex-font-lock-keywords-2):
+       Require non-letter after specials.
 
 2002-02-12  Eli Zaretskii  <eliz@is.elta.co.il>
 
@@ -32,8 +36,8 @@
        become dead while macro body was running, refrain from switching
        to it.
 
-       * progmodes/pascal.el (pascal-imenu-generic-expression): Add
-       menu-title and fix parentheses.
+       * progmodes/pascal.el (pascal-imenu-generic-expression):
+       Add menu-title and fix parentheses.
 
 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
 
@@ -44,7 +48,7 @@
 
 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
 
-       * net/ange-ftp.el (ange-ftp-process-handle-line) 
+       * net/ange-ftp.el (ange-ftp-process-handle-line)
        (ange-ftp-set-xfer-size): If the file's size is a float, divide
        by 1024 instead of using ash.
 
@@ -70,8 +74,7 @@
 
        * play/pong.el (pong-height): Don't use height that exceeds the
        frame height.
-       (pong-border-options): Make the border colors slightly more
-       bright.
+       (pong-border-options): Make the border colors slightly more bright.
 
        * play/gamegrid.el (gamegrid-display-type): Treat any
        color-capable display as color-x, if display-color-p is fboundp.
index 2c86b1fbeb3c6eaf70cab3442ac1888b80c5d542..bc5c602e585232db1d34536b292a935a564acc17 100644 (file)
@@ -313,7 +313,9 @@ when editing big diffs)."
 (defun diff-end-of-hunk (&optional style)
   (if (looking-at diff-hunk-header-re) (goto-char (match-end 0)))
   (let ((end (and (re-search-forward (case style
-                                      (unified "^[^-+# \\]")
+                                      ;; A `unified' header is ambiguous.
+                                      (unified (concat "^[^-+# \\]\\|"
+                                                       diff-file-header-re))
                                       (context "^[^-+#! \\]")
                                       (normal "^[^<>#\\]")
                                       (t "^[^-+#!<> \\]"))