aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJuri Linkov2022-06-14 10:04:56 +0300
committerJuri Linkov2022-06-14 10:04:56 +0300
commite494222814585cffaafa2c7784a2e4d632b8cd2d (patch)
tree0536f85cac629c5d499a4d4ca0976df982fd7c8c /test
parent42203acd60d03feceafccbd8a63a17744ff36a36 (diff)
downloademacs-e494222814585cffaafa2c7784a2e4d632b8cd2d.tar.gz
emacs-e494222814585cffaafa2c7784a2e4d632b8cd2d.zip
* lisp/simple.el (completion-auto-wrap): Rename from completion-wrap-movement.
(next-completion): Use completion-auto-wrap. https://lists.gnu.org/archive/html/emacs-devel/2022-06/msg00139.html
Diffstat (limited to 'test')
-rw-r--r--test/lisp/minibuffer-tests.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lisp/minibuffer-tests.el b/test/lisp/minibuffer-tests.el
index 56db00a124f..ec93c8f42a5 100644
--- a/test/lisp/minibuffer-tests.el
+++ b/test/lisp/minibuffer-tests.el
@@ -383,7 +383,7 @@
383 (should (eq (current-buffer) (get-buffer "*Completions*")))))) 383 (should (eq (current-buffer) (get-buffer "*Completions*"))))))
384 384
385(ert-deftest completion-auto-wrap-test () 385(ert-deftest completion-auto-wrap-test ()
386 (let ((completion-wrap-movement nil)) 386 (let ((completion-auto-wrap nil))
387 (completing-read-with-minibuffer-setup 387 (completing-read-with-minibuffer-setup
388 '("aa" "ab" "ac") 388 '("aa" "ab" "ac")
389 (insert "a") 389 (insert "a")
@@ -397,7 +397,7 @@
397 (should (equal "ac" (get-text-property (point) 'completion--string))) 397 (should (equal "ac" (get-text-property (point) 'completion--string)))
398 (previous-completion 5) 398 (previous-completion 5)
399 (should (equal "aa" (get-text-property (point) 'completion--string))))) 399 (should (equal "aa" (get-text-property (point) 'completion--string)))))
400 (let ((completion-wrap-movement t)) 400 (let ((completion-auto-wrap t))
401 (completing-read-with-minibuffer-setup 401 (completing-read-with-minibuffer-setup
402 '("aa" "ab" "ac") 402 '("aa" "ab" "ac")
403 (insert "a") 403 (insert "a")
@@ -453,11 +453,11 @@
453 (switch-to-completions) 453 (switch-to-completions)
454 (should (equal 'highlight (get-text-property (point) 'mouse-face))) 454 (should (equal 'highlight (get-text-property (point) 'mouse-face)))
455 (should (equal "aa" (get-text-property (point) 'completion--string))) 455 (should (equal "aa" (get-text-property (point) 'completion--string)))
456 (let ((completion-wrap-movement t)) 456 (let ((completion-auto-wrap t))
457 (next-completion 3)) 457 (next-completion 3))
458 (should (equal 'highlight (get-text-property (point) 'mouse-face))) 458 (should (equal 'highlight (get-text-property (point) 'mouse-face)))
459 (should (equal "aa" (get-text-property (point) 'completion--string))) 459 (should (equal "aa" (get-text-property (point) 'completion--string)))
460 (let ((completion-wrap-movement nil)) 460 (let ((completion-auto-wrap nil))
461 (next-completion 3)) 461 (next-completion 3))
462 (should (equal 'highlight (get-text-property (point) 'mouse-face))) 462 (should (equal 'highlight (get-text-property (point) 'mouse-face)))
463 (should (equal "ac" (get-text-property (point) 'completion--string))) 463 (should (equal "ac" (get-text-property (point) 'completion--string)))