unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: HOWTO: Ispell multiple regions?
Date: Tue, 18 Oct 2005 12:23:15 -0600	[thread overview]
Message-ID: <dj3eil$a6s$1@sea.gmane.org> (raw)
In-Reply-To: <dj1kvd$1l50$1@agate.berkeley.edu>

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

  parent reply	other threads:[~2005-10-18 18:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18  2:00 HOWTO: Ispell multiple regions? Ilya Zakharevich
2005-10-18  4:18 ` Edward O'Connor
     [not found] ` <mailman.11699.1129609328.20277.help-gnu-emacs@gnu.org>
2005-10-18  8:51   ` Ilya Zakharevich
2005-10-18 18:23 ` Kevin Rodgers [this message]
     [not found] ` <mailman.11780.1129660075.20277.help-gnu-emacs@gnu.org>
2005-10-18 19:53   ` Ilya Zakharevich
2005-10-19  0:15     ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dj3eil$a6s$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).