GNU bug report logs - #3425
23.0.94; Please make flyspell-generic-check-word-predicate a hook

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sat, 30 May 2009 19:55:05 UTC

Severity: wishlist

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.94; Please make flyspell-generic-check-word-predicate a hook
Date: Sat, 30 May 2009 21:51:57 +0200
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'



This bug report was last modified 8 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.