From: John Wiegley Date: Mon, 5 Aug 2002 20:07:12 +0000 (+0000) Subject: (pcomplete-entries): Don't set `above-cutoff' to a value unless X-Git-Tag: ttn-vms-21-2-B4~13753 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d86e0c59ecb79289fc77f78e9888920d58176566;p=emacs.git (pcomplete-entries): Don't set `above-cutoff' to a value unless pcomplete-cycle-cutoff-length is non-nil. --- 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." (string-match pcomplete-dir-ignore file)) (and pcomplete-file-ignore (string-match pcomplete-file-ignore file)))))))) - (setq above-cutoff (> (length completions) - pcomplete-cycle-cutoff-length)) + (setq above-cutoff (and pcomplete-cycle-cutoff-length + (> (length completions) + pcomplete-cycle-cutoff-length))) (sort completions (function (lambda (l r)