From d09464e50482a792cc11c20916167d3f62637c2d Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Sun, 16 Jul 2023 09:22:11 -0300 Subject: [PATCH] Don't always toggle a choice when prompting * lisp/wid-edit.el (widget-choice-prompt-value): Respect the value of widget-choice-toggle. (Bug#60712) --- lisp/wid-edit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index b9291af2bd5..88f8a362521 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -3988,7 +3988,8 @@ current choice is inline." nil) ((= (length args) 1) (nth 0 args)) - ((and (= (length args) 2) + ((and widget-choice-toggle + (= (length args) 2) (memq old args)) (if (eq old (nth 0 args)) (nth 1 args) -- 2.39.5