X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/142e26a72e9b8bbbec23c6bf7234e9f2544b5f89..562dd5e9532d75d18843a37a1e42a1f4398d4823:/lisp/pcmpl-gnu.el diff --git a/lisp/pcmpl-gnu.el b/lisp/pcmpl-gnu.el index d49624804f..62f5fafe2c 100644 --- a/lisp/pcmpl-gnu.el +++ b/lisp/pcmpl-gnu.el @@ -1,7 +1,8 @@ ;;; pcmpl-gnu.el --- completions for GNU project tools -;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 1999-2011 Free Software Foundation, Inc. + +;; Package: pcomplete ;; This file is part of GNU Emacs. @@ -35,7 +36,7 @@ (defcustom pcmpl-gnu-makefile-regexps '("\\`GNUmakefile" "\\`Makefile" "\\.mak\\'") - "*A list of regexps that will match Makefile names." + "A list of regexps that will match Makefile names." :type '(repeat regexp) :group 'pcmpl-gnu) @@ -102,12 +103,7 @@ (defun pcmpl-gnu-makefile-names () "Return a list of possible makefile names." - (let ((names (list t)) - (reg pcmpl-gnu-makefile-regexps)) - (while reg - (nconc names (pcomplete-entries (car reg))) - (setq reg (cdr reg))) - (cdr names))) + (pcomplete-entries (mapconcat 'identity pcmpl-gnu-makefile-regexps "\\|"))) (defun pcmpl-gnu-make-rule-names () "Return a list of possible make rule names in MAKEFILE." @@ -128,12 +124,16 @@ (defcustom pcmpl-gnu-tarfile-regexp "\\.t\\(ar\\(\\.\\(gz\\|bz2\\|Z\\)\\)?\\|gz\\|a[zZ]\\|z2\\)\\'" - "*A regexp which matches any tar archive." + "A regexp which matches any tar archive." :type 'regexp :group 'pcmpl-gnu) (defvar pcmpl-gnu-tar-buffer nil) +;; Only used in tar-mode buffers. +(defvar tar-parse-info) +(declare-function tar-header-name "tar-mode" t t) + ;;;###autoload (defun pcomplete/tar () "Completion for the GNU tar utility." @@ -306,5 +306,4 @@ ;;;###autoload (defalias 'pcomplete/gdb 'pcomplete/xargs) -;; arch-tag: 06d2b429-dcb1-4a57-84e1-f70d87781183 ;;; pcmpl-gnu.el ends here