Subject: bug#66179: 30.0.50; Missing choice in tmm-mid-prompt :type

From: Mauro Aranda <[email-masked]>
Date: Sun, 24 Sep 2023 09:31:53 -0300

tags 66179 patch
quit

Patch attached.

From 93e8966e1d6b1e9814cfa217918936119b3f0453 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Sun, 24 Sep 2023 09:31:01 -0300
Subject: [PATCH] Fix tmm-mid-prompt :type (Bug#66179)

* lisp/tmm.el (tmm-mid-prompt): Allow nil.
---
 lisp/tmm.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/tmm.el b/lisp/tmm.el
index a4058594622..b587b416a35 100644
--- a/lisp/tmm.el
+++ b/lisp/tmm.el
@@ -79,7 +79,8 @@ tmm-mid-prompt
   "String to insert between shortcut and menu item.
 If nil, there will be no shortcuts.  It should not consist only of spaces,
 or else the correct item might not be found in the `*Completions*' buffer."
-  :type 'string)
+  :type '(choice (const :tag "No shortcuts" nil)
+                 string))
 
 (defvar tmm-mb-map nil
   "A place to store minibuffer map.")
-- 
2.34.1