From: Gustav HÃ¥llberg Date: Thu, 9 Apr 2015 01:47:50 +0000 (-0400) Subject: (diff-hunk-file-names): Don't require a TAB after the file name X-Git-Tag: emacs-25.0.90~2525 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3d78c5578c435c7eb231ff2212aaf85a1b3ed0e5;p=emacs.git (diff-hunk-file-names): Don't require a TAB after the file name Fixes: debbugs:20276 --- diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index a9614e95d6d..948a45e6f5c 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)))