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

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

[nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect F


From: ELPA Syncer
Subject: [nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect Focus mode
Date: Tue, 6 Sep 2022 04:58:55 -0400 (EDT)

branch: elpa/focus
commit b4fb132314bbc04638d442ba546aa576a12d197d
Author: Lars Tveito <larstvei@ifi.uio.no>
Commit: Lars Tveito <larstvei@ifi.uio.no>

    Changing modes should not affect Focus mode
---
 focus.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/focus.el b/focus.el
index e1d1ce6684..885c9e04a6 100644
--- a/focus.el
+++ b/focus.el
@@ -65,6 +65,12 @@ Things that are defined include `symbol', `list', `sexp',
 (defvar-local focus-post-overlay nil
   "The overlay that dims the text past the current-point.")
 
+;; Changing major-mode should not affect Focus mode.
+(dolist (var '(focus-pre-overlay
+               focus-post-overlay
+               post-command-hook))
+  (put var 'permanent-local t))
+
 (defun focus-any (f lst)
   "This function takes a function and a list, and returns the
 first NON-NIL value from applying F to an element in LST."



reply via email to

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