[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Emacs-like file buffers
From: |
Kevin Ryde |
Subject: |
Re: Fwd: Emacs-like file buffers |
Date: |
Mon, 15 May 2006 08:34:25 +1000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Bruce Korb <address@hidden> writes:
>
> #ifndef REG_BASIC
> # define GUILE_REG_BASIC 0x10000
> #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.)
> P.S. one thing missing from the ice-9 regex functions seems to be a way
> to pass such flags through to the implementing libguile functions.
> Perhaps I just missed how to do it?
>
> (define (string-match pattern str . args)
> (let ((rx (make-regexp pattern))
> (start (if (pair? args) (car args) 0)))
> (regexp-exec rx str start)))
Alas yes, you can't get compilation flags like regexp/newline through
with string-match. I wanted that the other day and did
(regexp-exec (make-regexp "..." regexp/newline) str)
Maybe string-match could separate comp flags vs exec flags among its
args, though I guess that'd depend on the two sets of constants being
distinct ...
- Emacs-like file buffers, Jason Meade, 2006/05/07
- Re: Emacs-like file buffers, Rob Browning, 2006/05/07
- Re: Emacs-like file buffers, Kevin Ryde, 2006/05/08
- Re: Emacs-like file buffers, Rob Browning, 2006/05/08
- Re: Emacs-like file buffers, Kevin Ryde, 2006/05/12
- Re: Emacs-like file buffers, Rob Browning, 2006/05/13
- Message not available
- Message not available
- Message not available
- Fwd: Emacs-like file buffers, Jason Meade, 2006/05/13
- Re: Fwd: Emacs-like file buffers, Bruce Korb, 2006/05/14
- Re: Fwd: Emacs-like file buffers,
Kevin Ryde <=
- Re: Fwd: Emacs-like file buffers, Kevin Ryde, 2006/05/14
- Regular expressions, Ludovic Courtès, 2006/05/19