summaryrefslogtreecommitdiff
path: root/lisp/pcmpl-gnu.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2011-12-02 09:44:19 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2011-12-02 09:44:19 -0500
commit99c79fee5189adb5c4fe52fab4cc1e9f55d2a6bf (patch)
tree240738a58a0e5fbd9f18feec9c5db74d236fad0d /lisp/pcmpl-gnu.el
parent6131ba7f188a4f205d1b7ce9d6bbf657be7dceae (diff)
downloademacs-99c79fee5189adb5c4fe52fab4cc1e9f55d2a6bf.tar.gz
* lisp/pcmpl-gnu.el (pcomplete/tar): large-file-warn-threshold can be nil.
Fixes: debbugs:9160
Diffstat (limited to 'lisp/pcmpl-gnu.el')
-rw-r--r--lisp/pcmpl-gnu.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el
index b2c8de6ec2f..608a9dc2e88 100644
--- a/lisp/pcmpl-gnu.el
+++ b/lisp/pcmpl-gnu.el
@@ -309,7 +309,8 @@
(let* ((fa (file-attributes (pcomplete-arg 1)))
(size (nth 7 fa)))
(and (numberp size)
- (< size large-file-warning-threshold))))
+ (or (null large-file-warning-threshold)
+ (< size large-file-warning-threshold)))))
(let ((file (pcomplete-arg 1)))
(completion-table-dynamic
(lambda (_string)