Commit 2b989296 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(set-variable): Suggest only valid user variable.

parent 5e78e475
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment