1
0
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:
Richard M. Stallman 1997-04-01 22:09:02 +00:00
parent 5e78e475d4
commit 2b98929656

View File

@ -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))