diff options
| author | Lars Ingebrigtsen | 2019-07-13 06:26:55 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-13 06:26:55 +0200 |
| commit | ea75c1a78bf6c622f584fd900cb64644337c1ac7 (patch) | |
| tree | 8459756f5e1365477c89aa0108a7b3ec090dc5df | |
| parent | a249b1fa332a2d2c28c304fba23a670a24174ba5 (diff) | |
| download | emacs-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.el | 7 |
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 | |||
| 8008 | any :set property that the variable might have (if you want that, use | 8008 | any :set property that the variable might have (if you want that, use |
| 8009 | \\[customize-set-variable] instead). | 8009 | \\[customize-set-variable] instead). |
| 8010 | 8010 | ||
| 8011 | With a prefix argument, set VARIABLE to VALUE buffer-locally." | 8011 | With a prefix argument, set VARIABLE to VALUE buffer-locally. |
| 8012 | |||
| 8013 | When called interactively, the user is prompted for VARIABLE and | ||
| 8014 | then VALUE. The current value of VARIABLE will be put in the | ||
| 8015 | minibuffer history so that it can be accessed with `M-n', which | ||
| 8016 | makes 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) |