]> git.eshelyaron.com Git - emacs.git/commitdiff
; Adjust 'read-multiple-choice' test
authorEshel Yaron <me@eshelyaron.com>
Thu, 28 Mar 2024 17:11:15 +0000 (18:11 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 28 Mar 2024 17:11:15 +0000 (18:11 +0100)
lisp/emacs-lisp/rmc.el
test/lisp/emacs-lisp/rmc-tests.el

index daf40c63050eb1f97310beec0638b44cc6deb628..11ccc99ccb2035482d1eb3e7ede0e618a831dff5 100644 (file)
@@ -263,6 +263,7 @@ Usage example:
                       (cons (capitalize (cadr elem)) elem))
                     choices)))
           (while (not result)
+            (setq invalid-choice nil)
             (when tchar
               (pcase (lookup-key query-replace-map (vector tchar) t)
                 ('help
index b1fbcd25bd067fb14701a1b096f1a8a3d61ebe3c..9b494918d7ce741dff689e3fab93b6729d4d6067 100644 (file)
@@ -67,7 +67,7 @@
                      (read-multiple-choice "Do it? " '((?y "yes") (?n "no"))))))))
 
 (ert-deftest test-read-multiple-choice-help ()
-  (let ((chars '(?o ?a))
+  (let ((chars '(?? ?a))
         help)
     (cl-letf* (((symbol-function #'read-event)
                 (lambda ()