Commit 0667c737 authored by Juri Linkov's avatar Juri Linkov

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

and default value of find-file-hook.
parent a038df77
Pipeline #1207 failed with stage
in 60 minutes and 2 seconds
......@@ -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))
(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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment