Support both "-*-coding:" and "-*- coding:" in magic cookies
authorSteve Youngs <steve@sxemacs.org>
Fri, 10 Jul 2015 06:21:34 +0000 (16:21 +1000)
committerSteve Youngs <steve@sxemacs.org>
Fri, 10 Jul 2015 06:21:34 +0000 (16:21 +1000)
commit7ce6c3cc03be110d63340d790a9c336125299e9b
treebf66888e0592c1fccc5ef91c0bd4e180ad855c79
parentf4138971962eba6a8dd94d7ddc1028e187aee41b
Support both "-*-coding:" and "-*- coding:" in magic cookies

The code responsible for checking coding sytem magic cookies in files was
only searching for "-*-coding:...", however most (most == all in SXEmacs,
but in XEmacs and GNU/Emacs most == majority) files that have these
cookies seem to use "-*- coding:...".  This changeset means SXEmacs will
now honour the coding cookie regardless of it being "-*-coding" or
"-*- coding".

* src/mule/file-coding.c (autodetect_real_coding_system): Look for
" coding:" as well as "coding:"

Signed-off-by: Steve Youngs <steve@sxemacs.org>
src/mule/file-coding.c