[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HOWTO: Ispell multiple regions?
From: |
Kevin Rodgers |
Subject: |
Re: HOWTO: Ispell multiple regions? |
Date: |
Tue, 18 Oct 2005 12:23:15 -0600 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
Ilya Zakharevich wrote:
> I have some ELisp code to select several regions in my file (e.g.,
> those having text property ispell). How would I Ispell these regions?
>
> AFAIC, ispell-region() does not provide a way to query "the status of
> operation". Thus my idea is that the following code:
>
> (my-map-regions
> (function
> (lambda (s e)
> (ispell-region s e)
> ;; Bulk out if user pressed 'x' or 'q' - but HOWTO?
> )))
>
> would not be easily breakable out by 'x' or 'q'.
What commands are invoked by `x' and `q' in ispell-region?
You could advise those commands to throw to a tag that you establish
with catch.
--
Kevin Rodgers