bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting eol-type for new files


From: Eli Zaretskii
Subject: Re: setting eol-type for new files
Date: Tue, 26 Sep 2000 16:00:42 +0200 (IST)

On Tue, 26 Sep 2000, Kenichi Handa wrote:

> Stephen Gildea <address@hidden> writes:
> >>    Is anything wrong with customizing file-coding-system-alist and/or
> >>    auto-coding-alist?
> 
> > I can't use file-coding-system-alist because it is ignored for new
> > files.  (This is the suspected bug I reported in my previous message.)
> 
> > I don't want to use auto-coding-alist because it overrides "Coding:"
> > tags in the file.
> 
> ?? Which version of Emacs are you using?
> 
> I've just tested file-coding-system-alist on the current
> development code and on Emacs 20.7.  Both Emacs works as I
> expected, i.e, they pay attention to
> file-coding-system-alist even for a new file, and the
> specification of file-coding-system-alist doesn't override
> coding: tag.

This problem might be specific to DOS/Windows versions of Emacs, which 
install a non-default function via modify-coding-system-alist (see 
find-buffer-file-type-coding-system on lisp/dos-w32.el).  I will look 
into this when I have time.


Btw, I don't really understand why do you need to insist on a new file to 
have latin-1 encoding.  If you enter Latin-1 characters, Emacs will ask 
you for a coding system before saving it, at which point you can choose 
the appropriate encoding (if latin-1 is your default, just RET will do).  
The next version will avoid the question in the latter case, so even this 
nuisance is gone.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]