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

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

[nongnu] elpa/undo-fu 34b27c01da 66/82: Cleanup: use constant instead of


From: ELPA Syncer
Subject: [nongnu] elpa/undo-fu 34b27c01da 66/82: Cleanup: use constant instead of local-variable for command list
Date: Thu, 7 Jul 2022 12:04:54 -0400 (EDT)

branch: elpa/undo-fu
commit 34b27c01da4c3eb8aa595f3613b7e2e1ed4e54be
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: use constant instead of local-variable for command list
    
    There is no reason this list should be buffer local.
---
 undo-fu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/undo-fu.el b/undo-fu.el
index 28773270fb..d9a531c8a5 100644
--- a/undo-fu.el
+++ b/undo-fu.el
@@ -77,7 +77,7 @@ Instead, explicitly call `undo-fu-disable-checkpoint'."
 ;; Use in conjunction with `undo-fu--was-undo-or-redo' to ensure the value 
isn't stale.
 (defvar-local undo-fu--was-redo nil)
 ;; List of interactive commands.
-(defvar-local undo-fu--commands
+(defconst undo-fu--commands
   '(undo-fu-only-undo undo-fu-only-redo-all undo-fu-only-redo 
undo-fu-disable-checkpoint))
 
 ;; ---------------------------------------------------------------------------



reply via email to

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