[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d09464e5048: Don't always toggle a choice when prompting
From: |
Eli Zaretskii |
Subject: |
master d09464e5048: Don't always toggle a choice when prompting |
Date: |
Sat, 22 Jul 2023 08:58:06 -0400 (EDT) |
branch: master
commit d09464e50482a792cc11c20916167d3f62637c2d
Author: Mauro Aranda <maurooaranda@gmail.com>
Commit: Eli Zaretskii <eliz@gnu.org>
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d09464e5048: Don't always toggle a choice when prompting,
Eli Zaretskii <=