aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2002-08-05 20:07:12 +0000
committerJohn Wiegley2002-08-05 20:07:12 +0000
commitd86e0c59ecb79289fc77f78e9888920d58176566 (patch)
treec20081eb2294aa9e328411a4deb20387fb91239b
parent86d98c330d16dbee063ce64e63cfa4f08c17ec27 (diff)
downloademacs-d86e0c59ecb79289fc77f78e9888920d58176566.tar.gz
emacs-d86e0c59ecb79289fc77f78e9888920d58176566.zip
(pcomplete-entries): Don't set `above-cutoff' to a value unless
pcomplete-cycle-cutoff-length is non-nil.
-rw-r--r--lisp/pcomplete.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index 9a1403cc104..cde0f07064f 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -735,8 +735,9 @@ component, DEFAULT-DIRECTORY is used as the basis for completion."
735 (string-match pcomplete-dir-ignore file)) 735 (string-match pcomplete-dir-ignore file))
736 (and pcomplete-file-ignore 736 (and pcomplete-file-ignore
737 (string-match pcomplete-file-ignore file)))))))) 737 (string-match pcomplete-file-ignore file))))))))
738 (setq above-cutoff (> (length completions) 738 (setq above-cutoff (and pcomplete-cycle-cutoff-length
739 pcomplete-cycle-cutoff-length)) 739 (> (length completions)
740 pcomplete-cycle-cutoff-length)))
740 (sort completions 741 (sort completions
741 (function 742 (function
742 (lambda (l r) 743 (lambda (l r)