From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13006: recognizing compressed files with arbitrary names Date: Tue, 27 Nov 2012 13:41:11 -0500 Message-ID: References: <201211270131.qAR1VpBY005753@freefriends.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354041744 16274 80.91.229.3 (27 Nov 2012 18:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2012 18:42:24 +0000 (UTC) Cc: 13006@debbugs.gnu.org, Karl Berry To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 27 19:42:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TdQ79-0002mc-Gl for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2012 19:42:35 +0100 Original-Received: from localhost ([::1]:49082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdQ6y-0007LP-Fb for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2012 13:42:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdQ6s-0007Ky-CE for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 13:42:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdQ6m-0005Xj-Fe for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 13:42:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdQ6m-0005Xe-CG for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 13:42:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TdQ8X-0003LA-SX for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 13:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Nov 2012 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13006-submit@debbugs.gnu.org id=B13006.135404178512761 (code B ref 13006); Tue, 27 Nov 2012 18:44:01 +0000 Original-Received: (at 13006) by debbugs.gnu.org; 27 Nov 2012 18:43:05 +0000 Original-Received: from localhost ([127.0.0.1]:42084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdQ7c-0003Jl-Na for submit@debbugs.gnu.org; Tue, 27 Nov 2012 13:43:04 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:38954) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdQ7a-0003Je-GI for 13006@debbugs.gnu.org; Tue, 27 Nov 2012 13:43:03 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TdQ5n-0006Re-5v; Tue, 27 Nov 2012 13:41:11 -0500 X-Spook: INSCOM BROMURE Jyllandsposten Yukon FBI radar freedom ISEC X-Ran: LU5WKHkLR`\$B{#_[)a*Fx>vxcbP?5{o*HXw%284bg^Id?R9)F3`1Z{Ye%ZB,!p:yZ~E.W X-Hue: blue X-Attribution: GM In-Reply-To: (Andreas Schwab's message of "Tue, 27 Nov 2012 09:50:31 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67532 Archived-At: 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.