help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string to string matching


From: Andreas Röhler
Subject: Re: string to string matching
Date: Fri, 30 Apr 2010 20:58:13 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]