* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local

and default value of find-file-hook.
This commit is contained in:
Juri Linkov 2019-04-08 23:34:20 +03:00
parent a038df77de
commit 0667c73708

View 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))))