* 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
* Re: dir-locals and buffer-file-coding-system
[not found] <mailman.9520.1256583861.2239.help-gnu-emacs@gnu.org>
@ 2009-10-30 6:11 ` Stefan Monnier
2009-11-01 13:23 ` doclist
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Stefan Monnier @ 2009-10-30 6:11 UTC (permalink / raw)
To: help-gnu-emacs
> What is the correct way to handle file coding for files in a sub-directory?
Try file-name-coding-system
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: dir-locals and buffer-file-coding-system
2009-10-30 6:11 ` 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>
2 siblings, 0 replies; 5+ messages in thread
From: doclist @ 2009-11-01 13:23 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> What is the correct way to handle file coding for files in a sub-directory?
>
> Try file-name-coding-system
The documentation says that it is the "coding system for encoding file
names". I want set the coding system for file *contents*.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: dir-locals and buffer-file-coding-system
2009-10-30 6:11 ` 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>
2 siblings, 0 replies; 5+ messages in thread
From: doclist @ 2009-11-01 13:43 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> What is the correct way to handle file coding for files in a sub-directory?
>
> Try file-name-coding-system
There seems to be a typo in the documentation string for
file-name-coding-system. It reads
If it is nil, `default-file-name-coding-system' (which see) is used.
The "(which see)" part seems unintelligble to me.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: dir-locals and buffer-file-coding-system
[not found] ` <mailman.9854.1257083027.2239.help-gnu-emacs@gnu.org>
@ 2009-11-01 14:24 ` Joost Kremers
0 siblings, 0 replies; 5+ messages in thread
From: Joost Kremers @ 2009-11-01 14:24 UTC (permalink / raw)
To: help-gnu-emacs
doclist wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> There seems to be a typo in the documentation string for
> file-name-coding-system. It reads
>
> If it is nil, `default-file-name-coding-system' (which see) is used.
>
> The "(which see)" part seems unintelligble to me.
it's not a typo, it's a literat translation of the latin phrase "quod vide", and
occurs quite often in emacs documentation.
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ 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 --
2009-10-26 14:15 dir-locals and buffer-file-coding-system doclist
[not found] <mailman.9520.1256583861.2239.help-gnu-emacs@gnu.org>
2009-10-30 6:11 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).