[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: using non-Emacs regexp syntax
From: |
Drew Adams |
Subject: |
RE: using non-Emacs regexp syntax |
Date: |
Mon, 4 Dec 2006 21:16:57 -0800 |
> > Juri proposed a simple implementation: 'setting a new variable
> > `search-dot-regexp' to "\\(.\\|[\\n]\\)".'
>
> There's already a much more efficient implementation. See regex.h:
>
> /* If this bit is set, then . matches newline.
> If not set, then it doesn't. */
> #define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
Fine, as far as implementation goes. What's still needed then is Lisp access
(Lisp variable) and making a toggle command for the variable.