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: Anniversary hack: Zile editor with Guile support Date: Sun, 12 Feb 2012 16:51:33 -0800 (PST) Message-ID: <1329094293.53143.YahooMailNeo@web37901.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329094303 7831 80.91.229.3 (13 Feb 2012 00:51:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 00:51:43 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 13 01:51:43 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rwk8r-0006WB-FM for guile-user@m.gmane.org; Mon, 13 Feb 2012 01:51:41 +0100 Original-Received: from localhost ([::1]:40158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwk8q-0000kS-Uj for guile-user@m.gmane.org; Sun, 12 Feb 2012 19:51:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwk8m-0000do-BW for guile-user@gnu.org; Sun, 12 Feb 2012 19:51:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rwk8l-00045P-3q for guile-user@gnu.org; Sun, 12 Feb 2012 19:51:36 -0500 Original-Received: from nm25-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.156]:24032) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rwk8k-00045I-UN for guile-user@gnu.org; Sun, 12 Feb 2012 19:51:35 -0500 Original-Received: from [98.139.215.141] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 00:51:33 -0000 Original-Received: from [98.139.212.223] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 00:51:33 -0000 Original-Received: from [127.0.0.1] by omp1032.mail.bf1.yahoo.com with NNFMP; 13 Feb 2012 00:51:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 729961.33420.bm@omp1032.mail.bf1.yahoo.com Original-Received: (qmail 94865 invoked by uid 60001); 13 Feb 2012 00:51:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329094293; bh=QQ4+bFm7ytB/hXTb5AMRjLcmKCQgw71WFeSzMPeY67s=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KlBsuLl01LsRWwpXloTPPm4bde9S/MjHjL58/+ZhMHFtRHl6NJpAB2xlvsCUFPQUC+CqPdGNEBohxyl+doynPYl3y5omTjaADOrx/jlDtBQ/ms2c+loXuu4XMv1YB4ne1tJlfKvcQQWvfxGpFoLwvjUybtIEzkoIz2vClVim9G4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5DF380kFRdM5VG7ZCOhHuSJF0o+YafGV3fubFF4ZWiLymLS42RVsR2xC9bmi3dEpvtNUlbbXxj47kO3pctXQOi1+ZP+eWKDGfTpXQr5YBM6Y/9S5RBR+oN30sf26BOaTAWJ81WBexOem7tvOnuw6c0jPaY9veeWG0xDusFYxXt0=; X-YMail-OSG: Xhg49PkVM1nVg16R7bSCl4cdZZCYlY94qHbvIdQEG5Y90RB bv3syKT2iK6Yt7MEIhj2lAYyOEh_02Lwziax.E1oxRjyNb6QRYIkN1HfsqGy 6Ag52m4aJRrz369nQ6HfCmABySsclOPYKWrtJfKlMvZjVA0X9rwshjwgSry7 gekbTFlvfkHIcFGi9YF.7J3HJ05SyCs.LysoIR8mTHTynV8zEA3RjA53ByDA g.M5naZX.sX_.wJF.oW52kglkVgSSEKpelOkrDWjgkTqdD.xmMANJb4N4hh4 PWK.MEzB9o9ipMyZu_tg3uvoxy1_oL3d5C6yk.G85RJqrsiBGbuXXozck5Qu BEL.Uhh07Tna2kvuyngaHWj.Q9jMNfsrFXZhfwN62SdT7W.KUdxtpd_qlTsb dppK41lK26_ITjvNhyCIzjq6RbZslhTtrgdbPU.Z0mcTAIWXTr4pkZKEYsgd DktD8DZDmOdCeeNLR.ogjKioM76N2P5M6.MZXPitCTAMWL3bIpY3azqqaXDS azyGVOA-- Original-Received: from [71.130.221.176] by web37901.mail.mud.yahoo.com via HTTP; Sun, 12 Feb 2012 16:51:33 PST X-Mailer: YahooMailWebService/0.8.116.338427 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.213.156 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:9266 Archived-At: =0A=0AHello-=0A=0AIn response to Ludo's request for a Guile-2.0 anniversary= hack, I'll=0Astart by offering a release of a hack I made.=A0 But this isn= 't my=0Aofficial hack: it is just a building block.=0A=0AZile-on-Guile is a= version of GNU Zile that uses GNU Guile as an=0Aextension language.=A0 The= original GNU Zile was a small editor in the=0Astyle of GNU Emacs and it ha= s its own tiny embedded Lisp interpreter.=0AI've replaced that interpreter = with Guile.=0A=0AYou can find the download at=0A=0Ahttps://github.com/downl= oads/spk121/zile/zile-on-guile-0.0.tar.gz=0A=0AThis is a 0.0 release, so if= it even builds on anyone else's machine,=0AI'd be totally surprised.=0A=0A= You can find the Git repository at =0A=0Ahttps://github.com/spk121/zile=0A= =0AThe Guile extension can be accessed this way.=0A=0A-- Pressing Alt+C bri= ngs up a REPL.=A0 You can do all your standard REPL=0A=A0=A0 things.=0A=0A-= - In the REPL, one can create and bind new commands.=A0 Define a=0A=A0=A0 p= rocedure of zero arguments, export it, and then bind it to a key=0A=A0=A0 u= sing 'set-key'.=0A=0A=A0=A0 For example:=0A=0A=A0=A0=A0=A0 (define (blammo)= =0A=A0=A0=A0=A0=A0=A0 (insert "blammo"))=0A=A0=A0=A0=A0 (export blammo)=0A= =A0=A0=A0=A0 (set-key "\\F9" 'blammo)=0A=0A=A0=A0 This creates a function t= hat inserts the world "blammo" at the mark=0A=A0=A0 whenever is presse= d.=0A=0A-- And, if really you wanted to, you could edit your current buffer= in=0A=A0=A0 the REPL=0A=0A=A0=A0 For example:=0A=0A=A0=A0=A0=A0=A0 (insert= "here is some text")=0A=A0=A0=A0=A0=A0 (forward-char)=0A=0A=A0=A0 But that= would just be silly.=0A=0AThanks,=0A=0AMike Gran=A0 =A0 =A0=A0