[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/focus ab42b87799 68/82: Fix buffer-local variables definit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/focus ab42b87799 68/82: Fix buffer-local variables definition |
Date: |
Tue, 6 Sep 2022 04:58:58 -0400 (EDT) |
branch: elpa/focus
commit ab42b8779929beeb7878c7fb3d3ccd80d9327c7f
Author: zsxh <bnbvbchen@gmail.com>
Commit: zsxh <bnbvbchen@gmail.com>
Fix buffer-local variables definition
Define focus-current-thing, focus-buffer, focus-pre-overlay,
focus-post-overlay, focus-read-only-blink-timer as buffer-local variable
---
focus.el | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/focus.el b/focus.el
index 268ff062ad..82be9c9035 100644
--- a/focus.el
+++ b/focus.el
@@ -73,31 +73,23 @@ Things that are defined include `symbol', `list', `sexp',
(defvar focus-cursor-type cursor-type
"Used to restore the users `cursor-type'")
-(defvar focus-current-thing nil
+(defvar-local focus-current-thing nil
"Overrides the choice of thing dictated by `focus-mode-to-thing' if set.")
-(defvar focus-buffer nil
+(defvar-local focus-buffer nil
"Local reference to the buffer focus functions operate on.")
-(defvar focus-pre-overlay nil
+(defvar-local focus-pre-overlay nil
"The overlay that dims the text prior to the current-point.")
-(defvar focus-post-overlay nil
+(defvar-local focus-post-overlay nil
"The overlay that dims the text past the current-point.")
-(defvar focus-read-only-blink-timer nil
+(defvar-local focus-read-only-blink-timer nil
"Timer started from `focus-read-only-cursor-blink'.
The timer calls `focus-read-only-hide-cursor' after
`focus-read-only-blink-seconds' seconds.")
-;; Use make-local-variable for backwards compatibility.
-(dolist (var '(focus-current-thing
- focus-buffer
- focus-pre-overlay
- focus-post-overlay
- focus-read-only-blink-timer))
- (make-local-variable var))
-
(defun focus-get-thing ()
"Return the current thing, based on `focus-mode-to-thing'."
(or focus-current-thing
- [nongnu] branch elpa/focus created (now 704db49988), ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus fbeecfc8ca 08/82: Added README, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 10b44de510 07/82: Docstring update, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 6040c744cc 02/82: Made custom search functions that saves excursion, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 4846438e3f 41/82: Merge branch 'read-only', ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 60f460b5be 28/82: Simplified installation, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 236c002b57 14/82: Tweaking sizes, trying max-with, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus ab42b87799 68/82: Fix buffer-local variables definition,
ELPA Syncer <=
- [nongnu] elpa/focus 9defce6158 10/82: Place the gif's side by side, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 03e3cbc566 05/82: Documented every function/variable, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 497d13d758 32/82: Added functions for jumping between things, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 307df45c69 51/82: Fix #5, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 3013760ef0 12/82: Resizing did not work, retry!, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus ff93c948da 26/82: Added defgroup, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 6a6da19b00 09/82: Fixed image names, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 741a945866 55/82: Merge branch 'syohex-cl-lib', ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus b4fb132314 23/82: Changing modes should not affect Focus mode, ELPA Syncer, 2022/09/06
- [nongnu] elpa/focus 809697ba52 25/82: Changed paragraph to sections, ELPA Syncer, 2022/09/06