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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Glenn Morris <rgm@HIDDEN>; merged with #13029; dated Wed, 6 Oct 2010 19:37:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 7169 13029. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 13:40:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 07 09:40:57 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3qiP-0007vx-DN
	for submit <at> debbugs.gnu.org; Thu, 07 Oct 2010 09:40:57 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1P3qiN-0007vp-Kc
	for 7169 <at> debbugs.gnu.org; Thu, 07 Oct 2010 09:40:56 -0400
Received: from eliz by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <eliz@HIDDEN>)
	id 1P3qlV-0002IO-K6; Thu, 07 Oct 2010 09:44:09 -0400
From: Eli Zaretskii <eliz@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
In-reply-to: <o439sipre9.fsf@HIDDEN> (message from Glenn Morris on
	Thu, 07 Oct 2010 00:18:22 -0400)
Subject: Re: bug#7169: cannot specify coding via dir-locals
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
	<jfzkurnijx.fsf@HIDDEN> <83tykyodzj.fsf@HIDDEN>
	<o439sipre9.fsf@HIDDEN>
Message-Id: <E1P3qlV-0002IO-K6@HIDDEN>
Date: Thu, 07 Oct 2010 09:44:09 -0400
X-Spam-Score: -6.5 (------)
X-Debbugs-Envelope-To: 7169
Cc: 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.5 (------)

> Cc: 7169 <at> debbugs.gnu.org
> From: Glenn Morris <rgm@HIDDEN>
> 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.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 08:01:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 07 04:01:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3lPq-0004mp-Mx
	for submit <at> debbugs.gnu.org; Thu, 07 Oct 2010 04:01:27 -0400
Received: from smtp2a.orange.fr ([80.12.242.139])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1P3lPn-0004mj-NY
	for 7169 <at> debbugs.gnu.org; Thu, 07 Oct 2010 04:01:24 -0400
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf2a12.orange.fr (SMTP Server) with ESMTP id C495A7000274;
	Thu,  7 Oct 2010 10:04:36 +0200 (CEST)
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf2a12.orange.fr (SMTP Server) with ESMTP id B688A70005A9;
	Thu,  7 Oct 2010 10:04:36 +0200 (CEST)
Received: from fmsmemgm.homelinux.net
	(AMontsouris-552-1-107-212.w92-140.abo.wanadoo.fr [92.140.114.212])
	by mwinf2a12.orange.fr (SMTP Server) with ESMTP id 9508E7000274;
	Thu,  7 Oct 2010 10:04:36 +0200 (CEST)
