mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
(set-variable): Suggest only valid user variable.
This commit is contained in:
parent
5e78e475d4
commit
2b98929656
@ -2982,7 +2982,7 @@ it were the arg to `interactive' (which see) to interactively read the value."
|
||||
(let* ((v (variable-at-point))
|
||||
(enable-recursive-minibuffers t)
|
||||
(val (completing-read
|
||||
(if v
|
||||
(if (user-variable-p v)
|
||||
(format "Set variable (default %s): " v)
|
||||
"Set variable: ")
|
||||
obarray 'user-variable-p t))
|
||||
|
Loading…
Reference in New Issue
Block a user