From: Lennart Borgman <lennart.borgman@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#3425: 23.0.94; Please make flyspell-generic-check-word-predicate a hook
Date: Sat, 30 May 2009 21:51:57 +0200 [thread overview]
Message-ID: <e01d8a50905301251l39f24cbbo726673b6a2194809@mail.gmail.com> (raw)
I suggest that flyspell-generic-check-word-predicate is made a hook.
It is quite inconventient to add new checks as it currently most be a
function. There is for example a question on EmacsWiki for how to
avoid checking words in an URL. That would be a good candidate to add
to a hook.
Converting it is easy. It is just replacing the lines below
(and (fboundp flyspell-generic-check-word-predicate)
(not (funcall flyspell-generic-check-word-predicate))))
with
(run-hook-with-args-until-success
flyspell-generic-check-word-predicate))
As hooks are defined now old code will continue to work.
In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
of 2009-05-23
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
reply other threads:[~2009-05-30 19:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50905301251l39f24cbbo726673b6a2194809@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=3425@emacsbugs.donarmstrong.com \
--cc=emacs-pretest-bug@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.