GNU bug report logs - #13029
24.3.50; coding system from .dir-locals.el doesn't work

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: Helmut Eller <eller.helmut@HIDDEN>; merged with #7169; dated Thu, 29 Nov 2012 16:47:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 13029) by debbugs.gnu.org; 29 Nov 2012 19:04:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 29 14:04:17 2012
Received: from localhost ([127.0.0.1]:45534 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te9PB-0008SR-2w
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:04:17 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:22171)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1Te9P5-0008SG-W6
	for 13029 <at> debbugs.gnu.org; Thu, 29 Nov 2012 14:04:12 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxKh9/2dsb2JhbABEtBGBCIIVAQEEAVYjEAsOJhIUGA0kiBwFC7l+kEQDiEKNaI0JgViDBw
X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="208764590"
Received: from 69-196-168-125.dsl.teksavvy.com (HELO ceviche.home)
	([69.196.168.125])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	29 Nov 2012 14:02:05 -0500
Received: by ceviche.home (Postfix, from userid 20848)
	id B621966127; Thu, 29 Nov 2012 14:02:05 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
Message-ID: <jwvmwy0z146.fsf-monnier+emacs@HIDDEN>
References: <m2y5hk8im5.fsf@HIDDEN> <j98v9k8fgg.fsf@HIDDEN>
Date: Thu, 29 Nov 2012 14:02:05 -0500
In-Reply-To: <j98v9k8fgg.fsf@HIDDEN> (Glenn Morris's message of
	"Thu, 29 Nov 2012 12:51:59 -0500")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 13029
Cc: 13029 <at> debbugs.gnu.org, Helmut Eller <eller.helmut@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -0.0 (/)

>> Specifying the coding system in a .dir-locals.el doesn't seem to have
>> the same effect as when adding a file local variable. 
> You can't specify coding via dir-locals.
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7169
> I've thought about it a few times, but it seems hard to make it work.

I think it would be worthwhile to make it work for the particular case
where it's not that hard, i.e. when the setting applies to all modes.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13029; Package emacs. Full text available.
Merged 7169 13029. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 13029) by debbugs.gnu.org; 29 Nov 2012 17:54:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 29 12:54:04 2012
Received: from localhost ([127.0.0.1]:45482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te8JH-0005tm-Qu
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 12:54:04 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:44647)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Te8JG-0005tf-Mf
	for 13029 <at> debbugs.gnu.org; Thu, 29 Nov 2012 12:54:03 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Te8HI-0004No-2Q; Thu, 29 Nov 2012 12:52:00 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Helmut Eller <eller.helmut@HIDDEN>
Subject: Re: bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
References: <m2y5hk8im5.fsf@HIDDEN>
X-Spook: Syria S Box ASO CNCIS eternity server undercover UFO JUWTF
X-Ran: I'&Xft1)lfcs}tmk2}VH*p!9<[?$C<PIyz}laCXO[uZ8q0['~&E'Rg&!C\n{I%cZ-`SW22
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 29 Nov 2012 12:51:59 -0500
In-Reply-To: <m2y5hk8im5.fsf@HIDDEN> (Helmut Eller's message of "Thu, 29
	Nov 2012 17:43:46 +0100")
Message-ID: <j98v9k8fgg.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: -4.6 (----)
X-Debbugs-Envelope-To: 13029
Cc: 13029 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -5.4 (-----)

Helmut Eller wrote:

> Specifying the coding system in a .dir-locals.el doesn't seem to have
> the same effect as when adding a file local variable. 

You can't specify coding via dir-locals.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7169

I've thought about it a few times, but it seems hard to make it work.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13029; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 29 Nov 2012 16:46:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 29 11:46:24 2012
Received: from localhost ([127.0.0.1]:45402 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Te7Fo-0004H2-0Q
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 11:46:24 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35807)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7Fl-0004Gv-Ug
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 11:46:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7Df-0004wd-RO
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 11:44:21 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:44292)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7Df-0004wZ-OP
	for submit <at> debbugs.gnu.org; Thu, 29 Nov 2012 11:44:11 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59160)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7DW-0007KP-89
	for bug-gnu-emacs@HIDDEN; Thu, 29 Nov 2012 11:44:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7DM-0004vK-FE
	for bug-gnu-emacs@HIDDEN; Thu, 29 Nov 2012 11:44:02 -0500
