Subject: bug#9044: 24.0.50; File mode specification error: (error "Malformed -*- line")

From: Stefan Monnier <[email-masked]>
Date: Thu, 15 Sep 2011 16:03:32 -0400

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

I don't see any problem adding it to inhibit-first-line-modes-regexps,
especially using regexp-opt.
But only for non-text formats (e.g. not xpm or postscript).

        Stefan