From: Stefan Monnier Date: Sun, 15 Oct 2000 04:49:55 +0000 (+0000) Subject: (diff-find-file-name): Fix regexp. X-Git-Tag: emacs-pretest-21.0.90~885 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30cdf899d795651977cd4b4b761671024f06f747;p=emacs.git (diff-find-file-name): Fix regexp. --- diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 682d2e912e0..42fd7edbfcb 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -4,7 +4,7 @@ ;; Author: Stefan Monnier ;; Keywords: patch diff -;; Revision: $Id: diff-mode.el,v 1.27 2000/10/03 18:36:36 monnier Exp $ +;; Revision: $Id: diff-mode.el,v 1.28 2000/10/04 21:29:59 miles Exp $ ;; This file is part of GNU Emacs. @@ -413,7 +413,7 @@ Non-nil OLD means that we want the old file." (progn (diff-hunk-prev) (point)) (error (point-min))))) (header-files - (if (looking-at "[-*][-*][-*] \\(\\S-+\\)\\s-.*\n[-+][-+][-+] \\(\\S-+\\)\\s-.*$") + (if (looking-at "[-*][-*][-*] \\(\\S-+\\)\\(\\s-.*\\)?\n[-+][-+][-+] \\(\\S-+\\)") (list (if old (match-string 1) (match-string 2)) (if old (match-string 2) (match-string 1))) (forward-line 1) nil))