Source

prog-modes / diff-mode.el

Diff from to

diff-mode.el

   ad-do-it
   (condition-case ()
       (with-current-buffer "*vc-diff*"
-	(if (memq major-mode '(fundamental-mode diff-mode)) (diff-mode)))
+        (if (or (eq major-mode default-major-mode)
+                (memq major-mode '(fundamental-mode text-mode diff-mode)))
+            (diff-mode))
+        (if (eq major-mode 'diff-mode) (font-lock-mode)))
     (error nil)))