unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
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: Fri, 16 Sep 2011 03:58:54 +0200	[thread overview]
Message-ID: <m3sjnx459d.fsf@stories.gnus.org> (raw)
In-Reply-To: <jwv62kt1smm.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 15 Sep 2011 16:03:32 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

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

The list is:

(YUV YCbCrA YCbCr Y XWD XV XPS XPM XCF XC XBM X3F X WPG WMZ WMV WMF WBMP
VST VIFF VID VICAR VDA UYVY UIL UBRL TXT TTF TTC TIM TILE TIFF64 TIFF
THUMBNAIL TGA TEXT SVGZ SVG SUN STEGANO SRF SR2 SHTML SGI SFW SCT SCR
RLE RLA RGBO RGBA RGB RBG RAS RAF RADIAL-GRADIENT R PWP PTIF PSD PSB PS3
PS2 PS PREVIEW PPM PNM PNG8 PNG32 PNG24 PNG PLASMA PJPEG PIX PICT PICON
PGX PGM PFM PFB PFA PES PEF PDFA PDF PDB PCX PCT PCL PCDS PCD PBM
PATTERN PAM PALM PAL OTF OTB ORF O NULL NEF MVG MTV MSVG MSL MRW MPG
MPEG MPC MP4 MOV MONO MNG MIFF MATTE MAT MAP M4V M2V M LABEL KDC K25 K
JPX JPG JPEG JPC JP2 JNG J2C ISOBRL IPL INLINE INFO ICON ICO ICB HTML
HTM HRZ HISTOGRAM HALD GROUP4 GRB GRAY GRADIENT GIF87 GIF GBR G3 G FTS
FRACTAL FITS FAX EXR ERF EPT3 EPT2 EPT EPSI EPSF EPS3 EPS2 EPS EPI EPDF
DPX DOT DNG DJVU DFONT DDS DCX DCR DCM CUT CUR CRW CR2 CMYKA CMYK CLIP
CIP CIN CAPTION CALS CAL C BRG BRF BMP3 BMP2 BMP BGRA BGR B AVS AVI ARW
ART AI A 3FR)

And that's a lot of text formats.

How about just adding the common ones -- jpeg?, tiff?, png, gif.  That
will take care of 99% of the problems.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





  reply	other threads:[~2011-09-16  1:58 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
2011-09-15 20:03           ` Stefan Monnier
2011-09-16  1:58             ` Lars Magne Ingebrigtsen [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m3sjnx459d.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=9044@debbugs.gnu.org \
    --cc=Peter_Dyballa@freenet.de \
    --cc=monnier@IRO.UMontreal.CA \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).