[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Structural regular expressions
From: |
Drew Adams |
Subject: |
RE: Structural regular expressions |
Date: |
Sun, 12 Sep 2010 09:43:49 -0700 |
> There is a related need for searching that could be built on such
> capability: AND.
>
> Quite often I find myself searching for a node/a tree in a big .org
> file containing both word a and word b.
And in an unspecified order, no doubt. In vanilla Emacs the closest we have for
this is `apropos' with keyword input. The behavior is special-built for this
particular command; it is not a general feature.
In Icicles you can hit `S-SPC' to get such `AND' filtering during completion (of
any input). You can add patterns on the fly, preceding each by `S-SPC', thus
narrowing down the choices progressively, as you see fit. I call this
"progressive" completion.
http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#toc10
And you can hit `C-~' to get the complement (`AND NOT') after seeing what
`S-SPC' (`AND') shows.
Example: `M-x for' shows command names that have substring `for' (similarly `C-h
f for', `C-h v for',...). `M-x for S-SPC ediff' shows the subset of those `for'
commands that also have substring `ediff'. `M-x for S-SPC ediff C-~' shows the
names that have substring `for' but do not have substring `ediff'.
http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#toc11
- Re: Structural regular expressions, (continued)
- Message not available
- Re: Structural regular expressions, Tom, 2010/09/10
- RE: Structural regular expressions, Drew Adams, 2010/09/10
- Re: Structural regular expressions, Miles Bader, 2010/09/10
- Re: Structural regular expressions, Tom, 2010/09/11
- Re: Structural regular expressions, Wojciech Meyer, 2010/09/11
- Re: Structural regular expressions, tomas, 2010/09/11
- RE: Structural regular expressions, Drew Adams, 2010/09/11
- Re: Structural regular expressions, Richard Stallman, 2010/09/11
- Re: Structural regular expressions, Stefan Monnier, 2010/09/12
- Re: Structural regular expressions, Lennart Borgman, 2010/09/12
- RE: Structural regular expressions,
Drew Adams <=
- Re: Structural regular expressions, Lennart Borgman, 2010/09/12
- RE: Structural regular expressions, Drew Adams, 2010/09/12
- Re: Structural regular expressions, Tom, 2010/09/09
- Re: Structural regular expressions, Lennart Borgman, 2010/09/09
- Re: Structural regular expressions, Tom, 2010/09/09
- Re: Structural regular expressions, Lennart Borgman, 2010/09/09
- Re: Structural regular expressions, Tom, 2010/09/09
- Re: Structural regular expressions, Lennart Borgman, 2010/09/09
- Re: Structural regular expressions, Daniel Colascione, 2010/09/09
RE: Structural regular expressions, Drew Adams, 2010/09/07