1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-06 20:49:33 +00:00

Mention M-n' for VALUE in the set-variable' command

* lisp/simple.el (set-variable): Mention that the current variable
is accessible in `M-n' (bug#36586).
This commit is contained in:
Lars Ingebrigtsen 2019-07-13 06:26:55 +02:00
parent a249b1fa33
commit ea75c1a78b

View File

@ -8008,7 +8008,12 @@ For a variable defined with `defcustom', it does not pay attention to
any :set property that the variable might have (if you want that, use
\\[customize-set-variable] instead).
With a prefix argument, set VARIABLE to VALUE buffer-locally."
With a prefix argument, set VARIABLE to VALUE buffer-locally.
When called interactively, the user is prompted for VARIABLE and
then VALUE. The current value of VARIABLE will be put in the
minibuffer history so that it can be accessed with `M-n', which
makes it easier to edit it."
(interactive
(let* ((default-var (variable-at-point))
(var (if (custom-variable-p default-var)