diff options
| -rw-r--r-- | lisp/simple.el | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 3b7913ff753..a25c33447c5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2979,15 +2979,14 @@ If you want VALUE to be a string, you must surround it with doublequotes. | |||
| 2979 | If VARIABLE has a `variable-interactive' property, that is used as if | 2979 | If VARIABLE has a `variable-interactive' property, that is used as if |
| 2980 | it were the arg to `interactive' (which see) to interactively read the value." | 2980 | it were the arg to `interactive' (which see) to interactively read the value." |
| 2981 | (interactive | 2981 | (interactive |
| 2982 | (let* ((var (let ((v (variable-at-point)) | 2982 | (let* ((v (variable-at-point)) |
| 2983 | (enable-recursive-minibuffers t) | 2983 | (enable-recursive-minibuffers t) |
| 2984 | val) | 2984 | (val (completing-read |
| 2985 | (setq val (completing-read (if v | 2985 | (if v |
| 2986 | (format "Set variable (default %s): " v) | 2986 | (format "Set variable (default %s): " v) |
| 2987 | "Set variable: ") | 2987 | "Set variable: ") |
| 2988 | obarray 'boundp t)) | 2988 | obarray 'user-variable-p t)) |
| 2989 | (if (equal val "") | 2989 | (var (if (equal val "") v (intern val))) |
| 2990 | v (intern val)))) | ||
| 2991 | (minibuffer-help-form | 2990 | (minibuffer-help-form |
| 2992 | '(funcall myhelp)) | 2991 | '(funcall myhelp)) |
| 2993 | (myhelp | 2992 | (myhelp |