From: "Joel Bion" <jpbion@westvi.com>
To: 12382@debbugs.gnu.org
Subject: bug#12382: Trivial change to have the 'tar' command recognize .xz files for auto-completion in the old shell mode
Date: Fri, 7 Sep 2012 15:12:29 -0700 [thread overview]
Message-ID: <b11043151a98183627d3282f59c1c027.squirrel@smtp.thesiblingrevelry.net> (raw)
DESCRIPTION:
Old shell mode (not E-Shell, but 'M-x shell') does not recognize '.xz' as
a valid tarfile extension. This grows in annoyance as more and more
archives come in this format. This simple patch fixes the problem. The
change itself is five characters big; the rest is NEWS and ChangeLog.
-Joel
DIFFS:
=== modified file 'etc/ChangeLog'
*** etc/ChangeLog 2012-09-04 18:28:39 +0000
--- etc/ChangeLog 2012-09-07 22:06:16 +0000
***************
*** 1,3 ****
--- 1,12 ----
+ 2012-09-07 Joel Bion <jpbion@westvi.com>
+
+ Add 'xz' as part of valid tarfile regexp; this enables
+ nice things, such as the use of '.xz' filename
+ completion with the 'tar' command in the old shell.
+ * pcmpl-gnu.el: The file with the change.
+ * NEWS: Document the change.
+
+
2012-09-04 Paul Eggert <eggert@cs.ucla.edu>
Give more-useful info on a fatal error (Bug#12328).
=== modified file 'etc/NEWS'
*** etc/NEWS 2012-09-07 10:26:46 +0000
--- etc/NEWS 2012-09-07 22:06:01 +0000
*************** just removing them, as done by `yank-exc
*** 182,187 ****
--- 182,190 ----
delete-trailing-whitespace command should delete trailing lines at the
end of the buffer. It defaults to t.
+
+ ** GNU Emacs old shell 'M-x shell' now supports the .xz extention for
+ tar archives used with the 'tar' command.
+
** Search changes
*** Global `M-s _' starts a symbol (identifier) incremental search,
=== modified file 'lisp/pcmpl-gnu.el'
*** lisp/pcmpl-gnu.el 2012-01-24 18:10:15 +0000
--- lisp/pcmpl-gnu.el 2012-09-07 21:57:41 +0000
***************
*** 128,134 ****
(pcomplete-uniqify-list rules))))
(defcustom pcmpl-gnu-tarfile-regexp
! "\\.t\\(ar\\(\\.\\(gz\\|bz2\\|Z\\)\\)?\\|gz\\|a[zZ]\\|z2\\)\\'"
"A regexp which matches any tar archive."
:type 'regexp
:group 'pcmpl-gnu)
--- 128,134 ----
(pcomplete-uniqify-list rules))))
(defcustom pcmpl-gnu-tarfile-regexp
! "\\.t\\(ar\\(\\.\\(gz\\|bz2\\|Z\\|xz\\)\\)?\\|gz\\|a[zZ]\\|z2\\)\\'"
"A regexp which matches any tar archive."
:type 'regexp
:group 'pcmpl-gnu)
next reply other threads:[~2012-09-07 22:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 22:12 Joel Bion [this message]
2012-09-08 1:02 ` bug#12382: Trivial change to have the 'tar' command recognize .xz files for auto-completion in the old shell mode Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b11043151a98183627d3282f59c1c027.squirrel@smtp.thesiblingrevelry.net \
--to=jpbion@westvi.com \
--cc=12382@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.