X-Loop: help-debbugs@HIDDEN Subject: bug#13006: recognizing compressed files with arbitrary names Resent-From: karl@HIDDEN (Karl Berry) Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 27 Nov 2012 01:34:01 +0000 Resent-Message-ID: <handler.13006.B.135398002622360 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13006 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.135398002622360 (code B ref -1); Tue, 27 Nov 2012 01:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Nov 2012 01:33:46 +0000 Received: from localhost ([127.0.0.1]:40744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TdA3V-0005ob-SH for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 20:33:46 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43164) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <karl@HIDDEN>) id 1TdA3U-0005oU-5u for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 20:33:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1l-0000XT-LZ for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 20:31:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1l-0000XP-IU for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 20:31:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1k-0006bN-NV for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1j-0000Wp-Fr for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:56 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1j-0000Wl-Cy for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:55 -0500 Received: from [2001:4830:134:3::10] (port=60760 helo=eggs.gnu.org) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1i-0002sh-W0 for bug-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1h-0000WQ-Jx for bug-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:54 -0500 Received: from frenzy.freefriends.org ([66.54.153.139]:54689 helo=freefriends.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <karl@HIDDEN>) id 1TdA1h-0000WG-Di for bug-emacs@HIDDEN; Mon, 26 Nov 2012 20:31:53 -0500 X-Envelope-From: karl@HIDDEN X-Envelope-To: <bug-emacs@HIDDEN> Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.5/8.14.5) with ESMTP id qAR1VqK3005755 for <bug-emacs@HIDDEN>; Mon, 26 Nov 2012 18:31:52 -0700 Received: (from nobody@localhost) by freefriends.org (8.14.5/8.14.5/submit) id qAR1VpBY005753; Tue, 27 Nov 2012 01:31:51 GMT Date: Tue, 27 Nov 2012 01:31:51 GMT Message-Id: <201211270131.qAR1VpBY005753@HIDDEN> X-Authentication-Warning: frenzy.freefriends.org: nobody set sender to karl@HIDDEN using -f From: karl@HIDDEN (Karl Berry) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.2 (----) As the documentation says (http://www.gnu.org/software/emacs/manual/html_node/emacs/Compressed-Files.html) "Emacs recognizes compressed files by their file names." But compressed files don't always have the expected names. For instance, using the autobackup feature of Emacs or many other programs will result in names ending in, say, .~1~ ... Example for concreteness: $ echo foo | gzip >/tmp/foo.gz.~1~ $ emacs --no-site-file --no-init /tmp/foo.gz.~1~ And observe binary junk instead of text. (This is with 24.2.) Another implication is problems using M-x grep on such files. After changing the program to zgrep from grep, matches in the *grep* buffer are displayed as usual, but then when one visits the file in Emacs, it's junk. It would be nice to at least have an easy way to manually tell Emacs "this is a compressed file, despite its weird name". If there's a way to do that now, I'd like to know (and it should presumably be in the manual). I looked at jka-compr.el but could not find it. Of course, a more robust solution would be to use magic numbers instead of filenames to recognize file types. I see there was a long thread about that several years ago, starting at http://lists.gnu.org/archive/html/emacs-devel/2009-08/msg01023.html. I know it's been discussed at other times, too, but I can't see any way to accomplish it (short of using crypt++, which doesn't work well with Emacs 23 or later, which is why I stopped using it ... anyway). Thanks, karl
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: karl@HIDDEN (Karl Berry) Subject: bug#13006: Acknowledgement (recognizing compressed files with arbitrary names) Message-ID: <handler.13006.B.135398002622360.ack <at> debbugs.gnu.org> References: <201211270131.qAR1VpBY005753@HIDDEN> X-Gnu-PR-Message: ack 13006 X-Gnu-PR-Package: emacs Reply-To: 13006 <at> debbugs.gnu.org Date: Tue, 27 Nov 2012 01:34:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 13006 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 13006: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13006 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#13006: recognizing compressed files with arbitrary names Resent-From: Andreas Schwab <schwab@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 27 Nov 2012 08:53:01 +0000 Resent-Message-ID: <handler.13006.B13006.13540063456704 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: karl@HIDDEN (Karl Berry) Cc: 13006 <at> debbugs.gnu.org Received: via spool by 13006-submit <at> debbugs.gnu.org id=B13006.13540063456704 (code B ref 13006); Tue, 27 Nov 2012 08:53:01 +0000 Received: (at 13006) by debbugs.gnu.org; 27 Nov 2012 08:52:25 +0000 Received: from localhost ([127.0.0.1]:41012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TdGu0-0001k4-CS for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 03:52:25 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:54493) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <whitebox@HIDDEN>) id 1TdGtx-0001ju-Mn for 13006 <at> debbugs.gnu.org; Tue, 27 Nov 2012 03:52:22 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Y9dxN6WF1z3hhjW; Tue, 27 Nov 2012 09:50:32 +0100 (CET) X-Auth-Info: fheJj8DisTKMR6ntZTCopexeLZdOifJIxyzafHvMEX4= Received: from g208.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 3Y9dxM6sGXzbbkq; Tue, 27 Nov 2012 09:50:31 +0100 (CET) From: Andreas Schwab <schwab@HIDDEN> References: <201211270131.qAR1VpBY005753@HIDDEN> X-Yow: ...I think I'm having an overnight sensation right now!! Date: Tue, 27 Nov 2012 09:50:31 +0100 In-Reply-To: <201211270131.qAR1VpBY005753@HIDDEN> (Karl Berry's message of "Tue, 27 Nov 2012 01:31:51 GMT") Message-ID: <mvmsj7vfmzs.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -1.9 (-) karl@HIDDEN (Karl Berry) writes: > $ echo foo | gzip >/tmp/foo.gz.~1~ > $ emacs --no-site-file --no-init /tmp/foo.gz.~1~ > > And observe binary junk instead of text. (This is with 24.2.) This is a regression from Emacs 23. It should disregard the backup suffix when matching the extension. Andreas. -- Andreas Schwab, schwab@HIDDEN GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Received: (at control) by debbugs.gnu.org; 27 Nov 2012 10:08:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 05:08:58 2012 Received: from localhost ([127.0.0.1]:41119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TdI66-0003Zl-4w for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 05:08:58 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:57450) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <seewhydee@HIDDEN>) id 1TdI64-0003Zd-2o for control <at> debbugs.gnu.org; Tue, 27 Nov 2012 05:08:56 -0500 Received: by mail-pb0-f44.google.com with SMTP id uo1so8318682pbc.3 for <control <at> debbugs.gnu.org>; Tue, 27 Nov 2012 02:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=+UsIXwHhzX8g03y+/eOla6GDmrLZdYZQKZh3DCRXAcM=; b=UYOIzJsAh1kEcufKT+YYTpkGIGqTLgmhXRsH+8quAjg1vnGYRv+wQ0cC9dRJOZgAUP ZDcW490ugZcdxBHWWVnKDDgFMUECCSj3IxhXO1icntynDSHOhE6DJewWed6Ec12C3xWx roEoxQYQDZnc2MyRqfbHthv89PBkjc73cOxg9nGgHWXN5RLBQi88fH52qTnXeiqN0F0T 3UNq8CYvQVQaKhV9VO2YMSzuK5wybVuRWMeNA5/FQxpin5ViTdeTmKUJbWysP0k7Ptw2 ttWZSG8rNkh7uB/9zQ9VhcJ0SaVza7wH0avSwaPlgY63l5ibGIOlasUvj02znO4H9HR+ Oa7w== Received: by 10.69.16.100 with SMTP id fv4mr46463144pbd.135.1354010827569; Tue, 27 Nov 2012 02:07:07 -0800 (PST) Received: from ulysses ([155.69.18.158]) by mx.google.com with ESMTPS id xk2sm10397729pbc.45.2012.11.27.02.07.04 (version=SSLv3 cipher=OTHER); Tue, 27 Nov 2012 02:07:06 -0800 (PST) From: Chong Yidong <cyd@HIDDEN> To: control <at> debbugs.gnu.org Subject: severity 13006 important Date: Tue, 27 Nov 2012 18:07:01 +0800 Message-ID: <87pq2z4awq.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.1 (/) severity 13006 important thanks
X-Loop: help-debbugs@HIDDEN Subject: bug#13006: recognizing compressed files with arbitrary names Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 27 Nov 2012 18:44:01 +0000 Resent-Message-ID: <handler.13006.B13006.135404178512761 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab <schwab@HIDDEN> Cc: 13006 <at> debbugs.gnu.org, Karl Berry <karl@HIDDEN> Received: via spool by 13006-submit <at> debbugs.gnu.org id=B13006.135404178512761 (code B ref 13006); Tue, 27 Nov 2012 18:44:01 +0000 Received: (at 13006) by debbugs.gnu.org; 27 Nov 2012 18:43:05 +0000 Received: from localhost ([127.0.0.1]:42084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TdQ7c-0003Jl-Na for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 13:43:04 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:38954) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1TdQ7a-0003Je-GI for 13006 <at> debbugs.gnu.org; Tue, 27 Nov 2012 13:43:03 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1TdQ5n-0006Re-5v; Tue, 27 Nov 2012 13:41:11 -0500 From: Glenn Morris <rgm@HIDDEN> References: <201211270131.qAR1VpBY005753@HIDDEN> <mvmsj7vfmzs.fsf@HIDDEN> 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 Date: Tue, 27 Nov 2012 13:41:11 -0500 In-Reply-To: <mvmsj7vfmzs.fsf@HIDDEN> (Andreas Schwab's message of "Tue, 27 Nov 2012 09:50:31 +0100") Message-ID: <i9wqx6lwhk.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.1 (----) 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.
X-Loop: help-debbugs@HIDDEN Subject: bug#13006: recognizing compressed files with arbitrary names References: <201211270131.qAR1VpBY005753@HIDDEN> Resent-From: karl@HIDDEN (Karl Berry) Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 27 Nov 2012 23:07:02 +0000 Resent-Message-ID: <handler.13006.B13006.135405759410797 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rgm@HIDDEN Cc: 13006 <at> debbugs.gnu.org, schwab@HIDDEN Received: via spool by 13006-submit <at> debbugs.gnu.org id=B13006.135405759410797 (code B ref 13006); Tue, 27 Nov 2012 23:07:02 +0000 Received: (at 13006) by debbugs.gnu.org; 27 Nov 2012 23:06:34 +0000 Received: from localhost ([127.0.0.1]:42301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TdUEX-0002o1-2l for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 18:06:33 -0500 Received: from frenzy.freefriends.org ([66.54.153.139]:52579 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <karl@HIDDEN>) id 1TdUEV-0002nu-1x for 13006 <at> debbugs.gnu.org; Tue, 27 Nov 2012 18:06:27 -0500 X-Envelope-From: karl@HIDDEN 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 Received: (from nobody@localhost) by freefriends.org (8.14.5/8.14.5/submit) id qARN4Yok002350; Tue, 27 Nov 2012 23:04:34 GMT Date: Tue, 27 Nov 2012 23:04:34 GMT Message-Id: <201211272304.qARN4Yok002350@HIDDEN> X-Authentication-Warning: frenzy.freefriends.org: nobody set sender to karl@HIDDEN using -f From: karl@HIDDEN (Karl Berry) In-Reply-To: <i9wqx6lwhk.fsf@HIDDEN> X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.4 (/) + (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
X-Loop: help-debbugs@HIDDEN Subject: bug#13006: recognizing compressed files with arbitrary names Resent-From: Glenn Morris <rgm@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 28 Nov 2012 08:42:01 +0000 Resent-Message-ID: <handler.13006.B13006.13540920699222 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13006 <at> debbugs.gnu.org Received: via spool by 13006-submit <at> debbugs.gnu.org id=B13006.13540920699222 (code B ref 13006); Wed, 28 Nov 2012 08:42:01 +0000 Received: (at 13006) by debbugs.gnu.org; 28 Nov 2012 08:41:09 +0000 Received: from localhost ([127.0.0.1]:42565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TddCf-0002Og-AJ for submit <at> debbugs.gnu.org; Wed, 28 Nov 2012 03:41:09 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:55024) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1TddCc-0002OV-0F for 13006 <at> debbugs.gnu.org; Wed, 28 Nov 2012 03:41:08 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1TddAl-0001BI-9s; Wed, 28 Nov 2012 03:39:11 -0500 From: Glenn Morris <rgm@HIDDEN> References: <201211270131.qAR1VpBY005753@HIDDEN> <mvmsj7vfmzs.fsf@HIDDEN> <i9wqx6lwhk.fsf@HIDDEN> X-Spook: PET airframe Rule Psix Lon Horiuchi Ermes World Trade X-Ran: wyyYD1z7_;v}Hen"_LqY=rbv@U]h@yVvvpJ!5!|:*UDlmscZ/Eu@9#9T-*I6^[t}b]hc?8 X-Hue: green X-Attribution: GM Date: Wed, 28 Nov 2012 03:39:11 -0500 In-Reply-To: <i9wqx6lwhk.fsf@HIDDEN> (Glenn Morris's message of "Tue, 27 Nov 2012 13:41:11 -0500") Message-ID: <il624qktow.fsf@HIDDEN> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.6 (----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -5.4 (-----) Glenn Morris wrote: > + (setq filename (file-name-sans-versions filename)) Applied for 24.2.91. Leaving this open as a wishlist for: a) detecting compressed files by magic bytes b) explicit command to open a file using a given compression
Received: (at control) by debbugs.gnu.org; 28 Nov 2012 08:41:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 28 03:41:28 2012 Received: from localhost ([127.0.0.1]:42568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TddCx-0002PH-Ob for submit <at> debbugs.gnu.org; Wed, 28 Nov 2012 03:41:28 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:55046) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <rgm@HIDDEN>) id 1TddCv-0002PA-Ld for control <at> debbugs.gnu.org; Wed, 28 Nov 2012 03:41:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1TddB6-0001Bc-F3 for control <at> debbugs.gnu.org; Wed, 28 Nov 2012 03:39:32 -0500 Date: Wed, 28 Nov 2012 03:39:32 -0500 Message-Id: <E1TddB6-0001Bc-F3@HIDDEN> Subject: control message for bug 13006 To: <control <at> debbugs.gnu.org> X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris <rgm@HIDDEN> X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.6 (----) severity 13006 wishlist
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.