From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Date: Wed, 18 Jan 2012 10:31:51 -0500 Message-ID: References: <83ty3yhtxj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326900800 20152 80.91.229.12 (18 Jan 2012 15:33:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2012 15:33:20 +0000 (UTC) Cc: 10506@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 18 16:33:16 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnXVi-0003Jf-Ha for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jan 2012 16:33:14 +0100 Original-Received: from localhost ([::1]:46841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnXVh-0000La-In for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jan 2012 10:33:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnXVW-0000KD-Eh for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2012 10:33:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnXVQ-0001gj-MF for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2012 10:33:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnXVQ-0001gV-Kd for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2012 10:32:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RnXWU-0005hf-Gb for bug-gnu-emacs@gnu.org; Wed, 18 Jan 2012 10:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2012 15:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10506 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.132690079321867 (code B ref 10506); Wed, 18 Jan 2012 15:34:02 +0000 Original-Received: (at 10506) by debbugs.gnu.org; 18 Jan 2012 15:33:13 +0000 Original-Received: from localhost ([127.0.0.1]:34511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnXVh-0005ge-Fs for submit@debbugs.gnu.org; Wed, 18 Jan 2012 10:33:13 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:63986) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnXVf-0005gW-Hm for 10506@debbugs.gnu.org; Wed, 18 Jan 2012 10:33:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAKDlFk9MCqvJ/2dsb2JhbABEqyCBJYEBgQaBcgEBBAFWIwULCw4fBxIUGA0kiA25HYlqAgEBCAIMEQMJAQEGAQUeCgQBAgEBBQMBAQEBAoJ4AQYCAwcBBAEBAQELAgcBAQIDDQECAwEBAwIDAgMEAQQfgygEiDuILZI9hFI X-IronPort-AV: E=Sophos;i="4.71,529,1320642000"; d="scan'208";a="157429734" Original-Received: from 76-10-171-201.dsl.teksavvy.com (HELO pastel.home) ([76.10.171.201]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Jan 2012 10:31:52 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E48F75908F; Wed, 18 Jan 2012 10:31:51 -0500 (EST) In-Reply-To: (Glenn Morris's message of "Tue, 17 Jan 2012 20:27:52 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) 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 (newer, 2) 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:55839 Archived-At: > I was going to say that I think it would still go wrong in 23.3 if you > could somehow construct a tar file with a -*- mode -*- entry on the > first line, but then I discovered inhibit-first-line-modes-regexps. Thanks for the footwork. I agree that inhibit-first-line-modes-regexps should apply to all forms of file-local variables. I.e. please rename it to inhibit-file-variables-regexps (with a define-obsolete-variable-alias, of course). > A final comment: it seems to me that anything in auto-coding-alist with > a no-conversion* coding should be in inhibit-first-line-modes-regexps as > well, since the meaning in both cases is basically "this is a binary > file". Are there any exceptions? There could be exceptions, I guess. I think the way to reduce such redundancy (without removing the possibility to handle things differently) is to add indirections: e.g. allow not just regexps but also major-mode symbols (so auto-mode-alist maps the file name to a major mode and than this mode can be consulted in inhibit-file-variables-regexps and auto-coding-alist, and we (w|c)ould ideally take major-mode inheritance into account so we could make tar-mode and image-mode inherit from a binary-mode parent and only have binary-mode listed in those two lists). Stefan