aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2018-10-25 10:55:53 +0200
committerAndreas Schwab2018-10-25 11:04:34 +0200
commit71a2d509f9d2350c6aacfeed24e1e9d8c7fdfebe (patch)
treebd224717b134f7e4d7ea99c3cdbd1b10a874e384
parent7e8eee60a9dbb0c59cf26f237b21efe7fd1043c9 (diff)
downloademacs-71a2d509f9d2350c6aacfeed24e1e9d8c7fdfebe.tar.gz
emacs-71a2d509f9d2350c6aacfeed24e1e9d8c7fdfebe.zip
Fix minibuffer-help-form for lexical binding
* lisp/simple.el (set-variable): Substitute var into minibuffer-help-form. * lisp/cus-edit.el (custom-prompt-variable): Likewise.
-rw-r--r--lisp/cus-edit.el2
-rw-r--r--lisp/simple.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 3ede483dade..33efdd92539 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -917,7 +917,7 @@ the current value of the variable, otherwise `symbol-value' is used.
917If optional COMMENT argument is non-nil, also prompt for a comment and return 917If optional COMMENT argument is non-nil, also prompt for a comment and return
918it as the third element in the list." 918it as the third element in the list."
919 (let* ((var (read-variable prompt-var)) 919 (let* ((var (read-variable prompt-var))
920 (minibuffer-help-form '(describe-variable var)) 920 (minibuffer-help-form `(describe-variable ',var))
921 (val 921 (val
922 (let ((prop (get var 'variable-interactive)) 922 (let ((prop (get var 'variable-interactive))
923 (type (get var 'custom-type)) 923 (type (get var 'custom-type))
diff --git a/lisp/simple.el b/lisp/simple.el
index 8bbafe49d32..ba39a49a44e 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -7930,7 +7930,7 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
7930 (read-variable (format "Set variable (default %s): " default-var) 7930 (read-variable (format "Set variable (default %s): " default-var)
7931 default-var) 7931 default-var)
7932 (read-variable "Set variable: "))) 7932 (read-variable "Set variable: ")))
7933 (minibuffer-help-form '(describe-variable var)) 7933 (minibuffer-help-form `(describe-variable ',var))
7934 (prop (get var 'variable-interactive)) 7934 (prop (get var 'variable-interactive))
7935 (obsolete (car (get var 'byte-obsolete-variable))) 7935 (obsolete (car (get var 'byte-obsolete-variable)))
7936 (prompt (format "Set %s %s to value: " var 7936 (prompt (format "Set %s %s to value: " var