Commit a343d218 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/simple.el (set-variable): Use read-from-minibuffer.

Fixes: debbugs:14710
parent a49ff80c
2013-06-26 Stefan Monnier <monnier@iro.umontreal.ca>
* simple.el (set-variable): Use read-from-minibuffer (bug#14710).
* emacs-lisp/package.el (package--add-to-archive-contents): Add missing
nil terminate the loop (bug#14718).
......
......@@ -6448,10 +6448,10 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
(call-interactively `(lambda (arg)
(interactive ,prop)
arg))
(read
(read-string prompt nil
'set-variable-value-history
(format "%S" (symbol-value var))))))))
(read-from-minibuffer prompt nil
read-expression-map t
'set-variable-value-history
(format "%S" (symbol-value var)))))))
(list var val current-prefix-arg)))
(and (custom-variable-p variable)
......
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