Vincent Lefevre <[EMAIL PROTECTED]> writes: > (add-to-list 'auto-coding-alist '("" . locale-coding-system))
> I don't get any error when the file is loaded by the above command, > but when I modify the file and try to save it, I get the following > warning: > Warning (:warning): Invalid coding system `locale-coding-system' is specified > for the current buffer/file by the variable `auto-coding-alist'. > It is highly recommended to fix it before writing to a file. What else did you expect? If you wanted to put the *value* of the `locale-coding-system' variable in the alist, you should have used something like the following: (add-to-list 'auto-coding-alist `("" . ,locale-coding-system)) (Warning, if locale-coding-system is nil that will not make a cons.) Here you're just setting the coding system to 'locale-coding-system, which is not a valid coding system... > Note: tests in utf-8 and iso-8859-1 locales show that the above line > is correctly taken into account when loading a utf-8 file, i.e. the > locale coding system is chosen in both cases. For some other unrelated reason, undoubtedly. This is not a bug, so closing. -- ,''`. : :' : Romain Francoise <[EMAIL PROTECTED]> `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]