From unknown Sat Jun 21 05:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2012 17:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 10601@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13275135924748 (code B ref -1); Wed, 25 Jan 2012 17:47:03 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jan 2012 17:46:32 +0000 Received: from localhost ([127.0.0.1]:43677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq6vX-0001EW-WE for submit@debbugs.gnu.org; Wed, 25 Jan 2012 12:46:32 -0500 Received: from eggs.gnu.org ([140.186.70.92]:38859) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq6vV-0001E5-VO for submit@debbugs.gnu.org; Wed, 25 Jan 2012 12:46:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq6us-0004uk-5i for submit@debbugs.gnu.org; Wed, 25 Jan 2012 12:45:57 -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]:54507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6ur-0004oC-CQ for submit@debbugs.gnu.org; Wed, 25 Jan 2012 12:45:49 -0500 Received: from eggs.gnu.org ([140.186.70.92]:45340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6iU-0008Ps-Ep for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 12:33:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq6iO-0002p3-QO for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 12:33:02 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:41460 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq6iO-0002oi-MK for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 12:32:56 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CF084451C75D for ; Wed, 25 Jan 2012 09:31:50 -0800 (PST) From: Juri Linkov Organization: JURTA Date: Wed, 25 Jan 2012 19:29:45 +0200 Message-ID: <87fwf3lmgm.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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 (----) When the last file in a tzg archive ends with the Local Variables section where mode is specified (for the last file in the archive), then the whole archive is visited in that mode instead of using `tar-mode'. This is a regression caused by fixing bug#8586. There are variables `inhibit-first-line-modes-regexps' and `inhibit-first-line-modes-suffixes' that prevent getting mode from the Local Variables section for tzg archives and other such file types. But currently they are used to skip only scanning of the first -*- line. To fix this regression, it is necessary to use these variables to skip getting mode from the Local Variables section. From unknown Sat Jun 21 05:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2012 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 10601@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 10601-submit@debbugs.gnu.org id=B10601.13275151316999 (code B ref 10601); Wed, 25 Jan 2012 18:13:02 +0000 Received: (at 10601) by debbugs.gnu.org; 25 Jan 2012 18:12:11 +0000 Received: from localhost ([127.0.0.1]:43708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq7KM-0001om-OH for submit@debbugs.gnu.org; Wed, 25 Jan 2012 13:12:10 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:42813) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq7KK-0001oT-7A for 10601@debbugs.gnu.org; Wed, 25 Jan 2012 13:12:09 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LYD0010093JH900@a-mtaout20.012.net.il> for 10601@debbugs.gnu.org; Wed, 25 Jan 2012 20:10:18 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.27.171]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYD001MY9549C50@a-mtaout20.012.net.il>; Wed, 25 Jan 2012 20:10:17 +0200 (IST) Date: Wed, 25 Jan 2012 20:10:22 +0200 From: Eli Zaretskii In-reply-to: <87fwf3lmgm.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il Message-id: <83hazj1wmp.fsf@gnu.org> References: <87fwf3lmgm.fsf@mail.jurta.org> X-Spam-Score: -1.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: -1.2 (-) > From: Juri Linkov > Date: Wed, 25 Jan 2012 19:29:45 +0200 > > When the last file in a tzg archive ends with the Local Variables section > where mode is specified (for the last file in the archive), then the whole > archive is visited in that mode instead of using `tar-mode'. Isn't this bug #10506 that Glenn fixed a few days ago? When was your Emacs built? From unknown Sat Jun 21 05:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2012 18:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 10601@debbugs.gnu.org Received: via spool by 10601-submit@debbugs.gnu.org id=B10601.13275166629282 (code B ref 10601); Wed, 25 Jan 2012 18:38:02 +0000 Received: (at 10601) by debbugs.gnu.org; 25 Jan 2012 18:37:42 +0000 Received: from localhost ([127.0.0.1]:43765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq7j3-0002Pe-M0 for submit@debbugs.gnu.org; Wed, 25 Jan 2012 13:37:41 -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 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-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. From unknown Sat Jun 21 05:16:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2012 19:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 10601@debbugs.gnu.org Received: via spool by 10601-submit@debbugs.gnu.org id=B10601.132752071318541 (code B ref 10601); Wed, 25 Jan 2012 19:46:01 +0000 Received: (at 10601) by debbugs.gnu.org; 25 Jan 2012 19:45:13 +0000 Received: from localhost ([127.0.0.1]:43876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq8mP-0004oz-8F for submit@debbugs.gnu.org; Wed, 25 Jan 2012 14:45:13 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:45509 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rq8mN-0004or-DA for 10601@debbugs.gnu.org; Wed, 25 Jan 2012 14:45:12 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id D5B54451C7E8; Wed, 25 Jan 2012 11:43:37 -0800 (PST) From: Juri Linkov Organization: JURTA References: <87fwf3lmgm.fsf@mail.jurta.org> <83hazj1wmp.fsf@gnu.org> Date: Wed, 25 Jan 2012 21:32:45 +0200 In-Reply-To: <83hazj1wmp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Jan 2012 20:10:22 +0200") Message-ID: <87aa5b37du.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-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 (-) > Isn't this bug #10506 that Glenn fixed a few days ago? When was your > Emacs built? With bug#10506 Glenn also fixed the case of visiting `browser.jar' that I reported in http://debbugs.gnu.org/10338#11 But visiting TGA image files still displays the message "Malformed -*- line" as reported in http://debbugs.gnu.org/9044#29 I think `imagemagick-register-types' should add TGA to `inhibit-local-variables-regexps': === modified file 'lisp/image.el' --- lisp/image.el 2012-01-25 17:54:01 +0000 +++ lisp/image.el 2012-01-25 19:31:10 +0000 @@ -712,7 +712,8 @@ (defun imagemagick-register-types () (not (memq (intern (upcase (symbol-name im-type))) imagemagick-types-inhibit))) (push (cons (car header-regexp) 'imagemagick) - image-type-header-regexps))))))) + image-type-header-regexps)))) + (push "\\.tga\\'" inhibit-local-variables-regexps)))) (provide 'image) This is desirable for TGA because it usually contains many occurences of -*- in the first line. Of course, in 24.2 it would be better to check for `image-mode' to cover all other image formats as well.