From: Stefan Monnier Date: Fri, 2 Dec 2011 14:44:19 +0000 (-0500) Subject: * lisp/pcmpl-gnu.el (pcomplete/tar): large-file-warn-threshold can be nil. X-Git-Tag: emacs-pretest-24.0.93~232^2~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=99c79fee5189adb5c4fe52fab4cc1e9f55d2a6bf;p=emacs.git * lisp/pcmpl-gnu.el (pcomplete/tar): large-file-warn-threshold can be nil. Fixes: debbugs:9160 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c14312209b6..ef99c31d1e8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-12-02 Stefan Monnier + * pcmpl-gnu.el (pcomplete/tar): large-file-warn-threshold can be nil + (bug#9160). + * dired-aux.el (dired-query): Don't assume help-char is modifier-free (bug#10191). 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)