From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: How to flush history ? Date: Fri, 14 Aug 2009 22:39:55 +0100 Message-ID: <87ws56yt04.fsf@arudy.ossau.uklinux.net> References: <1249204942.25578.5.camel@ubuntu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250286017 28674 80.91.229.12 (14 Aug 2009 21:40:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2009 21:40:17 +0000 (UTC) Cc: guile-user ML To: rob.rosetti@gmail.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 14 23:40:10 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 1Mc4VL-0003jw-5G for guile-user@m.gmane.org; Fri, 14 Aug 2009 23:40:07 +0200 Original-Received: from localhost ([127.0.0.1]:44725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc4VK-0004of-ID for guile-user@m.gmane.org; Fri, 14 Aug 2009 17:40:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mc4VF-0004oY-SK for guile-user@gnu.org; Fri, 14 Aug 2009 17:40:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mc4VB-0004o3-Dm for guile-user@gnu.org; Fri, 14 Aug 2009 17:40:01 -0400 Original-Received: from [199.232.76.173] (port=41039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mc4VB-0004o0-8a for guile-user@gnu.org; Fri, 14 Aug 2009 17:39:57 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:40947) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mc4VA-00067v-SC for guile-user@gnu.org; Fri, 14 Aug 2009 17:39:57 -0400 Original-Received: from arudy (host86-152-99-133.range86-152.btcentralplus.com [86.152.99.133]) by mail3.uklinux.net (Postfix) with ESMTP id 60FED1F69DE; Fri, 14 Aug 2009 22:39:56 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 9F6AD38021; Fri, 14 Aug 2009 22:39:55 +0100 (BST) In-Reply-To: <1249204942.25578.5.camel@ubuntu> (Roberto Rosetti's message of "Sun\, 02 Aug 2009 11\:22\:22 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:7407 Archived-At: Roberto Rosetti writes: > 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. Hi Roberto, The readline history is already saved to a file, ~/.guile_history. Does that provide what you need? (I'm not sure offhand if it is saved after every line is entered, or when you quit Guile; but maybe that difference is not important for you anyway.) Neil