From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3425: 23.0.94; Please make flyspell-generic-check-word-predicate a hook Date: Sat, 30 May 2009 21:51:57 +0200 Message-ID: Reply-To: Lennart Borgman , 3425@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243713453 23757 80.91.229.12 (30 May 2009 19:57:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 May 2009 19:57:33 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 30 21:57:30 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MAUgL-0005qA-UG for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 21:57:30 +0200 Original-Received: from localhost ([127.0.0.1]:52657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAUgL-0007Em-0v for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 May 2009 15:57:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAUgH-0007EV-82 for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 15:57:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAUgC-0007Dx-IZ for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 15:57:24 -0400 Original-Received: from [199.232.76.173] (port=52761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAUgC-0007Dr-Fp for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 15:57:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54945) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MAUgB-0002tn-Uc for bug-gnu-emacs@gnu.org; Sat, 30 May 2009 15:57:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UJvHsv001282; Sat, 30 May 2009 12:57:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4UJt5w7000515; Sat, 30 May 2009 12:55:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lennart Borgman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 30 May 2009 19:55:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3425 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124371312532720 (code B ref -1); Sat, 30 May 2009 19:55:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 30 May 2009 19:52:05 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4UJq1cp032706 for ; Sat, 30 May 2009 12:52:02 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:42888 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MAUb2-0003zU-JM for emacs-pretest-bug@gnu.org; Sat, 30 May 2009 15:52:00 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MAUb1-0001jA-Rz for emacs-pretest-bug@gnu.org; Sat, 30 May 2009 15:52:00 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:40185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAUb0-0001ir-MR for emacs-pretest-bug@gnu.org; Sat, 30 May 2009 15:51:58 -0400 Original-Received: by fxm17 with SMTP id 17so7524480fxm.42 for ; Sat, 30 May 2009 12:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=GMIM8PEdy3FpGGxYXfdwGIObQsrpy/QUCh41+FHiXOE=; b=iteijdJmu+WodlM3H9ur6aCx1F0VdLy3xQ4CY5Pi8XhwCgKP0+Ct79mJ5uU2ik5sn8 4StG7SweRynQeav6cvntOGdyAlaRY5kVHs/b2+fbtHtJmYd4eHGjcOD+SlKMqndzwpgw Nq2SmI3S1E6Z+tOxwUsP1HffOIVMNooQqDVpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=SJ5braYYuPTedunmx8EkPaI2K37K+AHdW/Rl6A6uBaAQBKPedp9UQaIMYTVBtRj0l/ BdHafQJjsvmHxSb/91Wr49ihr8BHgyLcGTPl2bhwMNIslyjgOQmMdnKmULXnvflAZXUh TX1gfBF9dxk+HkL9Tmhuwh44fE85KPwWQKi+I= Original-Received: by 10.239.164.83 with SMTP id s19mr299590hbd.110.1243713117394; Sat, 30 May 2009 12:51:57 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 30 May 2009 15:57:24 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28334 gmane.emacs.pretest.bugs:24530 Archived-At: 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'