unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
@ 2009-11-18  8:58 ` Sven Joachim
  2009-11-19  7:42   ` Glenn Morris
  2009-11-23  0:40   ` bug#4953: marked as done (23.1.50; Dired does not deal well with xz-compressed files) Emacs bug Tracking System
  0 siblings, 2 replies; 6+ messages in thread
From: Sven Joachim @ 2009-11-18  8:58 UTC (permalink / raw)
  To: emacs-pretest-bug

While finding xz-compressed files is handled transparently in Emacs, the
same cannot be said about their support (or rather, lack thereof) in
Dired.  Two examples:

- dired-do-compress on file.xz produces file.xz.gz instead of file

- dired-do-shell-command does not offer anything for file.tar.xz (with
  GNU tar 1.22, just "tar xf" unpacks it, older versions may need the
  option --use-compress-program=xz).


In GNU Emacs 23.1.50.3 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-17 on turtle
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure  '--build=i486-pc-linux-gnu' 'build_alias=i486-pc-linux-gnu''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x k <return> C-x d <M-backspace> <M-backspace> <M-backspace> 
<return> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> Z y Z y g M-x r e p o r t - e 
m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Compress or uncompress coreutils-8.0.128-630f.tar.xz? (y or n) 
Compressing /usr/local/src/coreutils-8.0.128-630f.tar.xz...done
Compress or uncompress: 1 file.
Compress or uncompress coreutils-8.0.128-630f.tar.xz.gz? (y or n) 
Uncompressing /usr/local/src/coreutils-8.0.128-630f.tar.xz.gz...done
Compress or uncompress: 1 file.

Load-path shadows:
None found.

Features:
(shadow mail-extr message ecomplete rfc822 mml easymenu mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug sendmail dired-aux dired
regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face text-properties overlay md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind font-render-setting gtk x-toolkit x
multi-tty emacs)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
  2009-11-18  8:58 ` bug#4953: 23.1.50; Dired does not deal well with xz-compressed files Sven Joachim
@ 2009-11-19  7:42   ` Glenn Morris
  2009-11-19  7:55     ` Sven Joachim
  2009-11-23  0:40   ` bug#4953: marked as done (23.1.50; Dired does not deal well with xz-compressed files) Emacs bug Tracking System
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-11-19  7:42 UTC (permalink / raw)
  To: Sven Joachim; +Cc: 4953

Sven Joachim wrote:

> - dired-do-compress on file.xz produces file.xz.gz instead of file

OK, I added an unxz entry to dired-compress-file-suffixes.

> - dired-do-shell-command does not offer anything for file.tar.xz

I don't know what this means. M-x dired-do-shell-command for
foo.tar.gz doesn't seem to do anything special.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
  2009-11-19  7:42   ` Glenn Morris
@ 2009-11-19  7:55     ` Sven Joachim
  2009-11-21 21:56       ` Sven Joachim
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Joachim @ 2009-11-19  7:55 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 4953

On 2009-11-19 08:42 +0100, Glenn Morris wrote:

> Sven Joachim wrote:
>
>> - dired-do-compress on file.xz produces file.xz.gz instead of file
>
> OK, I added an unxz entry to dired-compress-file-suffixes.

Thanks.

>> - dired-do-shell-command does not offer anything for file.tar.xz
>
> I don't know what this means. M-x dired-do-shell-command for
> foo.tar.gz doesn't seem to do anything special.

You need to load dired-x first (Info "(dired-x) Shell Command Guessing").

Sven





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
  2009-11-19  7:55     ` Sven Joachim
@ 2009-11-21 21:56       ` Sven Joachim
  2009-11-21 22:05         ` Processed: " Emacs bug Tracking System
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Joachim @ 2009-11-21 21:56 UTC (permalink / raw)
  To: 4953

tags 4953 + patch
thanks

On 2009-11-19 08:55 +0100, Sven Joachim wrote:

> On 2009-11-19 08:42 +0100, Glenn Morris wrote:
>
>> Sven Joachim wrote:
>>
>>> - dired-do-shell-command does not offer anything for file.tar.xz
>>
>> I don't know what this means. M-x dired-do-shell-command for
>> foo.tar.gz doesn't seem to do anything special.
>
> You need to load dired-x first (Info "(dired-x) Shell Command Guessing").

Here is a patch that adds support for xz-compressed files to
dired-guess-shell-alist-default, emulating the case of bzip2-compressed
files:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 4da19f6..dce8685 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -1017,6 +1017,16 @@ dired."
 	 ;; Optional decompression.
 	 "bunzip2")
 
+   ;; xz'ed archives
+   (list "\\.t\\(ar\\.\\)?xz$"
+	 "unxz -c * | tar xvf -"
+	 ;; Extract files into a separate subdirectory
+	 '(concat "mkdir " (file-name-sans-extension file)
+		  "; unxz -c * | tar -C "
+		  (file-name-sans-extension file) " -xvf -")
+	 ;; Optional decompression.
+	 "unxz")
+
    '("\\.shar\\.Z$" "zcat * | unshar")
    '("\\.shar\\.g?z$" "gunzip -qc * | unshar")
 
@@ -1098,6 +1108,7 @@ dired."
    (list "\\.g?z$" '(concat "gunzip" (if dired-guess-shell-gzip-quiet " -q")))
    (list "\\.dz$" "dictunzip")
    (list "\\.bz2$" "bunzip2")
+   (list "\\.xz$" "unxz")
    (list "\\.Z$" "uncompress"
 	 ;; Optional conversion to gzip format.
 	 '(concat "znew" (if dired-guess-shell-gzip-quiet " -q")
--8<---------------cut here---------------end--------------->8---

Suggested Changelog entry:

2009-11-21  Sven Joachim  <svenjoac@gmx.de>

	* dired-x.el (dired-guess-shell-alist-default): Support xz format.


Cheers,
       Sven





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Processed: Re: bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
  2009-11-21 21:56       ` Sven Joachim
