From: Lars Ingebrigtsen Date: Sun, 6 Jun 2021 11:21:25 +0000 (+0200) Subject: Clarify boolean widget prompt X-Git-Tag: emacs-28.0.90~2177 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0f9d8c9381f12a5ddcbf749a8e8238d7f9080497;p=emacs.git Clarify boolean widget prompt * lisp/wid-edit.el (widget-boolean-prompt-value): Clarify prompt (bug#43593). --- diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 49baab69199..9a34dc8d438 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -4011,7 +4011,10 @@ is inline." (defun widget-boolean-prompt-value (_widget prompt _value _unbound) ;; Toggle a boolean. - (y-or-n-p prompt)) + ;; Say what "y" means. A la + ;; "Set customized value for bar to true: (y or n)" + (y-or-n-p (concat (replace-regexp-in-string ": ?\\'" "" prompt) + " true: "))) ;;; The `color' Widget.