GNU bug report logs - #7169
cannot specify coding via dir-locals

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Wed, 6 Oct 2010 19:37:02 UTC

Severity: normal

Merged with 13029

Found in version 24.3.50

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 7169 <at> debbugs.gnu.org
Subject: bug#7169: cannot specify coding via dir-locals
Date: Thu, 07 Oct 2010 10:04:36 +0200
>> I added:
>> (coding . utf-8)
>> to the change-log-mode section in the Emacs .dir-locals.el file, then did
>> 
>> ./src/emacs -Q lisp/ChangeLog.1
>> 
>> The file was opened in undecided-unix. I was hoping to be able to
>> remove the "coding: utf-8" that many of the Emacs ChangeLog files
>> (but not that particular example) have.

> Independently of the potential bug, why is it a good idea to have such
> a setting in the Emacs tree?  There are some files for which this will
> do the wrong thing.

FWIW, I think such a setting should be provided for all Emacs files
rather than just for change-log-mode ones.  This would mean "in the
absence of a coding tag in the file, use utf-8", which seems like it
can only be better than the current "in the absence of a coding tag in
the file, use whatever the user happens to prefer".


        Stefan






This bug report was last modified 12 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.