[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: propagating a coding setting across source files
From: |
Andy Wingo |
Subject: |
Re: propagating a coding setting across source files |
Date: |
Wed, 11 Jan 2012 19:00:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Tue 10 Jan 2012 09:51, Sven Hartrumpf <address@hidden> writes:
> Hi Andy.
>
> Mon, 09 Jan 2012 23:51:42 +0100, wingo wrote:
>>> I added to the master file the following comment:
>>>
>>> ; coding: iso-8859-1
>>>
>>> which works as documented.
>>> How can I avoid to add this comment line to all the other files
>>> which are currently included by the master file using "load"?
>>
>> You can (fluid-set! %default-port-encoding "iso-8859-1").
>>
>> Let us know if this doesn't work.
>
> If I add this to my master file it does not help.
> Where should I put your command?
It could be that there is an issue regarding compile-time versus
run-time;
http://www.gnu.org/software/guile/manual/html_node/Eval-When.html
If you put this at the top of your file, before any use-modules or
anything like that, does it work?
(eval-when (eval load compile)
(fluid-set! %default-port-encoding "iso-8859-1"))
You might need to run with --auto-compile=fresh to invalidate the
caches.
Regards,
Andy
--
http://wingolog.org/