From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: propagating a coding setting across source files Date: Wed, 11 Jan 2012 10:13:05 -0800 (PST) Message-ID: <1326305585.65006.YahooMailNeo@web37902.mail.mud.yahoo.com> References: <20111202.090607.649170119648618329.hartrumpf@gmx.net> <87hb044hhd.fsf@pobox.com> <20120110.095144.2018247186416321760.hartrumpf@gmx.net> <8762gidsqu.fsf@pobox.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326305612 19213 80.91.229.12 (11 Jan 2012 18:13:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2012 18:13:32 +0000 (UTC) Cc: "guile-user@gnu.org" To: Andy Wingo , Sven Hartrumpf Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jan 11 19:13:25 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 1Rl2fs-0007L4-07 for guile-user@m.gmane.org; Wed, 11 Jan 2012 19:13:24 +0100 Original-Received: from localhost ([::1]:41662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2fr-0000mK-2W for guile-user@m.gmane.org; Wed, 11 Jan 2012 13:13:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl2fg-0000gM-So for guile-user@gnu.org; Wed, 11 Jan 2012 13:13:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl2ff-0007MM-Lx for guile-user@gnu.org; Wed, 11 Jan 2012 13:13:12 -0500 Original-Received: from nm9-vm2.bullet.mail.ne1.yahoo.com ([98.138.90.157]:30110) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rl2ff-0007M6-Di for guile-user@gnu.org; Wed, 11 Jan 2012 13:13:11 -0500 Original-Received: from [98.138.90.51] by nm9.bullet.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 18:13:06 -0000 Original-Received: from [98.138.87.4] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 18:13:06 -0000 Original-Received: from [127.0.0.1] by omp1004.mail.ne1.yahoo.com with NNFMP; 11 Jan 2012 18:13:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 359425.72755.bm@omp1004.mail.ne1.yahoo.com Original-Received: (qmail 14712 invoked by uid 60001); 11 Jan 2012 18:13:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1326305585; bh=dbZdWZZD5R57F/Ksp1Kw2i9p7Te0DtuIm2KZQ/p/Suc=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=StiG7goR/lb0flnhJ2FZ6z+tUggqb98ut9esdTl5x+FyneW3p6U5qoYH74N6See707lpWKZ+XEZCpiJsHfrzMZkx79PoBY7EgP4U/7VWYR4Ee9SHs+pulClIi5PYgLTP5D0Kth1GLWaxvD0okH1JnKwigdvKmM3cqVMrbPgVcQM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=abpBjvreIAMNs7w5QfRPLG4NQ2qVpBPGFPRZrxtL1TmGj56CSuR4WZ39w5Q7fTkmk3ciuvRidRucutRMAje7LGne+rq4lyLYe3v4cOdDNOyOZGLzdo4doQZfI7cw2CN/dn+XPpQ1YgtPDVvfTZDdbYu60y25VlKmjxqHCdyXI5U=; X-YMail-OSG: zHir8o0VM1l0DaYj_8q4mJLqRmPoYL3fLgI5GiwJMxgEc4f TpzpFibU8jrfhfdLIi19KsOKRJQSadnLbJjDOAlqm6yPdzxE7pjTg47vyQ2G UP66ngWyI6NUU6etYlwF23o_EdOoPN7Vpc38YwlmUaep2Aysh2zu3XckqMs6 BO0P8M3RFM6Wvz0EB8VuPEkoU_K9Z0Hcc1LiDh8cl8GWnBhRUDuuIepN667d eow64rx4i0eGAlEUY7FWAUHh09Zq_A9NLUEbVoJqS6RkiNnw9h8X84SxXeYL fVDv5kiRH8xjTZw8xuimRG9ov3mf725muFt2V5EtV0Js_p3eonbuCt9Fn_zm que7_I4aAkQLkYFfXOs1M1f5QV0bdnN2zHM1Q7m9HA_0FLt3TuIgh63GDK6s MZMuGXkyTVGH1TD.zZb9J4qlqs_54J5cXClg5E79TRBqRVyFogy75K0NA5r0 3nKPCM1.dqPAbjH2U3lft97xXjabGr7Yy7EE0VxpUnYbzdbp0s3uEl4pOKx_ tJiWqivoNpMxGBZxgT.aYGnicY7pAk50k5nRAbAkCFONIqSkx.caxa5oDoGb AubsAjrhb8mE- Original-Received: from [66.80.183.50] by web37902.mail.mud.yahoo.com via HTTP; Wed, 11 Jan 2012 10:13:05 PST X-Mailer: YahooMailWebService/0.8.115.331698 In-Reply-To: <8762gidsqu.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.138.90.157 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:9135 Archived-At: >>>> I added to the master file the following comment:=0A>>>> =0A>>>> ; c= oding: iso-8859-1=0A>>>> =0A>>>> which works as documented.=0A>>>> How ca= n I avoid to add this comment line to all the other files=0A>>>> which are= currently included by the master file using =0A> "load"?=0A>>> =0A>>> You= can (fluid-set! %default-port-encoding "iso-8859-1").=0A>>> =0A>>> Let us= know if this doesn't work.=0A>> =0A>> If I add this to my master file it = does not help.=0A>> Where should I put your command?=0A> =0A> It could be = that there is an issue regarding compile-time versus=0A> run-time;=0A> =0A>= =A0 http://www.gnu.org/software/guile/manual/html_node/Eval-When.html=0A> = =0A> If you put this at the top of your file, before any use-modules or=0A>= anything like that, does it work?=0A> =0A> =A0 (eval-when (eval load compi= le)=0A> =A0 =A0 (fluid-set!=A0 %default-port-encoding "iso-8859-1"))=0A> = =0A> You might need to run with --auto-compile=3Dfresh to invalidate the=0A= > caches.=0A=A0=0AHey Andy, =0A=A0=0AI tried to dig through the logic of th= is the other day, and I'm not=0Asure that=A0your suggestion can work.=A0 If= "load" ends up calling=0A"primitive-load", then any file without a "coding= :" line is UTF-8.=0A%default-port-encoding doesn't enter in to it.=0A=A0=0A= But there is a lot between "load" and "primitive-load" that I didn't=0Atry = to trace through.=A0 I'm not sure under what conditions "load" calls=0A"pri= mitive load".=0A=A0=0AThanks,=0A=A0=0AMike