From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2012 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10506 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10506@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.132657546230048 (code B ref -1); Sat, 14 Jan 2012 21:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jan 2012 21:11:02 +0000 Received: from localhost ([127.0.0.1]:57593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmAsQ-0007ob-7i for submit@debbugs.gnu.org; Sat, 14 Jan 2012 16:11:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]:55758) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmAsO-0007oD-0s for submit@debbugs.gnu.org; Sat, 14 Jan 2012 16:11:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmArd-0005OS-OA for submit@debbugs.gnu.org; Sat, 14 Jan 2012 16:10:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:60069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmArd-0005OO-MY for submit@debbugs.gnu.org; Sat, 14 Jan 2012 16:10:13 -0500 Received: from eggs.gnu.org ([140.186.70.92]:48745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmArc-0005WJ-Ni for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 16:10:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmArb-0005OD-C6 for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 16:10:12 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:32982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmArb-0005O7-22 for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 16:10:11 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXT00F0044CWG00@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 23:10:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.240.145]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXT00FBE44WHA50@a-mtaout20.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 23:10:09 +0200 (IST) Date: Sat, 14 Jan 2012 23:10:16 +0200 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il Message-id: <83ty3yhtxj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': emacs -Q C-x C-f guile-2.0.3.tar.gz RET Instead of the tarball contents, you will be presented with the literal binary contents of the archive, and the mode line indicates that Emacs thinks it's a shell script ("Shell-script[sh]"). The same happens if you gunzip the compressed tarball and visit the resulting tar file. I tried with a couple of other tarballs, and they work as expected. So there's something in this specific tarball that triggers the bug. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/gnu/bzr/emacs/trunk/etc/DEBUG. In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2012-01-14 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f u s a r g u i l . g z M-x r e p o r t - e m a c Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. uncompressing guile-2.0.3.tar.gz...done Setting up indent for shell type sh setting up indent stuff Indentation variables are now local. Indentation setup for shell type sh Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug regexp-opt sh-script executable jka-compr time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2012 22:18: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: To: Eli Zaretskii Cc: 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.13265794303597 (code B ref 10506); Sat, 14 Jan 2012 22:18:02 +0000 Received: (at 10506) by debbugs.gnu.org; 14 Jan 2012 22:17:10 +0000 Received: from localhost ([127.0.0.1]:57706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmBuQ-0000vx-G9 for submit@debbugs.gnu.org; Sat, 14 Jan 2012 17:17:10 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:38025) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmBuN-0000vq-Es for 10506@debbugs.gnu.org; Sat, 14 Jan 2012 17:17:08 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RmBtd-0004C8-Lg; Sat, 14 Jan 2012 17:16:21 -0500 From: Glenn Morris References: <83ty3yhtxj.fsf@gnu.org> X-Spook: fundamentalist AIEWS IDEA BLU-114/B Marxist John Kerry X-Ran: );JBmO{S&ku~I?G (Eli Zaretskii's message of "Sat, 14 Jan 2012 23:10:16 +0200") Message-ID: 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.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Eli Zaretskii wrote: > I tried with a couple of other tarballs, and they work as expected. > So there's something in this specific tarball that triggers the bug. It happens to contain a shell-script (depcomp) near the end of the tarfile, and that shell-script happens to have a footer that starts fewer than 3000 characters from the end of the tarfile, and happens to contain: # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: (The mode setting is superfluous since it begins with #!/bin/sh anyway.) So hack-local-variables decides the tarfile should be in sh-mode. From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2012 05:19:01 +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: To: Glenn Morris Cc: 10506@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.13266047277516 (code B ref 10506); Sun, 15 Jan 2012 05:19:01 +0000 Received: (at 10506) by debbugs.gnu.org; 15 Jan 2012 05:18:47 +0000 Received: from localhost ([127.0.0.1]:57817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmIUO-0001x8-3K for submit@debbugs.gnu.org; Sun, 15 Jan 2012 00:18:46 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:42143) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmIUL-0001x1-HL for 10506@debbugs.gnu.org; Sun, 15 Jan 2012 00:18:42 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RmITZ-0002Y4-Ca; Sun, 15 Jan 2012 00:17:53 -0500 Date: Sun, 15 Jan 2012 00:17:53 -0500 Message-Id: From: Eli Zaretskii In-reply-to: (message from Glenn Morris on Sat, 14 Jan 2012 17:16:21 -0500) References: <83ty3yhtxj.fsf@gnu.org> X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) > From: Glenn Morris > Cc: 10506@debbugs.gnu.org > Date: Sat, 14 Jan 2012 17:16:21 -0500 > > It happens to contain a shell-script (depcomp) near the end of the > tarfile, and that shell-script happens to have a footer that starts > fewer than 3000 characters from the end of the tarfile, and happens to > contain: > > # Local Variables: > # mode: shell-script > # sh-indentation: 2 > # eval: (add-hook 'write-file-hooks 'time-stamp) > # time-stamp-start: "scriptversion=" > # time-stamp-format: "%:y-%02m-%02d.%02H" > # time-stamp-time-zone: "UTC" > # time-stamp-end: "; # UTC" > # End: > > (The mode setting is superfluous since it begins with #!/bin/sh anyway.) > > So hack-local-variables decides the tarfile should be in sh-mode. Thanks. But this is a regression from Emacs 23.3, which doesn't have this problem. So I think we ought to fix it. From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2012 05:59: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: To: Eli Zaretskii Cc: 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.132660713410986 (code B ref 10506); Sun, 15 Jan 2012 05:59:02 +0000 Received: (at 10506) by debbugs.gnu.org; 15 Jan 2012 05:58:54 +0000 Received: from localhost ([127.0.0.1]:57822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmJ7F-0002r9-Ou for submit@debbugs.gnu.org; Sun, 15 Jan 2012 00:58:54 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:42415) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmJ7D-0002qz-2D for 10506@debbugs.gnu.org; Sun, 15 Jan 2012 00:58:51 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RmJ6Q-0006vz-GX; Sun, 15 Jan 2012 00:58:02 -0500 From: Glenn Morris References: <83ty3yhtxj.fsf@gnu.org> X-Spook: Islam Abduganievich Karimov AMEMB Becker Forte CIA Armani X-Ran: huuhUoxKX(zr]MZzAto(*2h:wacG9@57-niBnu2yR}1X;<4(^>l=55DPj.tE_`54]=2(ll X-Hue: cyan X-Attribution: GM Date: Sun, 15 Jan 2012 00:58:02 -0500 In-Reply-To: (Eli Zaretskii's message of "Sun, 15 Jan 2012 00:17:53 -0500") Message-ID: 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.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Eli Zaretskii wrote: > Thanks. But this is a regression from Emacs 23.3, which doesn't have > this problem. So I think we ought to fix it. Sure. We shouldn't be looking for local variable sections in tar files and other such things. From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage In-Reply-To: <83ty3yhtxj.fsf@gnu.org> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2012 01:29: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: To: Eli Zaretskii Cc: 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.13268501396342 (code B ref 10506); Wed, 18 Jan 2012 01:29:02 +0000 Received: (at 10506) by debbugs.gnu.org; 18 Jan 2012 01:28:59 +0000 Received: from localhost ([127.0.0.1]:34009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKKg-0001eD-Bb for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:28:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:40625) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKKd-0001e6-Ja for 10506@debbugs.gnu.org; Tue, 17 Jan 2012 20:28:56 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RnKJc-00065v-4j; Tue, 17 Jan 2012 20:27:52 -0500 From: Glenn Morris References: <83ty3yhtxj.fsf@gnu.org> X-Spook: brigand bullion Attorney General MD5 IMF colonel CIA X-Ran: >heNAskl2jVCvh$^A@8f}W'QqS!06F([LPj=rS:3CT];\.e.duv9)crN\Xf/T)%Lu:VWA" X-Hue: yellow X-Attribution: GM Date: Tue, 17 Jan 2012 20:27:52 -0500 Message-ID: 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.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Eli Zaretskii wrote: >> It happens to contain a shell-script (depcomp) near the end of the >> tarfile, and that shell-script happens to have a footer that starts >> fewer than 3000 characters from the end of the tarfile, and happens to >> contain: >> >> # Local Variables: >> # mode: shell-script [...] > But this is a regression from Emacs 23.3, which doesn't have this > problem. The change is because set-auto-mode now checks for "mode:" at the end of the file earlier than it did in 23.3 (specifically, before auto-mode-alist). This is for correct handling of some dir-local variables (bug#8586), but also seems like the right thing to do in general. It is however wrong in this specific instance, and in other instances of binary files. It works in 23.3 because auto-mode-alist is consulted first, chooses tar-mode, and this then binds local-enable-local-variables to nil. 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. I think the right solution is to extend the meaning of inhibit-first-line-modes-regexps, so that we ignore mode: entries (indeed, all file local variables) in matching files wherever they appear (not just the first line). IMO, this is obviously the sense in which one would want to use such a variable - I can't think of a case where one would want to ignore mode in the first line, but respect it at the end, or ignore all mode: settings but still respect other file local variables. This variable is not documented in the manual, so I would not feel too bad about extending it in this way; it's just a shame that it has the name it does. 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? Thoughts? From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2012 01:42:01 +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: To: Eli Zaretskii Cc: 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.13268509007667 (code B ref 10506); Wed, 18 Jan 2012 01:42:01 +0000 Received: (at 10506) by debbugs.gnu.org; 18 Jan 2012 01:41:40 +0000 Received: from localhost ([127.0.0.1]:34013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKWy-0001zc-Dz for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:41:40 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:40807) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKWu-0001zT-JA for 10506@debbugs.gnu.org; Tue, 17 Jan 2012 20:41:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RnKVs-0001AF-Qe; Tue, 17 Jan 2012 20:40:32 -0500 From: Glenn Morris References: <83ty3yhtxj.fsf@gnu.org> X-Spook: Indigo HAMASMOIS Kh-11 Legion of Doom Iran MILSATCOM X-Ran: Ye@KFGPN\_TpsF<0Ms*huuJ2Bf_L/WuA]1U8,rQ]ui|*)XIC0nN141*Y4VY>BaosXehazb X-Hue: magenta X-Attribution: GM Date: Tue, 17 Jan 2012 20:40:32 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 17 Jan 2012 20:27:52 -0500") Message-ID: 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.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Glenn Morris wrote: > 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? Perhaps the compression ones (gz etc) are exceptions, eg in case one visits foo.txt.gz (though I haven't looked how jka-compr actually handles such things). From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage 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: To: Glenn Morris Cc: Eli Zaretskii , 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.132690079321867 (code B ref 10506); Wed, 18 Jan 2012 15:34:02 +0000 Received: (at 10506) by debbugs.gnu.org; 18 Jan 2012 15:33:13 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id E48F75908F; Wed, 18 Jan 2012 10:31:51 -0500 (EST) From: Stefan Monnier Message-ID: References: <83ty3yhtxj.fsf@gnu.org> Date: Wed, 18 Jan 2012 10:31:51 -0500 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > 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 From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jan 2012 00:51:01 +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: To: Stefan Monnier Cc: Eli Zaretskii , 10506@debbugs.gnu.org Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.13271070268659 (code B ref 10506); Sat, 21 Jan 2012 00:51:01 +0000 Received: (at 10506) by debbugs.gnu.org; 21 Jan 2012 00:50:26 +0000 Received: from localhost ([127.0.0.1]:37080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoPA2-0002Fc-3z for submit@debbugs.gnu.org; Fri, 20 Jan 2012 19:50:26 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:34271) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoPA0-0002FV-34 for 10506@debbugs.gnu.org; Fri, 20 Jan 2012 19:50:24 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RoP8h-0004NS-47; Fri, 20 Jan 2012 19:49:03 -0500 From: Glenn Morris References: <83ty3yhtxj.fsf@gnu.org> X-Spook: SHA Arnett Vickie Weaver assassinate Mantis Aldergrove X-Ran: K&xBs"u-m,SG\&sr"xbE!L8.AXeK5?XI+U_DAVI_}^8(ZUWlBO=ad8|x1_bt/PJI_ml[ga X-Hue: black X-Attribution: GM Date: Fri, 20 Jan 2012 19:49:03 -0500 In-Reply-To: (Stefan Monnier's message of "Wed, 18 Jan 2012 10:31:51 -0500") Message-ID: 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.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Stefan Monnier wrote: > 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). I believe this is implemented now. This area seems quite messy. Some more comments: 1) inhibit-local-variables-regexps - should it be explicitly case-insensitive? 2) local-enable-local-variables - a strange variable. AFAICS (see my comments in files.el), its only real use is as a minor convenience feature for visiting RMAIL BABYL files with M-x find-file. Should it be declared obsolete? Should it affect directory-local variables (it currently does, I think)? > 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). Still to be done after 24.1. From unknown Sun Jun 22 04:19:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10506: 24.0.92; Visiting the Guile v2.0.3 tarball shows binary garbage Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jan 2012 10:24: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: To: Glenn Morris Cc: monnier@iro.umontreal.ca, 10506@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 10506-submit@debbugs.gnu.org id=B10506.132714140218770 (code B ref 10506); Sat, 21 Jan 2012 10:24:02 +0000 Received: (at 10506) by debbugs.gnu.org; 21 Jan 2012 10:23:22 +0000 Received: from localhost ([127.0.0.1]:38155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoY6U-0004sh-1s for submit@debbugs.gnu.org; Sat, 21 Jan 2012 05:23:22 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:39390) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RoY6O-0004sR-R5 for 10506@debbugs.gnu.org; Sat, 21 Jan 2012 05:23:20 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LY500C008MZ5M00@a-mtaout23.012.net.il> for 10506@debbugs.gnu.org; Sat, 21 Jan 2012 12:23:08 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.116.75]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LY500C3X8UJ4P20@a-mtaout23.012.net.il>; Sat, 21 Jan 2012 12:23:08 +0200 (IST) Date: Sat, 21 Jan 2012 12:23:08 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83ty3p2w37.fsf@gnu.org> References: <83ty3yhtxj.fsf@gnu.org> X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.5 (/) > From: Glenn Morris > Cc: Eli Zaretskii , 10506@debbugs.gnu.org > Date: Fri, 20 Jan 2012 19:49:03 -0500 > > Stefan Monnier wrote: > > > 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). > > I believe this is implemented now. Thanks, it works for me now. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 23 03:28:38 2012 Received: (at control) by debbugs.gnu.org; 23 Jan 2012 08:28:38 +0000 Received: from localhost ([127.0.0.1]:40472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpFGX-0006DA-Ij for submit@debbugs.gnu.org; Mon, 23 Jan 2012 03:28:38 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:41296 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpFGV-0006D1-3s for control@debbugs.gnu.org; Mon, 23 Jan 2012 03:28:36 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RpFGH-0001FQ-Ew for control@debbugs.gnu.org; Mon, 23 Jan 2012 03:28:21 -0500 Date: Mon, 23 Jan 2012 03:28:21 -0500 Message-Id: Subject: control message for bug 10506 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 10506 24.0.93 From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 13:37:44 2012 Received: (at control) by debbugs.gnu.org; 25 Jan 2012 18:37:44 +0000 Received: from localhost ([127.0.0.1]:43767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq7j6-0002Pn-Az for submit@debbugs.gnu.org; Wed, 25 Jan 2012 13:37:44 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:59893 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq7ip-0002PI-Go; Wed, 25 Jan 2012 13:37:40 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EE436451C7E8; Wed, 25 Jan 2012 10:35:53 -0800 (PST) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Organization: JURTA References: <87fwf3lmgm.fsf@mail.jurta.org> <83hazj1wmp.fsf@gnu.org> Date: Wed, 25 Jan 2012 20:35:06 +0200 In-Reply-To: <83hazj1wmp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Jan 2012 20:10:22 +0200") Message-ID: <87hazj4omd.fsf_-_@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control Cc: 10601@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) forcemerge 10506 10601 stop > Isn't this bug #10506 that Glenn fixed a few days ago? When was your > Emacs built? Thanks, I missed that.