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

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

[nongnu] elpa/with-editor ebcbd3b 134/140: Use defvar-local instead of m


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor ebcbd3b 134/140: Use defvar-local instead of make-variable-buffer-local
Date: Fri, 6 Aug 2021 12:51:35 -0400 (EDT)

branch: elpa/with-editor
commit ebcbd3b137154e6c5a2b976bacbb89d48ddfa242
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Use defvar-local instead of make-variable-buffer-local
---
 with-editor.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/with-editor.el b/with-editor.el
index ed1841c..c35e0fa 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -318,12 +318,9 @@ And some tools that do not handle $EDITOR properly also 
break."
 (put 'with-editor-post-finish-hook 'permanent-local t)
 (put 'with-editor-post-cancel-hook 'permanent-local t)
 
-(defvar with-editor-show-usage t)
-(defvar with-editor-cancel-message nil)
-(defvar with-editor-previous-winconf nil)
-(make-variable-buffer-local 'with-editor-show-usage)
-(make-variable-buffer-local 'with-editor-cancel-message)
-(make-variable-buffer-local 'with-editor-previous-winconf)
+(defvar-local with-editor-show-usage t)
+(defvar-local with-editor-cancel-message nil)
+(defvar-local with-editor-previous-winconf nil)
 (put 'with-editor-cancel-message 'permanent-local t)
 (put 'with-editor-previous-winconf 'permanent-local t)
 



reply via email to

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