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#9044: 24.0.50; File mode specification error: (error "Malformed -*- line") Date: Thu, 15 Sep 2011 21:37:37 +0300 Organization: JURTA Message-ID: <87pqj29gu6.fsf@mail.jurta.org> References: <6DBD6DBE-B16F-486D-9811-BEDB0D0B4F8A@Freenet.DE> <798vs3t5ew.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316112696 17588 80.91.229.12 (15 Sep 2011 18:51:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 18:51:36 +0000 (UTC) Cc: Peter Dyballa , 9044@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 20:51:31 2011 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 1R4H22-0008TJ-Nb for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 20:51:30 +0200 Original-Received: from localhost ([::1]:58044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4H22-0007fO-Ck for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 14:51:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4H1y-0007Xc-7U for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:51:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4H1w-0008Hh-AT for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:51:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4H1w-0008Hd-6C for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 14:51:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4H6R-00042q-AO; Thu, 15 Sep 2011 14:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2011 18:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9044 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9044-submit@debbugs.gnu.org id=B9044.131611293415470 (code B ref 9044); Thu, 15 Sep 2011 18:56:03 +0000 Original-Received: (at 9044) by debbugs.gnu.org; 15 Sep 2011 18:55:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4H5w-00041I-0T for submit@debbugs.gnu.org; Thu, 15 Sep 2011 14:55:34 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4H5j-00040i-1K for 9044@debbugs.gnu.org; Thu, 15 Sep 2011 14:55:20 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 7DA776E8075; Thu, 15 Sep 2011 11:50:38 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2B5FC451C3FB; Thu, 15 Sep 2011 11:50:36 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 11 Sep 2011 05:24:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Sep 2011 14:56:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:51195 Archived-At: > Well, it would make sense to have the "-*-" parser try to be a bit more > intelligent, wouldn't it? But I don't really have a good idea what to > do. > > Having Emacs error totally out and refuse to show the image sounds like > a bad idea, though. This can be fixed by limiting the search for "-*-" with some reasonable value, e.g. modifying `set-auto-mode-1' to use: `(min (line-end-position) 1024)'. Another solution is to add file extensions of binary image formats to `inhibit-first-line-modes-regexps' or `inhibit-first-line-modes-suffixes'. But a list of image formats supported by ImageMagick is too long: (length (imagemagick-types)) => 206. Perhaps this is not a problem.