@ 2009-11-21 22:05         ` Emacs bug Tracking System
  0 siblings, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-11-21 22:05 UTC (permalink / raw)
  To: Sven Joachim; +Cc: Emacs Bugs

Processing commands for control@emacsbugs.donarmstrong.com:

> tags 4953 + patch
Bug #4953 [emacs] 23.1.50; Dired does not deal well with xz-compressed files
Added tag(s) patch.
> thanks
Stopping processing here.

Please contact me if you need assistance.

Don Armstrong
(administrator, Emacs bugs database)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4953: marked as done (23.1.50; Dired does not deal well with xz-compressed files)
  2009-11-18  8:58 ` bug#4953: 23.1.50; Dired does not deal well with xz-compressed files Sven Joachim
  2009-11-19  7:42   ` Glenn Morris
@ 2009-11-23  0:40   ` Emacs bug Tracking System
  1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-11-23  0:40 UTC (permalink / raw)
  To: Glenn Morris

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Your message dated Sun, 22 Nov 2009 19:33:15 -0500
with message-id <ja7hti2i7o.fsf@fencepost.gnu.org>
and subject line Re: bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
has caused the Emacs bug report #4953,
regarding 23.1.50; Dired does not deal well with xz-compressed files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4953: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4953
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5280 bytes --]

From: Sven Joachim <svenjoac@gmx.de>
To: emacs-pretest-bug@gnu.org
Subject: 23.1.50; Dired does not deal well with xz-compressed files
Date: Wed, 18 Nov 2009 09:58:38 +0100
Message-ID: <87k4xop5tt.fsf@turtle.gmx.de>

While finding xz-compressed files is handled transparently in Emacs, the
same cannot be said about their support (or rather, lack thereof) in
Dired.  Two examples:

- dired-do-compress on file.xz produces file.xz.gz instead of file

- dired-do-shell-command does not offer anything for file.tar.xz (with
  GNU tar 1.22, just "tar xf" unpacks it, older versions may need the
  option --use-compress-program=xz).


In GNU Emacs 23.1.50.3 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-17 on turtle
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure  '--build=i486-pc-linux-gnu' 'build_alias=i486-pc-linux-gnu''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x k <return> C-x d <M-backspace> <M-backspace> <M-backspace> 
<return> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> Z y Z y g M-x r e p o r t - e 
m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Compress or uncompress coreutils-8.0.128-630f.tar.xz? (y or n) 
Compressing /usr/local/src/coreutils-8.0.128-630f.tar.xz...done
Compress or uncompress: 1 file.
Compress or uncompress coreutils-8.0.128-630f.tar.xz.gz? (y or n) 
Uncompressing /usr/local/src/coreutils-8.0.128-630f.tar.xz.gz...done
Compress or uncompress: 1 file.

Load-path shadows:
None found.

Features:
(shadow mail-extr message ecomplete rfc822 mml easymenu mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc
time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1
hex-util hashcash mail-utils emacsbug sendmail dired-aux dired
regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button
minibuffer faces cus-face text-properties overlay md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind font-render-setting gtk x-toolkit x
multi-tty emacs)


[-- Attachment #3: Type: message/rfc822, Size: 1668 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: 4953-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4953: 23.1.50; Dired does not deal well with xz-compressed files
Date: Sun, 22 Nov 2009 19:33:15 -0500
Message-ID: <ja7hti2i7o.fsf@fencepost.gnu.org>


Thanks; applied.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-23  0:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ja7hti2i7o.fsf@fencepost.gnu.org>
2009-11-18  8:58 ` bug#4953: 23.1.50; Dired does not deal well with xz-compressed files Sven Joachim
2009-11-19  7:42   ` Glenn Morris
2009-11-19  7:55     ` Sven Joachim
2009-11-21 21:56       ` Sven Joachim
2009-11-21 22:05         ` Processed: " Emacs bug Tracking System
2009-11-23  0:40   ` bug#4953: marked as done (23.1.50; Dired does not deal well with xz-compressed files) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).