From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roberto Rosetti Newsgroups: gmane.lisp.guile.user Subject: How to flush history ? Date: Sun, 02 Aug 2009 11:22:22 +0200 Message-ID: <1249204942.25578.5.camel@ubuntu> Reply-To: rob.rosetti@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-z9dg3Gk0/+TRDBBn6azz" X-Trace: ger.gmane.org 1249204948 708 80.91.229.12 (2 Aug 2009 09:22:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 09:22:28 +0000 (UTC) To: guile-user ML Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 02 11:22:22 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXXGn-0006SS-My for guile-user@m.gmane.org; Sun, 02 Aug 2009 11:22:22 +0200 Original-Received: from localhost ([127.0.0.1]:54174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXXGn-00088o-0m for guile-user@m.gmane.org; Sun, 02 Aug 2009 05:22:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXXGh-00086j-Rn for guile-user@gnu.org; Sun, 02 Aug 2009 05:22:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXXGc-000828-Hd for guile-user@gnu.org; Sun, 02 Aug 2009 05:22:14 -0400 Original-Received: from [199.232.76.173] (port=34143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXXGc-000820-8N for guile-user@gnu.org; Sun, 02 Aug 2009 05:22:10 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:54942) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXXGb-0005Lt-Rm for guile-user@gnu.org; Sun, 02 Aug 2009 05:22:10 -0400 Original-Received: by ewy7 with SMTP id 7so593446ewy.42 for ; Sun, 02 Aug 2009 02:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to :content-type:date:message-id:mime-version:x-mailer; bh=N1G9ZetXoWpg6fyrw9XY1yMj7OwFi/Tof3ocQUACFss=; b=av+t1GGrqrMxS+EbpBZfXZn/jJt2xioyXHv1/eoUj5zjA8svHVYxAxky6nUf7vimKT XOwEdEnhKBYceitzPoEUa8MBA2HDIx35Oc/7SYXtPBhy4lyGr8zYKmTc23lPoVM3/7jO LwSBRKgl0wDyeMXVkdbolZ7Vp+OC7LZSeLXXk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:date:message-id:mime-version :x-mailer; b=cbDYP/0lO5ONtRIOQx9W4yo9CfPMBmWgVjze7OQ4gnloC7V20y9TFHO7Dln0bR4Joq tZQDnjekBuebbDmkfZ7c5/XghOQ08h9rMccJp2GmnHw9CxEVbn/eBrgMqPeKjHpOUTxE DxvenSa4CsKJA72PZeCCd1bvnt2viAodWYVgQ= Original-Received: by 10.216.30.81 with SMTP id j59mr90230wea.50.1249204925541; Sun, 02 Aug 2009 02:22:05 -0700 (PDT) Original-Received: from ?192.168.0.5? (host123-20-dynamic.48-82-r.retail.telecomitalia.it [82.48.20.123]) by mx.google.com with ESMTPS id t12sm16535360gvd.14.2009.08.02.02.22.04 (version=SSLv3 cipher=RC4-MD5); Sun, 02 Aug 2009 02:22:04 -0700 (PDT) X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7383 Archived-At: --=-z9dg3Gk0/+TRDBBn6azz Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi all, I'm wondering how to flush the recent readline history to a file. I need this feature for an educational project. The purpose is to permit the REPL user to save his entire history with a simple command. Something like (flush-history ) I've read something about (loggin logger) module but there are not examples about hooks and coding. I'm not a guile hacker,I'm still learning.. Thanks in advance. -- Roberto Rosetti OpenPGP Public key: 30575161 --=-z9dg3Gk0/+TRDBBn6azz Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi all,

I'm wondering how to flush the recent readline history to a file. I need this feature for an educational project.
The purpose is to permit the REPL user to save his entire history with a simple command. Something like (flush-history <params>)
I've read something about (loggin logger) module but there are not examples about hooks and coding.
I'm not a guile hacker,I'm still learning..
Thanks in advance.

-- 

Roberto Rosetti

OpenPGP Public key: 30575161
--=-z9dg3Gk0/+TRDBBn6azz--