Received: from mail-ee0-f41.google.com ([74.125.83.41]:59985)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7DM-0004v5-8m
	for bug-gnu-emacs@HIDDEN; Thu, 29 Nov 2012 11:43:52 -0500
Received: by mail-ee0-f41.google.com with SMTP id d41so9866606eek.0
	for <bug-gnu-emacs@HIDDEN>; Thu, 29 Nov 2012 08:43:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:subject:date:message-id:mime-version:content-type;
	bh=DxW+o+Pa6OBLtyBWIxAKTwDbVKCiaa9H+MCUkpvvtTQ=;
	b=fMUCCruWB+AhWqb89pY60WkyPv+rm+xFHuQhVK3FQygcaCGnTlR+n4MZM1ZrDWpkFk
	QTgVtHxvP+ugsjLqRN3q0QfBGEDfj6tY1cOQnOptPFXCoB9rMFkCDJ18xcDDZ+H3Ny7P
	zdcUNrhEhV34fopicKx5zBE7cEm+E1/qteU9/7XoqdaV2jp6VoA+HhJ3NsYHXR2S1cro
	HIDRtUPlRC56MCxWi7TBYBmSjRekAfJ+AEh0iKw0ucgFSbG04XEkcuFe3/tqCqhE3dE/
	CQdAodOOGZlylcBGclFDt2sKxIVRNLTUhyRJfFE5OLT2J/1rbI/7DRq+r4sinUb/R8Sl
	uMcA==
Received: by 10.14.216.193 with SMTP id g41mr83994406eep.37.1354207430738;
	Thu, 29 Nov 2012 08:43:50 -0800 (PST)
Received: from ix (dial-189056.pool.broadband44.net. [212.46.189.56])
	by mx.google.com with ESMTPS id g47sm4608249eeo.6.2012.11.29.08.43.47
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 29 Nov 2012 08:43:49 -0800 (PST)
Received: from helmut by ix with local (Exim 4.72)
	(envelope-from <eller.helmut@HIDDEN>) id 1Te7DG-0000YM-SZ
	for bug-gnu-emacs@HIDDEN; Thu, 29 Nov 2012 17:43:46 +0100
From: Helmut Eller <eller.helmut@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; coding system from .dir-locals.el doesn't work
Date: Thu, 29 Nov 2012 17:43:46 +0100
Message-ID: <m2y5hk8im5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -4.2 (----)

Specifying the coding system in a .dir-locals.el doesn't seem to have
the same effect as when adding a file local variable.  E.g.
I have this in .dir-locals.el:

  ((lisp-mode
    (coding . us-ascii-unix)))

and when opening a lisp file, C-h v buffer-file-coding-system shows
this:

  buffer-file-coding-system is a variable defined in `C source code'.
  Its value is undecided-unix

If I use a file local variable instead ;; -*- coding: us-ascii-unix -*-
C-h v buffer-file-coding-system shows this:

  buffer-file-coding-system is a variable defined in `C source code'.
  Its value is us-ascii-unix

This is the first time ever that I wanted to use directory local
variables.  So maybe I did something wrong.



In GNU Emacs 24.3.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2012-11-25 on ix
Bzr revision: 111007 eggert@HIDDEN
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description:	Debian GNU/Linux 6.0.4 (squeeze)

Configured using:
 `configure '--with-jpeg=no' '--with-gif=no' '--with-tiff=no''

Important settings:
  value of $LANG: en_US
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

Major mode: Lisp

Minor modes in effect:
  slime-mode: t
  outline-minor-mode: t
  display-time-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t




Acknowledgement sent to Helmut Eller <eller.helmut@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13029; 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.