]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local
authorJuri Linkov <juri@linkov.net>
Mon, 8 Apr 2019 20:34:20 +0000 (23:34 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 8 Apr 2019 20:34:20 +0000 (23:34 +0300)
and default value of find-file-hook.

lisp/vc/diff-mode.el

index dbde284da84c15ea718ae068e408685feff60554..840f2c67d20ed067dc99675fff6286207d6832f3 100644 (file)
@@ -2529,7 +2529,8 @@ hunk text is not found in the source file."
     (let ((enable-local-variables :safe) ;; to find `mode:'
           (buffer-file-name file))
       (set-auto-mode)
-      (when (and (memq 'generic-mode-find-file-hook find-file-hook)
+      (when (and (memq 'generic-mode-find-file-hook
+                       (append find-file-hook (default-value 'find-file-hook)))
                  (fboundp 'generic-mode-find-file-hook))
         (generic-mode-find-file-hook))))