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

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Thu, 29 Nov 2012 16:47:02 UTC

Severity: normal

Merged with 7169

Found in version 24.3.50

To reply to this bug, email your comments to 13029 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13029; Package emacs. (Thu, 29 Nov 2012 16:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 29 Nov 2012 16:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; coding system from .dir-locals.el doesn't work
Date: Thu, 29 Nov 2012 17:43:46 +0100
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 <at> cs.ucla.edu-20121125075055-skssz1ov908v90ba
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13029; Package emacs. (Thu, 29 Nov 2012 17:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 13029 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 13029 <at> debbugs.gnu.org
Subject: Re: bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
Date: Thu, 29 Nov 2012 12:51:59 -0500
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.




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.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13029; Package emacs. (Thu, 29 Nov 2012 19:05:01 GMT) Full text and rfc822 format available.

Message #13 received at 13029 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 13029 <at> debbugs.gnu.org, Helmut Eller <eller.helmut <at> gmail.com>
Subject: Re: bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
Date: Thu, 29 Nov 2012 14:02:05 -0500
>> 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




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.