aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-13 06:26:55 +0200
committerLars Ingebrigtsen2019-07-13 06:26:55 +0200
commitea75c1a78bf6c622f584fd900cb64644337c1ac7 (patch)
tree8459756f5e1365477c89aa0108a7b3ec090dc5df
parenta249b1fa332a2d2c28c304fba23a670a24174ba5 (diff)
downloademacs-ea75c1a78bf6c622f584fd900cb64644337c1ac7.tar.gz
emacs-ea75c1a78bf6c622f584fd900cb64644337c1ac7.zip
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).
-rw-r--r--lisp/simple.el7
1 files changed, 6 insertions, 1 deletions
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
8008any :set property that the variable might have (if you want that, use 8008any :set property that the variable might have (if you want that, use
8009\\[customize-set-variable] instead). 8009\\[customize-set-variable] instead).
8010 8010
8011With a prefix argument, set VARIABLE to VALUE buffer-locally." 8011With a prefix argument, set VARIABLE to VALUE buffer-locally.
8012
8013When called interactively, the user is prompted for VARIABLE and
8014then VALUE. The current value of VARIABLE will be put in the
8015minibuffer history so that it can be accessed with `M-n', which
8016makes it easier to edit it."
8012 (interactive 8017 (interactive
8013 (let* ((default-var (variable-at-point)) 8018 (let* ((default-var (variable-at-point))
8014 (var (if (custom-variable-p default-var) 8019 (var (if (custom-variable-p default-var)