From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 15:36:19 2010 Received: (at submit) by debbugs.gnu.org; 6 Oct 2010 19:36:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3Zml-0008MN-9v for submit@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 ) id 1P3Zmj-0008MG-Hy for submit@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 ) id 1P3Zpp-0003Oz-Gz; Wed, 06 Oct 2010 15:39:29 -0400 To: submit@debbugs.gnu.org Subject: cannot specify coding via dir-locals From: Glenn Morris X-Spook: Sundevil Abbas covert video AFSPC Agfa Compsec SWAT John X-Ran: J*e{{b})6P*(isQN)xI{,ov28^v13E(`L|Q 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 16:46:26 2010 Received: (at 7169) by debbugs.gnu.org; 6 Oct 2010 20:46:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3asc-0000Oy-IO for submit@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 ) id 1P3asZ-0000Os-CH for 7169@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@a-mtaout20.012.net.il> for 7169@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@a-mtaout20.012.net.il>; Wed, 06 Oct 2010 22:49:24 +0200 (IST) Date: Wed, 06 Oct 2010 22:49:34 +0200 From: Eli Zaretskii Subject: Re: bug#7169: cannot specify coding via dir-locals In-reply-to: X-012-Sender: halo1@inter.net.il To: Glenn Morris Message-id: <83wrpvnj1d.fsf@gnu.org> References: X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 7169 Cc: 7169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) > From: Glenn Morris > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 16:56:54 2010 Received: (at 7169) by debbugs.gnu.org; 6 Oct 2010 20:56:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3b2j-0000U7-Vl for submit@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 ) id 1P3b2h-0000U2-RD for 7169@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 ) id 1P3b5m-0007zX-PD; Wed, 06 Oct 2010 17:00:03 -0400 To: Eli Zaretskii Subject: Re: bug#7169: cannot specify coding via dir-locals References: <83wrpvnj1d.fsf@gnu.org> From: Glenn Morris X-Spook: FIPS140 Blowfish lock picking Ft. Bragg kibo X-Ran: \@LGTDnVa4t3*9 (Eli Zaretskii's message of "Wed\, 06 Oct 2010 22\:49\:34 +0200") Message-ID: 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 23:50:28 2010 Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 03:50:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3hUx-000390-Oo for submit@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 ) id 1P3hUv-00038v-G1 for 7169@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@a-mtaout20.012.net.il> for 7169@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@a-mtaout20.012.net.il>; Thu, 07 Oct 2010 05:53:10 +0200 (IST) Date: Thu, 07 Oct 2010 05:53:20 +0200 From: Eli Zaretskii Subject: Re: bug#7169: cannot specify coding via dir-locals In-reply-to: X-012-Sender: halo1@inter.net.il To: Glenn Morris Message-id: <83tykyodzj.fsf@gnu.org> References: <83wrpvnj1d.fsf@gnu.org> X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 7169 Cc: 7169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) > Cc: 7169@debbugs.gnu.org > From: Glenn Morris > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 07 00:15:12 2010 Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 04:15:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3hsu-0003Ic-6S for submit@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 ) id 1P3hss-0003IX-CJ for 7169@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 ) id 1P3hvy-0004F2-35; Thu, 07 Oct 2010 00:18:22 -0400 To: Eli Zaretskii Subject: Re: bug#7169: cannot specify coding via dir-locals References: <83wrpvnj1d.fsf@gnu.org> <83tykyodzj.fsf@gnu.org> From: Glenn Morris 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@gnu.org> (Eli Zaretskii's message of "Thu\, 07 Oct 2010 05\:53\:20 +0200") Message-ID: 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 07 00:17:25 2010 Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 04:17:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3hv2-0003Jd-Ke for submit@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 ) id 1P3hv1-0003JY-CI for 7169@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 ) 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@fencepost.gnu.org> Date: Thu, 7 Oct 2010 00:20:36 -0400 From: Glenn Morris To: Eli Zaretskii , 7169@debbugs.gnu.org Subject: Re: bug#7169: cannot specify coding via dir-locals In-Reply-To: References: <83wrpvnj1d.fsf@gnu.org> <83tykyodzj.fsf@gnu.org> 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 07 04:01:27 2010 Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 08:01:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3lPq-0004mp-Mx for submit@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 ) id 1P3lPn-0004mj-NY for 7169@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@mwinf2a12.orange.fr Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 2C836AE517; Thu, 7 Oct 2010 10:04:36 +0200 (CEST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#7169: cannot specify coding via dir-locals Message-ID: References: <83wrpvnj1d.fsf@gnu.org> Date: Thu, 07 Oct 2010 10:04:36 +0200 In-Reply-To: <83wrpvnj1d.fsf@gnu.org> (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 , 7169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 07 09:40:57 2010 Received: (at 7169) by debbugs.gnu.org; 7 Oct 2010 13:40:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P3qiP-0007vx-DN for submit@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 ) id 1P3qiN-0007vp-Kc for 7169@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 ) id 1P3qlV-0002IO-K6; Thu, 07 Oct 2010 09:44:09 -0400 From: Eli Zaretskii To: Glenn Morris In-reply-to: (message from Glenn Morris on Thu, 07 Oct 2010 00:18:22 -0400) Subject: Re: bug#7169: cannot specify coding via dir-locals References: <83wrpvnj1d.fsf@gnu.org> <83tykyodzj.fsf@gnu.org> Message-Id: Date: Thu, 07 Oct 2010 09:44:09 -0400 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7169 Cc: 7169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Cc: 7169@debbugs.gnu.org > From: Glenn Morris > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 29 12:55:32 2012 Received: (at control) by debbugs.gnu.org; 29 Nov 2012 17:55:32 +0000 Received: from localhost ([127.0.0.1]:45486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Te8Ki-0005vu-5E for submit@debbugs.gnu.org; Thu, 29 Nov 2012 12:55:32 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:44750) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Te8Kh-0005vo-44 for control@debbugs.gnu.org; Thu, 29 Nov 2012 12:55:31 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Te8Ik-0004hb-3m for control@debbugs.gnu.org; Thu, 29 Nov 2012 12:53:30 -0500 Date: Thu, 29 Nov 2012 12:53:30 -0500 Message-Id: Subject: control message for bug 13029 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) merge 7169 13029