From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: propagating a coding setting across source files Date: Wed, 11 Jan 2012 19:00:25 +0100 Message-ID: <8762gidsqu.fsf@pobox.com> References: <20111202.090607.649170119648618329.hartrumpf@gmx.net> <87hb044hhd.fsf@pobox.com> <20120110.095144.2018247186416321760.hartrumpf@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326304854 13100 80.91.229.12 (11 Jan 2012 18:00:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2012 18:00:54 +0000 (UTC) Cc: guile-user@gnu.org To: Sven Hartrumpf Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 11 19:00:50 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rl2Th-0000rC-3G for guile-user@m.gmane.org; Wed, 11 Jan 2012 19:00:49 +0100 Original-Received: from localhost ([::1]:51961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2Tg-0005PQ-Gp for guile-user@m.gmane.org; Wed, 11 Jan 2012 13:00:48 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2TX-0005Kb-KG for guile-user@gnu.org; Wed, 11 Jan 2012 13:00:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl2TR-00056Y-7F for guile-user@gnu.org; Wed, 11 Jan 2012 13:00:39 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:40299 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2TR-00056G-4N for guile-user@gnu.org; Wed, 11 Jan 2012 13:00:33 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id DAFBC76B4; Wed, 11 Jan 2012 13:00:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=CkBihTtKu1ISZSMKa5NWH1WpAIo=; b=pI8Iar mvmXIKhklAR32xD55DkMaVdSomyTDa//glb1sVYUDVQumXKWx5iN9gZnl4BFeFAe u+0wB9giYvzNaQboUVSaFRspye3DrMAFgVaizPJzOvmcHUT0e/AbL0ZdbQ6d4ETd RJ0KUhYMcr3raoxdQsXNTmG1qCixr3uWZpAZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=b5mII6o6QdqyWafzzFlvbeHy6F6jEKXS tCWzA0/QgRfP+3NAx1g2jn+VZuFE76dj8U/BikZ0/TQOLIG1soth90injA7266f/ jVSlHHgrcZStConYSne28yZTQuEdM11QpduAwm3XqxZS9UYuPHwWLFRBp3dUB2Q0 LssZ7lu7M9E= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id D20F276B3; Wed, 11 Jan 2012 13:00:29 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 3B60876B2; Wed, 11 Jan 2012 13:00:29 -0500 (EST) In-Reply-To: <20120110.095144.2018247186416321760.hartrumpf@gmx.net> (Sven Hartrumpf's message of "Tue, 10 Jan 2012 09:51:44 +0100 (CET)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 25B396E8-3C7E-11E1-9725-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9134 Archived-At: On Tue 10 Jan 2012 09:51, Sven Hartrumpf 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/