From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10601: 24.0.92; Visiting tgz files sets mode from File Local Variables Date: Wed, 25 Jan 2012 21:32:45 +0200 Organization: JURTA Message-ID: <87aa5b37du.fsf_-_@mail.jurta.org> References: <87fwf3lmgm.fsf@mail.jurta.org> <83hazj1wmp.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327520746 10889 80.91.229.12 (25 Jan 2012 19:45:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2012 19:45:46 +0000 (UTC) Cc: 10601@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 25 20:45:40 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 1Rq8mp-00028a-Uj for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2012 20:45:40 +0100 Original-Received: from localhost ([::1]:49141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq8mp-0000VM-J9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jan 2012 14:45:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq8ml-0000V4-Ml for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 14:45:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq8mk-0007NX-GA for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 14:45:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq8mk-0007NT-DC for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 14:45:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rq8nB-0004q4-O5 for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2012 14:46:01 -0500 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 10601-submit@debbugs.gnu.org id=B10601.132752071318541 (code B ref 10601); Wed, 25 Jan 2012 19:46:01 +0000 Original-Received: (at 10601) by debbugs.gnu.org; 25 Jan 2012 19:45:13 +0000 Original-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 Original-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 Original-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) In-Reply-To: <83hazj1wmp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Jan 2012 20:10:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) 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:56003 Archived-At: > 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.