diff --git a/lisp/simple.el b/lisp/simple.el index a25c33447c5..2c9a39bce4e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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))