GNU bug report logs -
#7169
cannot specify coding via dir-locals
Previous Next
To reply to this bug, email your comments to 7169 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Wed, 06 Oct 2010 19:37:02 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
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.
It seems `find-auto-coding' handles the coding: cookie independently
of the local-variables mechanism. It would be nice if it would check
for a directory-local coding if no file-local setting is found.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Wed, 06 Oct 2010 20:47:02 GMT)
Full text and
rfc822 format available.
Message #6 received at 7169 <at> debbugs.gnu.org (full text, mbox):
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 06 Oct 2010 15:39:29 -0400
> Cc:
>
> Package: emacs
>
> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Wed, 06 Oct 2010 20:57:02 GMT)
Full text and
rfc822 format available.
Message #9 received at 7169 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
> 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.
It will?
There are 59 ChangeLog* files in the Emacs tree.
50 have a coding: cookie.
All but one of those (an old Gnus ChangeLog) use utf-8.
I assume people just forget to add it to the other 9.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Thu, 07 Oct 2010 03:51:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 7169 <at> debbugs.gnu.org (full text, mbox):
> Cc: 7169 <at> debbugs.gnu.org
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Wed, 06 Oct 2010 17:00:02 -0400
>
> Eli Zaretskii wrote:
>
> > 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.
>
> It will?
> There are 59 ChangeLog* files in the Emacs tree.
> 50 have a coding: cookie.
> All but one of those (an old Gnus ChangeLog) use utf-8.
I wasn't talking about ChangeLog files. Unless I misunderstand, your
addition will be in effect with any file in the tree.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Thu, 07 Oct 2010 04:16:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 7169 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii wrote:
> I wasn't talking about ChangeLog files. Unless I misunderstand, your
> addition will be in effect with any file in the tree.
I wrote:
> I added:
>
> (coding . utf-8)
>
> to the change-log-mode section in the Emacs .dir-locals.el file
^^^^^^^^^^^^^^^^^^^^^^^
So like the settings for bug-reference-url-format etc, it would only
apply to ChangeLog files.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Thu, 07 Oct 2010 04:18:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 7169 <at> debbugs.gnu.org (full text, mbox):
Maybe it is impossible to do, because find-auto-coding doesn't yet
know the mode when it runs. I don't know, that's why this is a bug
report.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Thu, 07 Oct 2010 08:02:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 7169 <at> debbugs.gnu.org (full text, mbox):
>> 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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7169
; Package
emacs
.
(Thu, 07 Oct 2010 13:41:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 7169 <at> debbugs.gnu.org (full text, mbox):
> Cc: 7169 <at> debbugs.gnu.org
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Thu, 07 Oct 2010 00:18:22 -0400
>
> > I added:
> >
> > (coding . utf-8)
> >
> > to the change-log-mode section in the Emacs .dir-locals.el file
> ^^^^^^^^^^^^^^^^^^^^^^^
Sorry.
Merged 7169 13029.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 29 Nov 2012 17:56:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.