From 7ae72df1680f405d4b8d718fb13015e002e0076d Mon Sep 17 00:00:00 2001 From: Lin Sun Date: Sat, 29 Oct 2022 00:00:07 +0000 Subject: [PATCH] * semantic/fw.el: speed up the 'semantic-find-file-noselect' Disabling the find-file-hook for semantic-find-file-noselect to improve the performance on semantic chained source file analysis. --- lisp/cedet/semantic/fw.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el index 9917c4c..cf5c60b 100644 --- a/lisp/cedet/semantic/fw.el +++ b/lisp/cedet/semantic/fw.el @@ -361,6 +361,8 @@ semantic-find-file-noselect (enable-local-variables :safe) ;; ... or eval variables (enable-local-eval nil) + ;; also disable the find-file-hook + (find-file-hook nil) ) (save-match-data (find-file-noselect file nowarn rawfile wildcards)))) -- 2.7.0