Re: Fwd: Emacs-like file buffers

2006-05-14 Thread Kevin Ryde
Bruce Korb <[EMAIL PROTECTED]> writes: > > #ifndef REG_BASIC > # define GUILE_REG_BASIC 0x1 > #else > # define GUILE_REG_BASIC REG_BASIC > #endif Hmm. Yes, if you're calling scm_make_regexp you need that or something similar. (To tell it not to force REG_EXTENDED by default.)

Re: Fwd: Emacs-like file buffers

2006-05-14 Thread Kevin Ryde
"Jason Meade" <[EMAIL PROTECTED]> writes: > > Is there a standard for regular expressions somewhere? Posix at http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html > an affinity for \w I think in posix [[:word:]] (or whatever the syntax actually is), but yes other stuff is

Re: Fwd: Emacs-like file buffers

2006-05-14 Thread Bruce Korb
Jason Meade wrote: Is there a standard for regular expressions somewhere? "a standard"? No. "are standards"? Yes. Many. Naturally, that is the problem. It seems like most implements (from grep through tcl, perl, and beyond) seem to agree on simple stuff like ^[a-c]?002*[^b]+$ etc... (not

Fwd: Emacs-like file buffers

2006-05-13 Thread Jason Meade
On 5/13/06, Rob Browning <[EMAIL PROTECTED]> wrote: "Jason Meade" <[EMAIL PROTECTED]> writes: > Since Perl's source is available, why not just grab its regex engine > and drop it into guile? If that's no good for licensing or other > reasons, then there's always PCRE (http://www.pcre.org/). Eit

Re: Emacs-like file buffers

2006-05-12 Thread Rob Browning
Kevin Ryde <[EMAIL PROTECTED]> writes: > Rob Browning <[EMAIL PROTECTED]> writes: >> My impression was that Guile just uses whatever library it finds on >> the system (if any), and that the library found might or might not be >> POSIX compliant. If that's correct, then I'd much rather have an >>

Re: Emacs-like file buffers

2006-05-12 Thread Kevin Ryde
Rob Browning <[EMAIL PROTECTED]> writes: > > - How is the addition of support for Unicode likely to affect any > regular expression or buffer work? Oh, I see what you mean. Yes, no doubt a utf-8 aware regexp library would be needed. To turn around what I said about glibc, glibc in the righ

Re: Emacs-like file buffers

2006-05-08 Thread Rob Browning
Kevin Ryde <[EMAIL PROTECTED]> writes: > Rob Browning <[EMAIL PROTECTED]> writes: >> >> I would really like to see Guile provide a fixed regular expression >> format, one that doesn't vary depending on what the build platform has >> available. Without that, you cannot write scripts that are porta

Re: Emacs-like file buffers

2006-05-08 Thread Kevin Ryde
Rob Browning <[EMAIL PROTECTED]> writes: > > I would really like to see Guile provide a fixed regular expression > format, one that doesn't vary depending on what the build platform has > available. Without that, you cannot write scripts that are portable, > at least not with respect to regular ex

Re: Emacs-like file buffers

2006-05-07 Thread Rob Browning
"Jason Meade" <[EMAIL PROTECTED]> writes: > Under the "Cool Ideas" section of the Guile website, Emacs-like > buffers are mentioned. I'm thinking this would be a really useful > library, even independent of Guile. Once such a library is built, > then extending it into guile shouldn't be too much e

Emacs-like file buffers

2006-05-07 Thread Jason Meade
Under the "Cool Ideas" section of the Guile website, Emacs-like buffers are mentioned. I'm thinking this would be a really useful library, even independent of Guile. Once such a library is built, then extending it into guile shouldn't be too much extra effort. Is anyone actively pursuing this? If