emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3d78c55: (diff-hunk-file-names): Don't require a TA


From: Stefan Monnier
Subject: [Emacs-diffs] master 3d78c55: (diff-hunk-file-names): Don't require a TAB after the file name
Date: Thu, 09 Apr 2015 01:47:57 +0000

branch: master
commit 3d78c5578c435c7eb231ff2212aaf85a1b3ed0e5
Author: Gustav HÃ¥llberg <address@hidden>
Commit: Stefan Monnier <address@hidden>

    (diff-hunk-file-names): Don't require a TAB after the file name
    
    Fixes: debbugs:20276
---
 lisp/vc/diff-mode.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index a9614e9..948a45e 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -821,7 +821,7 @@ If the OLD prefix arg is passed, tell the file NAME of the 
old file."
          (header-files
            ;; handle filenames with spaces;
            ;; cf. diff-font-lock-keywords / diff-file-header-face
-          (if (looking-at "[-*][-*][-*] \\([^\t]+\\)\t.*\n[-+][-+][-+] 
\\([^\t]+\\)")
+          (if (looking-at "[-*][-*][-*] \\([^\t\n]+\\).*\n[-+][-+][-+] 
\\([^\t\n]+\\)")
               (list (if old (match-string 1) (match-string 2))
                     (if old (match-string 2) (match-string 1)))
             (forward-line 1) nil)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]