all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dir-locals and buffer-file-coding-system
@ 2009-10-26 14:15 doclist
  0 siblings, 0 replies; 5+ messages in thread
From: doclist @ 2009-10-26 14:15 UTC (permalink / raw)
  To: help-gnu-emacs

I have a directory containing many files which use a different coding
system than my default. I would like to set them all to open with the
proper coding system.

I tried using

(dir-locals-set-class-variables
 'euc-jp-encoding
 '((nil . ((buffer-file-coding-system . euc-jp-unix)
           (coding-system-for-read . euc-jp-unix)))))
     
which correctly sets the coding system when the file is opened, as
evidenced by the modeline, but the glyphs are not correctly
rendered. They are however rendered correctly when using
universal-coding-system-argument to open the file.

I suspect my problem is that coding-system-for-read is applied after the
file is opened.

What is the correct way to handle file coding for files in a sub-directory?





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

end of thread, other threads:[~2009-11-01 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.9520.1256583861.2239.help-gnu-emacs@gnu.org>
2009-10-30  6:11 ` dir-locals and buffer-file-coding-system Stefan Monnier
2009-11-01 13:23   ` doclist
2009-11-01 13:43   ` doclist
     [not found]   ` <mailman.9854.1257083027.2239.help-gnu-emacs@gnu.org>
2009-11-01 14:24     ` Joost Kremers
2009-10-26 14:15 doclist

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.