Allow pcomplete/gzip to complete on files in subdirectories
* lisp/pcmpl-gnu.el (pcmpl-gnu-zipped-files): Allow "gzip" to complete on files in subdirectories. (Bug#30271)
This commit is contained in:
parent
cfc70e51c2
commit
25a57640c5
1 changed files with 7 additions and 6 deletions
|
@ -67,12 +67,13 @@
|
|||
nil
|
||||
(function
|
||||
(lambda (entry)
|
||||
(when (and (file-readable-p entry)
|
||||
(file-regular-p entry))
|
||||
(let ((zipped (string-match "\\.\\(t?gz\\|\\(ta\\)?Z\\)\\'"
|
||||
entry)))
|
||||
(or (and unzip-p zipped)
|
||||
(and (not unzip-p) (not zipped)))))))))
|
||||
(or (file-directory-p entry)
|
||||
(when (and (file-readable-p entry)
|
||||
(file-regular-p entry))
|
||||
(let ((zipped (string-match "\\.\\(t?gz\\|\\(ta\\)?Z\\)\\'"
|
||||
entry)))
|
||||
(or (and unzip-p zipped)
|
||||
(and (not unzip-p) (not zipped))))))))))
|
||||
|
||||
;;;###autoload
|
||||
(defun pcomplete/bzip2 ()
|
||||
|
|
Loading…
Add table
Reference in a new issue