summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2019-04-08 23:34:20 +0300
committerJuri Linkov <juri@linkov.net>2019-04-08 23:34:20 +0300
commit0667c73708e3c8ed886a4ab0c220fd13908059e5 (patch)
tree7971c2ea69095d0bd993a348bca6d1bb1ad92ac2 /lisp
parenta038df77de7b1aa2d73a6478493b8838b59e4982 (diff)
downloademacs-0667c73708e3c8ed886a4ab0c220fd13908059e5.tar.gz
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local
and default value of find-file-hook.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc/diff-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index dbde284da84..840f2c67d20 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -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))))