branch: elpa/vcomplete commit db010f4f6182b741fc41df1638b71c551a2d77fe Author: Daniel Semyonov <dan...@dsemy.com> Commit: Daniel Semyonov <dan...@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."