all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: Peter Dyballa <Peter_Dyballa@Freenet.DE>, 9044@debbugs.gnu.org
Subject: bug#9044: 24.0.50; File mode specification error: (error "Malformed -*- line")
Date: Thu, 15 Sep 2011 21:37:37 +0300	[thread overview]
Message-ID: <87pqj29gu6.fsf@mail.jurta.org> (raw)
In-Reply-To: <m3wrdfzrpe.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Sun, 11 Sep 2011 05:24:45 +0200")

> 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.





  reply	other threads:[~2011-09-15 18:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-10 23:36 bug#9044: 24.0.50; File mode specification error: (error "Malformed -*- line") Peter Dyballa
2011-07-12 21:53 ` Glenn Morris
2011-07-12 23:27   ` Peter Dyballa
2011-07-13  0:01     ` Glenn Morris
2011-09-11  3:24       ` Lars Magne Ingebrigtsen
2011-09-15 18:37         ` Juri Linkov [this message]
2011-09-15 20:03           ` Stefan Monnier
2011-09-16  1:58             ` Lars Magne Ingebrigtsen
2011-09-16 12:50               ` Juri Linkov
2011-09-17  5:06                 ` Lars Magne Ingebrigtsen
2011-09-17 12:48                   ` Juri Linkov
2011-09-18  7:49                     ` Lars Magne Ingebrigtsen
2011-09-17 21:58                 ` Chong Yidong
2011-09-18  7:50                   ` Lars Magne Ingebrigtsen
2011-09-18 19:28                   ` Juri Linkov
2011-09-18 20:50                     ` Juri Linkov
2011-09-19 13:06                       ` Stefan Monnier
2011-09-19 14:18                         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqj29gu6.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=9044@debbugs.gnu.org \
    --cc=Peter_Dyballa@Freenet.DE \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.