commit f61d0a060ad54bdf0c305afe1e362518f64463dd
parent 53ae44bd2384de5e2513496ccf6ca2fce6767299
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Thu, 16 May 2019 20:54:56 +0100
Disable major mode change hooks when finding definitions
Fixes #208
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -13,6 +13,9 @@ Fixed a crash on keyboard macros in keymaps.
String values are now shown as literals by default.
+Fixed an issue with modes that override after-change-major-mode-hook,
+such as `global-hi-lock-mode`.
+
# v0.16
Improved wording when looking at aliases.
diff --git a/helpful.el b/helpful.el
@@ -1317,8 +1317,9 @@ buffer."
(buf nil)
(pos nil)
(opened nil)
- ;; Skip running find-file-hook since it may prompt the user.
+ ;; Skip running hooks that may prompt the user.
(find-file-hook nil)
+ (after-change-major-mode-hook nil)
;; If we end up opening a buffer, don't bother with file
;; variables. It prompts the user, and we discard the buffer
;; afterwards anyway.