From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: jka-compr.el doesn't recognise gzipped files from their magic bytes Date: Mon, 17 Sep 2007 17:50:20 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190065845 7645 80.91.229.12 (17 Sep 2007 21:50:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 21:50:45 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Chris Moore" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 23:50:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXOUH-00073B-AU for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 23:50:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXOUF-0001J1-Uz for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 17:50:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXOUB-0001IP-Nd for emacs-devel@gnu.org; Mon, 17 Sep 2007 17:50:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXOUA-0001I2-99 for emacs-devel@gnu.org; Mon, 17 Sep 2007 17:50:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXOUA-0001Hz-5p for emacs-devel@gnu.org; Mon, 17 Sep 2007 17:50:30 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXOU9-00025M-3l for emacs-devel@gnu.org; Mon, 17 Sep 2007 17:50:29 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXOTc-0001nO-78 for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 17:49:56 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IXOU2-00021s-2z for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 17:50:26 -0400 Original-Received: from tomts5.bellnexxia.net ([209.226.175.25] helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXOU1-00021a-LV for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 17:50:21 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070917215020.OPRZ1592.tomts5-srv.bellnexxia.net@pastel.home> for ; Mon, 17 Sep 2007 17:50:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3BC5582E5; Mon, 17 Sep 2007 17:50:19 -0400 (EDT) In-Reply-To: (Chris Moore's message of "Mon\, 17 Sep 2007 21\:28\:24 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79130 gmane.emacs.pretest.bugs:19911 Archived-At: > So shouldn't jka-compr look for the magic strings, and identify > gzipped files that way? jka-compr uses a file-name-handler which (as the name indicates) works at the file-name level to detect the need for special behavior. So what you're suggesting is a different feature, which works more like a special major mode. That might make a lot of sense. Contributions welcome. Note that a major-mode would also have some disadvantages: e.g. when saving a file to some new name ".sifz" Emacs wouldn't know to compress it. Stefan