emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/hyperbole d1dcd54 41/50: * Disable magit-auto-revert-mo


From: Stefan Monnier
Subject: [elpa] externals/hyperbole d1dcd54 41/50: * Disable magit-auto-revert-mode-enable-in-buffers in hyrolo buffer
Date: Wed, 17 Mar 2021 18:44:21 -0400 (EDT)

branch: externals/hyperbole
commit d1dcd5437b38f356684101ff3c729c6a3ec0f129
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>

    * Disable magit-auto-revert-mode-enable-in-buffers in hyrolo buffer
    
    This is not needed and can slow/hang file loading
---
 hyrolo.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hyrolo.el b/hyrolo.el
index 579a967..8989bb4 100644
--- a/hyrolo.el
+++ b/hyrolo.el
@@ -1039,7 +1039,11 @@ Return number of matching entries found."
   ;; Save regexp as last rolo search expression.
   (setq hyrolo-match-regexp regexp)
   ;;
-  (let ((new-buf-p) (actual-buf))
+  (let ((new-buf-p) (actual-buf)
+       ;; Disable magit-auto-revert-mode-enable-in-buffers for hyrolo
+       ;; buffers; not needed and can slow/hang file loading
+       (after-change-major-mode-hook
+        (delq 'magit-auto-revert-mode-enable-in-buffers 
after-change-major-mode-hook)))
     (if (and (or (null max-matches) (eq max-matches t) (integerp max-matches))
             (or (setq actual-buf (hyrolo-buffer-exists-p hyrolo-file-or-buf))
                 (if (file-exists-p hyrolo-file-or-buf)



reply via email to

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