From: Glenn Morris <rgm@gnu.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 13006@debbugs.gnu.org, Karl Berry <karl@freefriends.org>
Subject: bug#13006: recognizing compressed files with arbitrary names
Date: Tue, 27 Nov 2012 13:41:11 -0500 [thread overview]
Message-ID: <i9wqx6lwhk.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <mvmsj7vfmzs.fsf@g208.suse.de> (Andreas Schwab's message of "Tue, 27 Nov 2012 09:50:31 +0100")
Andreas Schwab wrote:
> This is a regression from Emacs 23. It should disregard the backup
> suffix when matching the extension.
Presumably the 2010-12-08 change to jka-compr-compression-info-list.
(There is a comment above jka-compr-compression-info-list which was
ignored and no longer applies. Also the :version was not bumped.)
Anyway, this seems to fix the immediate problem:
*** lisp/jka-cmpr-hook.el 2012-01-29 17:41:43 +0000
--- lisp/jka-cmpr-hook.el 2012-11-27 18:35:37 +0000
***************
*** 109,114 ****
--- 109,115 ----
"Return information about the compression scheme of FILENAME.
The determination as to which compression scheme, if any, to use is
based on the filename itself and `jka-compr-compression-info-list'."
+ (setq filename (file-name-sans-versions filename))
(catch 'compression-info
(let ((case-fold-search nil))
(dolist (x jka-compr-compression-info-list)
There's a separate question of handling arbitrarily named compressed
files via magic-fallback-mode-alist or somesuch.
next prev parent reply other threads:[~2012-11-27 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 1:31 bug#13006: recognizing compressed files with arbitrary names Karl Berry
2012-11-27 8:50 ` Andreas Schwab
2012-11-27 18:41 ` Glenn Morris [this message]
2012-11-27 23:04 ` Karl Berry
2012-11-28 8:39 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=i9wqx6lwhk.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=13006@debbugs.gnu.org \
--cc=karl@freefriends.org \
--cc=schwab@linux-m68k.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 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).