From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: HOWTO: Ispell multiple regions?
Date: Tue, 18 Oct 2005 19:53:57 +0000 (UTC) [thread overview]
Message-ID: <dj3jsl$27n5$1@agate.berkeley.edu> (raw)
In-Reply-To: mailman.11780.1129660075.20277.help-gnu-emacs@gnu.org
[A complimentary Cc of this posting was sent to
Kevin Rodgers
<ihs_4664@yahoo.com>], who wrote in article <mailman.11780.1129660075.20277.help-gnu-emacs@gnu.org>:
> > 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.
No such command. See `ispell-command-loop'. Of course, one could
advise ispell-command-loop itself to propagate ispell-quit (which is
going to be reset to nil later) to, e.g., ispell-quit-pos.
Is it possible to do advising "locally" (like let()ting), so it is
automatically undone when the calling function exits?
Thanks,
Ilya
next prev parent reply other threads:[~2005-10-18 19:53 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
[not found] ` <mailman.11780.1129660075.20277.help-gnu-emacs@gnu.org>
2005-10-18 19:53 ` Ilya Zakharevich [this message]
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='dj3jsl$27n5$1@agate.berkeley.edu' \
--to=nospam-abuse@ilyaz.org \
/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).