all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
@ 2012-11-29 16:43 Helmut Eller
  2012-11-29 17:51 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Helmut Eller @ 2012-11-29 16:43 UTC (permalink / raw)
  To: 13029

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@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
  2012-11-29 16:43 bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work Helmut Eller
@ 2012-11-29 17:51 ` Glenn Morris
  2012-11-29 19:02   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-11-29 17:51 UTC (permalink / raw)
  To: Helmut Eller; +Cc: 13029

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work
  2012-11-29 17:51 ` Glenn Morris
@ 2012-11-29 19:02   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2012-11-29 19:02 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13029, Helmut Eller

>> 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-29 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29 16:43 bug#13029: 24.3.50; coding system from .dir-locals.el doesn't work Helmut Eller
2012-11-29 17:51 ` Glenn Morris
2012-11-29 19:02   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.