X-ME-UUID: 20101007080436610.9508E7000274@HIDDEN
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id 2C836AE517; Thu,  7 Oct 2010 10:04:36 +0200 (CEST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7169: cannot specify coding via dir-locals
Message-ID: <jwvk4luph0m.fsf-monnier+emacs@HIDDEN>
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
Date: Thu, 07 Oct 2010 10:04:36 +0200
In-Reply-To: <83wrpvnj1d.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 06 Oct
	2010 22:49:34 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.0 (--)
X-Debbugs-Envelope-To: 7169
Cc: Glenn Morris <rgm@HIDDEN>, 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.0 (--)

>> 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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 04:17:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 07 00:17:25 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3hv2-0003Jd-Ke
	for submit <at> debbugs.gnu.org; Thu, 07 Oct 2010 00:17:24 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1P3hv1-0003JY-CI
	for 7169 <at> debbugs.gnu.org; Thu, 07 Oct 2010 00:17:23 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1P3hy8-0004PM-CD; Thu, 07 Oct 2010 00:20:36 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <19629.19092.260952.14711@HIDDEN>
Date: Thu, 7 Oct 2010 00:20:36 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, 7169 <at> debbugs.gnu.org
Subject: Re: bug#7169: cannot specify coding via dir-locals
In-Reply-To: <o439sipre9.fsf@HIDDEN>
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
	<jfzkurnijx.fsf@HIDDEN> <83tykyodzj.fsf@HIDDEN>
	<o439sipre9.fsf@HIDDEN>
X-Attribution: GM
X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs)
X-Hue: magenta
X-Ran: mmEu5C%e9xhT/Bj!1HPH]oa"OXLOk7s0'[u;n6aM2I39jVfc>EDfke4_9$"KkKgAP9F)|`
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 7169
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)


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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 04:15:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 07 00:15:12 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3hsu-0003Ic-6S
	for submit <at> debbugs.gnu.org; Thu, 07 Oct 2010 00:15:12 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1P3hss-0003IX-CJ
	for 7169 <at> debbugs.gnu.org; Thu, 07 Oct 2010 00:15:10 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1P3hvy-0004F2-35; Thu, 07 Oct 2010 00:18:22 -0400
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7169: cannot specify coding via dir-locals
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
	<jfzkurnijx.fsf@HIDDEN> <83tykyodzj.fsf@HIDDEN>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: Jiang Zemin SSL mania United Nations John Kerry Serbian
X-Ran: "vb!YJm^/j>%2*)AJRAeVa+Bn"Z%pE;%}r*:h&>.V;6|M!)N[HzF^Xs*t[c3zy9-iY6ILq
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 07 Oct 2010 00:18:22 -0400
In-Reply-To: <83tykyodzj.fsf@HIDDEN> (Eli Zaretskii's message of "Thu\,
	07 Oct 2010 05\:53\:20 +0200")
Message-ID: <o439sipre9.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 7169
Cc: 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 03:50:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 06 23:50:28 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3hUx-000390-Oo
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2010 23:50:27 -0400
Received: from mtaout20.012.net.il ([80.179.55.166])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1P3hUv-00038v-G1
	for 7169 <at> debbugs.gnu.org; Wed, 06 Oct 2010 23:50:26 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0L9W00F00IIOM600@HIDDEN> for
	7169 <at> debbugs.gnu.org; Thu, 07 Oct 2010 05:53:10 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.148.82]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0L9W00FM2ISL7IC0@HIDDEN>;
	Thu, 07 Oct 2010 05:53:10 +0200 (IST)
Date: Thu, 07 Oct 2010 05:53:20 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7169: cannot specify coding via dir-locals
In-reply-to: <jfzkurnijx.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <83tykyodzj.fsf@HIDDEN>
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
	<jfzkurnijx.fsf@HIDDEN>
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 7169
Cc: 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.5 (-)

> Cc: 7169 <at> debbugs.gnu.org
> From: Glenn Morris <rgm@HIDDEN>
> 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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 6 Oct 2010 20:56:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 06 16:56:54 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3b2j-0000U7-Vl
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2010 16:56:54 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1P3b2h-0000U2-RD
	for 7169 <at> debbugs.gnu.org; Wed, 06 Oct 2010 16:56:52 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1P3b5m-0007zX-PD; Wed, 06 Oct 2010 17:00:03 -0400
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7169: cannot specify coding via dir-locals
References: <moaamrxg9a.fsf@HIDDEN> <83wrpvnj1d.fsf@HIDDEN>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: FIPS140 Blowfish lock picking Ft. Bragg kibo
X-Ran: \@LGTDnVa4t3*9<W"2pT1+qnrtn9NSbc$3O:a_''Qa%;L=ysvpn'P$6P')-]3h{*d;'%).
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 06 Oct 2010 17:00:02 -0400
In-Reply-To: <83wrpvnj1d.fsf@HIDDEN> (Eli Zaretskii's message of "Wed\,
	06 Oct 2010 22\:49\:34 +0200")
Message-ID: <jfzkurnijx.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 7169
Cc: 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at 7169 <at> debbugs.gnu.org:


Received: (at 7169) by debbugs.gnu.org; 6 Oct 2010 20:46:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 06 16:46:26 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3asc-0000Oy-IO
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2010 16:46:26 -0400
Received: from mtaout20.012.net.il ([80.179.55.166])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eliz@HIDDEN>) id 1P3asZ-0000Os-CH
	for 7169 <at> debbugs.gnu.org; Wed, 06 Oct 2010 16:46:24 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0L9V00C00YXG7M00@HIDDEN> for
	7169 <at> debbugs.gnu.org; Wed, 06 Oct 2010 22:49:24 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.148.82]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0L9V00BZLZ6BVF40@HIDDEN>;
	Wed, 06 Oct 2010 22:49:24 +0200 (IST)
Date: Wed, 06 Oct 2010 22:49:34 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#7169: cannot specify coding via dir-locals
In-reply-to: <moaamrxg9a.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <83wrpvnj1d.fsf@HIDDEN>
References: <moaamrxg9a.fsf@HIDDEN>
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 7169
Cc: 7169 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.5 (-)

> From: Glenn Morris <rgm@HIDDEN>
> 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@HIDDEN:
bug#7169; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Oct 2010 19:36:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 06 15:36:19 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P3Zml-0008MN-9v
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2010 15:36:19 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1P3Zmj-0008MG-Hy
	for submit <at> debbugs.gnu.org; Wed, 06 Oct 2010 15:36:18 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1P3Zpp-0003Oz-Gz; Wed, 06 Oct 2010 15:39:29 -0400
To: submit <at> debbugs.gnu.org
Subject: cannot specify coding via dir-locals
From: Glenn Morris <rgm@HIDDEN>
X-Spook: Sundevil Abbas covert video AFSPC Agfa Compsec SWAT John
X-Ran: J*e{{b})6P*(isQN)xI{,ov28^v13E(`L|Q<Xf&^\`$5vzM/7o&E9/&]+60D%&zK@yH$K"
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 06 Oct 2010 15:39:29 -0400
Message-ID: <moaamrxg9a.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

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.




Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7169; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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