branch: externals/vertico
commit 93f15873d7d6244d72202c5dd7724a030a2d5b9a
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Revert "vertico-mode: Do not advise completing-read-multiple on Emacs 31"
    
    This reverts commit 8f75f18b01ce9baa392469104a3c7dd08c3a608d.
---
 vertico.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/vertico.el b/vertico.el
index 14d0cd5970..1179548064 100644
--- a/vertico.el
+++ b/vertico.el
@@ -713,13 +713,10 @@ When the prefix argument is 0, the group order is reset."
 (define-minor-mode vertico-mode
   "VERTical Interactive COmpletion."
   :global t :group 'vertico
-  (if vertico-mode
-      (advice-add #'completing-read-default :around #'vertico--advice)
-    (advice-remove #'completing-read-default #'vertico--advice))
-  (static-if (< emacs-major-version 31)
+  (dolist (fun '(completing-read-default completing-read-multiple))
     (if vertico-mode
-        (advice-add #'completing-read-multiple :around #'vertico--advice)
-      (advice-remove #'completing-read-multiple #'vertico--advice))))
+        (advice-add fun :around #'vertico--advice)
+      (advice-remove fun #'vertico--advice))))
 
 (defun vertico--command-p (_sym buffer)
   "Return non-nil if Vertico is active in BUFFER."

Reply via email to