* string to string matching
@ 2010-04-20 3:17 Zhu, Shenli
2010-04-30 18:58 ` Andreas Röhler
0 siblings, 1 reply; 2+ messages in thread
From: Zhu, Shenli @ 2010-04-20 3:17 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Hello experts,
Emacs use syntax table to implement char to char matching, e.g. "(" and
")" parenthesis matching.
But how to do string to string matching, e.g. "BEGIN" and "END" matching?
Thank you,
-Z
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: string to string matching
2010-04-20 3:17 string to string matching Zhu, Shenli
@ 2010-04-30 18:58 ` Andreas Röhler
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Röhler @ 2010-04-30 18:58 UTC (permalink / raw)
To: Zhu, Shenli; +Cc: help-gnu-emacs
Zhu, Shenli wrote:
> Hello experts,
>
> Emacs use syntax table to implement char to char matching, e.g. "(" and
> ")" parenthesis matching.
> But how to do string to string matching, e.g. "BEGIN" and "END" matching?
>
> Thank you,
> -Z
>
>
>
Hi,
tried some realisations of the matter.
One identifies begin and end of sh-script forms.
Its here:
https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/sh-beg-end.el
A more generic tool identifying any THING by its beginnings and ends is here:
https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/beg-end.el
You may watch realisation of the latter by calling
ar-blok-atpt
from
https://code.launchpad.net/~a-roehler/s-x-emacs-werkstatt/thing-at-point-utils.el
where `blok' is freely customizable setting begin- and end-strings.
HTH
Andreas
--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-30 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-20 3:17 string to string matching Zhu, Shenli
2010-04-30 18:58 ` Andreas Röhler
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).