]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow completion wrapping in minibuffer completion navigation commands
authorJuri Linkov <juri@linkov.net>
Tue, 5 Apr 2022 20:08:48 +0000 (23:08 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 5 Apr 2022 20:08:48 +0000 (23:08 +0300)
* lisp/minibuffer.el (minibuffer-previous-completion)
(minibuffer-next-completion): Don't set completion-wrap-movement.

lisp/minibuffer.el

index 8a0e15ce05d25b5efb3629607e86ad8e02446423..c79c5a7a5d6f412dadfce9d93d6a682f64e693e7 100644 (file)
@@ -4360,19 +4360,17 @@ and execute the forms."
   "Run `previous-completion' from the minibuffer in its completions window."
   (interactive "p")
   (with-minibuffer-completions-window
-    (let ((completion-wrap-movement nil))
-      (when completions-highlight-face
-        (setq-local cursor-face-highlight-nonselected-window t))
-      (previous-completion n))))
+    (when completions-highlight-face
+      (setq-local cursor-face-highlight-nonselected-window t))
+    (previous-completion n)))
 
 (defun minibuffer-next-completion (&optional n)
   "Run `next-completion' from the minibuffer in its completions window."
   (interactive "p")
   (with-minibuffer-completions-window
-    (let ((completion-wrap-movement nil))
-      (when completions-highlight-face
-        (setq-local cursor-face-highlight-nonselected-window t))
-      (next-completion n))))
+    (when completions-highlight-face
+      (setq-local cursor-face-highlight-nonselected-window t))
+    (next-completion n)))
 
 (defun minibuffer-choose-previous-completion (&optional n)
   "Run `previous-completion' from the minibuffer in its completions window.