]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-variable): Suggest only valid user variable.
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Apr 1997 22:09:02 +0000 (22:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Apr 1997 22:09:02 +0000 (22:09 +0000)
lisp/simple.el

index a25c33447c577ad088721b6e25a65f9a0f0a4c1d..2c9a39bce4e7e21ef8984c7c536d151191011221 100644 (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))