all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3425: 23.0.94; Please make flyspell-generic-check-word-predicate a hook
@ 2009-05-30 19:51 Lennart Borgman
  0 siblings, 0 replies; only message in thread
From: Lennart Borgman @ 2009-05-30 19:51 UTC (permalink / raw)
  To: emacs-pretest-bug

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'





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-30 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-30 19:51 bug#3425: 23.0.94; Please make flyspell-generic-check-word-predicate a hook Lennart Borgman

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.