GNU bug report logs - #12382
Trivial change to have the 'tar' command recognize .xz files for auto-completion in the old shell mode

Previous Next

Package: emacs;

Reported by: jpbion <at> westvi.com

Date: Fri, 7 Sep 2012 23:03:01 UTC

Severity: normal

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12382 in the body.
You can then email your comments to 12382 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12382; Package emacs. (Fri, 07 Sep 2012 23:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jpbion <at> westvi.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Sep 2012 23:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Joel Bion" <jpbion <at> westvi.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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
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 <at> 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 <at> 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)





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sat, 08 Sep 2012 01:03:02 GMT) Full text and rfc822 format available.

Notification sent to jpbion <at> westvi.com:
bug acknowledged by developer. (Sat, 08 Sep 2012 01:03:02 GMT) Full text and rfc822 format available.

Message #10 received at 12382-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12382-done <at> debbugs.gnu.org
Subject: Re: bug#12382: Trivial change to have the 'tar' command recognize .xz
	files for auto-completion in the old shell mode
Date: Fri, 07 Sep 2012 21:02:17 -0400
Version: 24.3

Thanks; applied to emacs-24 branch.
It's not worth a NEWS entry, but it can have a :version bump in the
defcustom.

(I have the feeling this tarfile-extension information is being stored
in multiple places in Emacs.)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 06 Oct 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 212 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.