From ea75c1a78bf6c622f584fd900cb64644337c1ac7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 13 Jul 2019 06:26:55 +0200 Subject: [PATCH] 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). --- lisp/simple.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index 2768bd4a75e..00265ece71e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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) -- 2.39.2