From: Stefan Monnier Date: Thu, 6 May 2004 18:41:32 +0000 (+0000) Subject: (diff-make-unified): Fix regexp. X-Git-Tag: ttn-vms-21-2-B4~6394 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4c174fb4fa9ac9cd3156396129dd82ffed161a31;p=emacs.git (diff-make-unified): Fix regexp. --- diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index e95ac7422fe..9b00eae050d 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -976,7 +976,7 @@ a diff with \\[diff-reverse-direction]." "Turn context diffs into unified diffs if applicable." (if (save-excursion (goto-char (point-min)) - (looking-at "\\*\\*\\* ")) + (and (looking-at diff-hunk-header-re) (eq (char-after) ?*))) (let ((mod (buffer-modified-p))) (unwind-protect (diff-context->unified (point-min) (point-max))