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

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

[nongnu] elpa/vcomplete db010f4f61 34/91: Mark variables as risky local


From: ELPA Syncer
Subject: [nongnu] elpa/vcomplete db010f4f61 34/91: Mark variables as risky local variables
Date: Tue, 24 May 2022 15:59:07 -0400 (EDT)

branch: elpa/vcomplete
commit db010f4f6182b741fc41df1638b71c551a2d77fe
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>

    Mark variables as risky local variables
    
    * vcomplete.el (vcomplete-auto-update, vcomplete--last-completion-overlay)
    (vcomplete--last-string): Mark as risky local variables.
---
 vcomplete.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/vcomplete.el b/vcomplete.el
index da5a464cec..05dc136029 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -83,11 +83,12 @@ Otherwise, operate according to `completion-auto-help'."
   :type '(radio
           (const :tag "Automatically open and update" t)
           (const :tag "Operate according to `completion-auto-help'" nil))
-  :package-version '(vcomplete . 0.1)
   :set (lambda (sym val)
          (set-default sym val)
          (when (fboundp 'vcomplete--reset-vars)
-           (vcomplete--reset-vars))))
+           (vcomplete--reset-vars)))
+  :risky t
+  :package-version '(vcomplete . 0.1))
 
 ;;;; Completion commands:
 
@@ -129,6 +130,7 @@ If no completion is found, return nil."
 
 (defvar vcomplete--last-completion-overlay nil
   "Last overlay created in the `*Completions*' buffer.")
+(put 'vcomplete--last-completion-overlay 'risky-local-variable t)
 
 (defun vcomplete--highlight-completion-at-point ()
   "Highlight the completion at point in the `*Completions*' buffer."
@@ -181,6 +183,7 @@ With prefix argument N, move N items (negative N means move 
forward)."
 
 (defvar vcomplete--last-string nil
   "Last pending completion string.")
+(put 'vcomplete--last-string 'risky-local-variable t)
 
 (defun vcomplete--set-last-string-in-minibuffer ()
   "Set `vcomplete--last-string' in a minibuffer."



reply via email to

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