GNU bug report logs -
#11839
teach some url code about .xz files
Previous Next
Reported by: stittl <at> cuug.ab.ca (Liam Stitt)
Date: Mon, 2 Jul 2012 02:57:02 UTC
Severity: normal
Done: Chong Yidong <cyd <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 11839 in the body.
You can then email your comments to 11839 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11839
; Package
emacs
.
(Mon, 02 Jul 2012 02:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
stittl <at> cuug.ab.ca (Liam Stitt)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 02 Jul 2012 02:57:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi. The code in lisp/url knows about .gz and .bz2 files, but not about the
more recent .xz variety. These two trivial patches correct this:
*** url-file.el~ 2012-01-16 02:12:46.000000000 -0700
--- url-file.el 2012-07-01 20:26:10.000000000 -0600
*************** can do automatic decompression for them,
*** 41,47 ****
'foo.gz' exists, even though the FTP server would happily serve it up
to them."
(let ((scratch nil)
! (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2"))
(found nil))
(while (and compressed-extensions (not found))
(if (file-exists-p (setq scratch (concat fname (pop compressed-extensions))))
--- 41,47 ----
'foo.gz' exists, even though the FTP server would happily serve it up
to them."
(let ((scratch nil)
! (compressed-extensions '("" ".gz" ".z" ".Z" ".bz2" ".xz"))
(found nil))
(while (and compressed-extensions (not found))
(if (file-exists-p (setq scratch (concat fname (pop compressed-extensions))))
*************** to them."
*** 178,183 ****
--- 178,184 ----
(\.uue "x-uuencoded")
(\.hqx "x-hqx")
(\.bz2 "x-bzip2")
+ (\.xz "x-xz")
(otherwise nil)))
(if (file-directory-p filename)
*** url-vars.el~ 2012-07-01 19:48:37.000000000 -0600
--- url-vars.el 2012-07-01 20:25:46.000000000 -0600
*************** variable."
*** 152,158 ****
(".uue" . "x-uuencoded")
(".hqx" . "x-hqx")
(".Z" . "x-compress")
! (".bz2" . "x-bzip2"))
"An alist of file extensions and appropriate content-transfer-encodings."
:type '(repeat (cons :format "%v"
(string :tag "Extension")
--- 152,159 ----
(".uue" . "x-uuencoded")
(".hqx" . "x-hqx")
(".Z" . "x-compress")
! (".bz2" . "x-bzip2")
! (".xz" . "x-xz"))
"An alist of file extensions and appropriate content-transfer-encodings."
:type '(repeat (cons :format "%v"
(string :tag "Extension")
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11839
; Package
emacs
.
(Thu, 27 Sep 2012 07:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 11839 <at> debbugs.gnu.org (full text, mbox):
Liam Stitt wrote:
> Hi. The code in lisp/url knows about .gz and .bz2 files, but not about the
> more recent .xz variety. These two trivial patches correct this:
Thanks. This seems reasonable, but I have no idea what this code is for
(url-file-find-possibly-compressed-file etc), so I cannot test this.
Can you give an example of how it can be used?
Also, doesn't this line of url-file:
(setq uncompressed-filename
(if (string-match "\\.\\(gz\\|Z\\|z\\)$" filename)
(substring filename 0 (match-beginning 0)) filename))
need bz2 etc adding?
(Also I feel like lists of compressed file extensions are being
replicated in several places in Emacs: here in url-file,
dired-compress-file-suffixes, jka-compr-compression-info-list,
ibuffer-compressed-file-name-regexp, tags-compression-info-list, ...)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11839
; Package
emacs
.
(Sat, 13 Oct 2012 10:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 11839 <at> debbugs.gnu.org (full text, mbox):
stittl <at> cuug.ab.ca (Liam Stitt) writes:
> Hi. The code in lisp/url knows about .gz and .bz2 files, but not
> about the more recent .xz variety. These two trivial patches correct
> this:
Thanks, committed.
bug closed, send any further explanations to
11839 <at> debbugs.gnu.org and stittl <at> cuug.ab.ca (Liam Stitt)
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 13 Oct 2012 10:54:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 10 Nov 2012 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 123 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.