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: find s-expr in the REPL? Date: Mon, 25 Sep 2006 08:29:35 +0100 Message-ID: <87irjch09s.fsf@ossau.uklinux.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1159169511 14979 80.91.229.2 (25 Sep 2006 07:31:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 07:31:51 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 25 09:31:49 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRkwO-0005mR-7g for guile-user@m.gmane.org; Mon, 25 Sep 2006 09:31:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRkwN-000585-Pa for guile-user@m.gmane.org; Mon, 25 Sep 2006 03:31:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRkwH-00057h-Q8 for guile-user@gnu.org; Mon, 25 Sep 2006 03:31:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRkwD-00054p-55 for guile-user@gnu.org; Mon, 25 Sep 2006 03:31:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRkwC-00054T-S2 for guile-user@gnu.org; Mon, 25 Sep 2006 03:31:36 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRl0Z-0003BV-9A for guile-user@gnu.org; Mon, 25 Sep 2006 03:36:07 -0400 Original-Received: from laruns (host86-145-154-50.range86-145.btcentralplus.com [86.145.154.50]) by mail3.uklinux.net (Postfix) with ESMTP id 659DD40A8D4; Mon, 25 Sep 2006 07:31:35 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id E36D76F71C; Mon, 25 Sep 2006 08:29:35 +0100 (BST) Original-To: =?iso-8859-1?q?Daniel_Llorens_del_R=EDo?= In-Reply-To: ( =?iso-8859-1?q?Daniel_Llorens_del_R=EDo's_message_of?= "Mon, 25 Sep 2006 03:47:43 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:5540 Archived-At: Daniel Llorens del R=EDo writes: > Hi, > > I'd like to have the following key bindings in the REPL: > > - like up-arrow, but shows previous s-expr instead of last line Just to check what you mean here: in many cases a line is a single sexp, so there is no difference - so I presume you're talking about the case where a sexp is split across lines, e.g. guile> (define (foo) guile> (bar)) and saying that when you do up-arrow after this you'd like to see guile> (define (foo) (bar)) Is that right? > - like ^R, but searches s-exprs instead of lines I think this is just a corollary of the above, isn't it? In other words, if you do "^R foo" you'd also like to see the combined line, as shown just above. It seems to me that these could most easily be achieved by modifying what readline thinks its history is. I'm sure this is doable, but someone needs to look into the details. > Has somebody written readline macros to do these things? Any other way? I'm not familiar with readline macros. Can they do this kind of line combination? Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user