From 0f9d8c9381f12a5ddcbf749a8e8238d7f9080497 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 6 Jun 2021 13:21:25 +0200 Subject: [PATCH] Clarify boolean widget prompt * lisp/wid-edit.el (widget-boolean-prompt-value): Clarify prompt (bug#43593). --- lisp/wid-edit.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.39.5