From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: bug#13077: guile: add repl-option for customized print Date: Wed, 12 Dec 2012 13:49:30 +0800 Organization: HFG Message-ID: <1355291370.2835.18.camel@Renee-desktop.suse> References: <87hao21nte.fsf@gmail.com> <1354598358.25329.4.camel@Renee-desktop.suse> <1355285005.2835.14.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355293097 31694 80.91.229.3 (12 Dec 2012 06:18:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 06:18:17 +0000 (UTC) Cc: guile-devel@gnu.org To: Daniel Hartwig Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Dec 12 07:18:31 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TifeH-0004tF-JH for guile-devel@m.gmane.org; Wed, 12 Dec 2012 07:18:29 +0100 Original-Received: from localhost ([::1]:33753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tife4-0002p4-SI for guile-devel@m.gmane.org; Wed, 12 Dec 2012 01:18:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tifdu-0002oK-Vn for guile-devel@gnu.org; Wed, 12 Dec 2012 01:18:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tifdp-0005I0-6t for guile-devel@gnu.org; Wed, 12 Dec 2012 01:18:06 -0500 Original-Received: from mail-qc0-f177.google.com ([209.85.216.177]:56365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tifdp-0005Hs-1K for guile-devel@gnu.org; Wed, 12 Dec 2012 01:18:01 -0500 Original-Received: by mail-qc0-f177.google.com with SMTP id u28so146015qcs.22 for ; Tue, 11 Dec 2012 22:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=AJuGVhEbXo7BPNwuo4yfa0SEvxWAZPmdCPBad+4gKiI=; b=jsuZ4X4pYtG+D2k2bqC4YOY2wJO0XCPTE/vAWvn0clhc92i0m6LW91BYsXBcxzltlW qGETblNSmrEAQWJo5T12zL/L4fGrGpyKL+ejE8eTQ3euMVebjm/A0n5xtELh5JmixGrl BH6TRGn1zPVf09X4KgFyZV0/llnJVsglSlUEz4E8V2TKdyY42jlHx0M/gUW5aLd3kGCi wPVx3DYE+FKhGtvUUGO62fIYnOP7TfT2acaSsANKaqYdctcGHp0ofRp7wIusfl/gCB3j +A0iZSjyl0T6roNorv6L+9uGg3AEAulAdFcqgdvw3TUJMIlnHQwHEdvWN/jicr3rYG+K bi2A== Original-Received: by 10.224.184.143 with SMTP id ck15mr1354336qab.67.1355291376322; Tue, 11 Dec 2012 21:49:36 -0800 (PST) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id h16sm19241862qae.8.2012.12.11.21.49.31 (version=SSLv3 cipher=OTHER); Tue, 11 Dec 2012 21:49:34 -0800 (PST) In-Reply-To: X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.216.177 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15338 Archived-At: On Wed, 2012-12-12 at 13:00 +0800, Daniel Hartwig wrote: > [No need to Cc the bug report] > > On 12 December 2012 12:03, Nala Ginrut wrote: > > Seems (fluid-ref *repl-stack*) is not a pair/list when REPL is just > > started? > > Correction: is not a pair/list when /guile/ is just started. The > program, guile, is not a REPL, that is only an optional component of > it. > > You can't set REPL options before there is a REPL. The rc file > (.guile) is applicable to all of guile, and read during initialization > which is before any REPL is created. > > Try repl-default-option-set!. repl-default-option-set! seems didn't make sense. How can I check the REPL exist? My idea is to do that after I detected the REPL existed. I believe people more like to activate the colored-REPL automatically when ~/.guile is setup. Rather than call (activate-colorized) manually, just like 'readline' module does. Regards.