emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 0667c73: * lisp/vc/diff-mode.el (diff-syntax-fontif


From: Juri Linkov
Subject: [Emacs-diffs] master 0667c73: * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local
Date: Mon, 8 Apr 2019 16:34:27 -0400 (EDT)

branch: master
commit 0667c73708e3c8ed886a4ab0c220fd13908059e5
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/vc/diff-mode.el (diff-syntax-fontify-props): Check both buffer-local
    
    and default value of find-file-hook.
---
 lisp/vc/diff-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index dbde284..840f2c6 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))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]