]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Feb 2007 17:08:36 +0000 (17:08 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 7 Feb 2007 17:08:36 +0000 (17:08 +0000)
lisp/ChangeLog
lisp/diff-mode.el

index fd6a28527e86ca7f05aa4b7215471581870030ca..733d8496022d3567a3725de013cff979bddc2bbb 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-07  Per Cederqvist  <ceder@lysator.liu.se>  (tiny change)
+
+       * diff-mode.el (diff-sanity-check-hunk): Don't reject the hunk
+       just because the diff was produced using "-p" (--show-c-function).
+
 2007-02-07  Juanma Barranquero  <lekktu@gmail.com>
 
        * faces.el (frame-set-background-mode): Use `color-values' and
index edf7317f2b423f3c8a4677835c835b8e207c5617..8d61e0ba0fc85cf92f85060bd79f5599ab2429c6 100644 (file)
@@ -1115,7 +1115,7 @@ Only works for unified diffs."
 
        ;; A context diff.
        ((eq (char-after) ?*)
-        (if (not (looking-at "\\*\\{15\\}\n\\*\\*\\* \\([0-9]+\\),\\([0-9]+\\) \\*\\*\\*\\*$"))
+        (if (not (looking-at "\\*\\{15\\}\n\\*\\*\\* \\([0-9]+\\),\\([0-9]+\\) \\*\\*\\*\\*"))
             (error "Unrecognized context diff first hunk header format")
           (forward-line 2)
           (diff-sanity-check-context-hunk-half
@@ -1131,7 +1131,7 @@ Only works for unified diffs."
        ;; A unified diff.
        ((eq (char-after) ?@)
         (if (not (looking-at
-                  "@@ -[0-9]+,\\([0-9]+\\) \\+[0-9]+,\\([0-9]+\\) @@$"))
+                  "@@ -[0-9]+,\\([0-9]+\\) \\+[0-9]+,\\([0-9]+\\) @@"))
             (error "Unrecognized unified diff hunk header format")
           (let ((before (string-to-number (match-string 1)))
                 (after (string-to-number (match-string 2))))