From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: karl@freefriends.org (Karl Berry) Newsgroups: gmane.emacs.bugs Subject: bug#13006: recognizing compressed files with arbitrary names Date: Tue, 27 Nov 2012 23:04:34 GMT Message-ID: <201211272304.qARN4Yok002350@freefriends.org> References: <201211270131.qAR1VpBY005753@freefriends.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1354057517 31916 80.91.229.3 (27 Nov 2012 23:05:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2012 23:05:17 +0000 (UTC) Cc: 13006@debbugs.gnu.org, schwab@linux-m68k.org To: rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 00:05:28 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 1TdUDY-000636-Jo for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2012 00:05:28 +0100 Original-Received: from localhost ([::1]:39121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdUDN-0004qS-AU for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Nov 2012 18:05:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdUDJ-0004pH-At for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 18:05:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdUDH-0001K5-S6 for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 18:05:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdUDH-0001Jx-Om for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 18:05:11 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TdUF4-0002oq-EI for bug-gnu-emacs@gnu.org; Tue, 27 Nov 2012 18:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Nov 2012 23:07:02 +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.135405759410797 (code B ref 13006); Tue, 27 Nov 2012 23:07:02 +0000 Original-Received: (at 13006) by debbugs.gnu.org; 27 Nov 2012 23:06:34 +0000 Original-Received: from localhost ([127.0.0.1]:42301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdUEX-0002o1-2l for submit@debbugs.gnu.org; Tue, 27 Nov 2012 18:06:33 -0500 Original-Received: from frenzy.freefriends.org ([66.54.153.139]:52579 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdUEV-0002nu-1x for 13006@debbugs.gnu.org; Tue, 27 Nov 2012 18:06:27 -0500 X-Envelope-From: karl@freefriends.org Original-Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.5/8.14.5) with ESMTP id qARN4ZTd002351; Tue, 27 Nov 2012 16:04:35 -0700 Original-Received: (from nobody@localhost) by freefriends.org (8.14.5/8.14.5/submit) id qARN4Yok002350; Tue, 27 Nov 2012 23:04:34 GMT X-Authentication-Warning: frenzy.freefriends.org: nobody set sender to karl@freefriends.org using -f In-Reply-To: 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:67545 Archived-At: + (setq filename (file-name-sans-versions filename)) Thanks. There's a separate question of handling arbitrarily named compressed files via magic-fallback-mode-alist or somesuch. Right. The backup versions was just an example of problematic names. Though it's certainly good to have that fixed. There's also the (potentially related) question of making it possible for users to tell Emacs "this is a compressed file". Regardless of the method(s) used to detect compression, this seems like it would be useful. I have plenty of times been forced to decompress files outside of Emacs and then visit the plain file. Clearly it's not the end of the world to do that, but ... If you want me to send separate reports for either or both of those things, let me know. Thanks, k