unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-user@gnu.org
Subject: Re: How to convert from Emacs Lisp to Guile
Date: Fri, 18 Jun 2010 19:19:03 +0200	[thread overview]
Message-ID: <87k4pwgsxk.fsf@ambire.localdomain> (raw)
In-Reply-To: <87typ05qi0.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 18 Jun 2010 17:07:03 +0200")

() ludo@gnu.org (Ludovic Courtès)
() Fri, 18 Jun 2010 17:07:03 +0200

   There’s no such thing as a ‘buffer’ or ‘point’ in Guile so that would
   need to be expressed, e.g., as a procedure that opens a file, reads it
   line by line, writes modified lines to the output file, etc.

   See the (ice-9 regex) and (ice-9 rdelim) modules for useful tools.

Guile has module (ice-9 gap-buffer), which implements ‘buffer’ and ‘point’.
Guile 1.4.x has a more recent version, with more features.  Despite this,
it is still unibyte, and so could use an internals redesign.

Guile 1.4.x also has module (ice-9 editing-buffer), which wants to be
forward-ported (a good chance to redesign the internals, too).  

If anyone wants to tackle this syntax-oriented hack opportunity, feel free.
In particular, i (not being a syntax ninja) would love to learn from the
(ice-9 editing-buffer) internals redesign...

thi



  reply	other threads:[~2010-06-18 17:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18  8:48 How to convert from Emacs Lisp to Guile Cecil Westerhof
2010-06-18 15:07 ` Ludovic Courtès
2010-06-18 17:19   ` Thien-Thi Nguyen [this message]
2010-06-20 14:03     ` Ludovic Courtès
2010-06-20 17:51       ` Thien-Thi Nguyen
2010-06-20 19:06         ` Ludovic Courtès
2010-06-20 19:33           ` Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4pwgsxk.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).