all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25765: [PATCH] Avoid errors when flyspell-generic-check-word-predicate is a lambda.
@ 2017-02-16 21:30 Hong Xu
  2017-02-16 21:36 ` Noam Postavsky
  0 siblings, 1 reply; 7+ messages in thread
From: Hong Xu @ 2017-02-16 21:30 UTC (permalink / raw)
  To: 25765

	* flyspell.el (flyspell-auto-correct-word, flyspell-word): Quote
	flyspell-generic-check-word-predicate when applying fboundp on
	it. This avoids (wrong-type-argument symbolp) when
	flyspell-generic-check-word-predicate is a lambda.
---
 lisp/textmodes/flyspell.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index f7683d967905..f05624b55194 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1097,8 +1097,8 @@ flyspell-word
            (flyspell-word (flyspell-get-word following))
            start end poss word ispell-filter)
       (if (or (eq flyspell-word nil)
- 	      (and (fboundp flyspell-generic-check-word-predicate)
- 		   (not (funcall flyspell-generic-check-word-predicate))))
+              (and (fboundp 'flyspell-generic-check-word-predicate)
+                   (not (funcall flyspell-generic-check-word-predicate))))
 	  t
 	(progn
 	  ;; destructure return flyspell-word info list.
@@ -1914,7 +1914,7 @@ flyspell-auto-correct-word
   ;; invoke the original binding of M-TAB, if that was recorded.
   (if (and (local-variable-p 'flyspell--prev-meta-tab-binding)
            (commandp flyspell--prev-meta-tab-binding t)
-           (fboundp flyspell-generic-check-word-predicate)
+           (fboundp 'flyspell-generic-check-word-predicate)
            (not (funcall flyspell-generic-check-word-predicate))
            (equal (where-is-internal 'flyspell-auto-correct-word nil t)
                   [?\M-\t]))
-- 
2.11.0







^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-02-18 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-16 21:30 bug#25765: [PATCH] Avoid errors when flyspell-generic-check-word-predicate is a lambda Hong Xu
2017-02-16 21:36 ` Noam Postavsky
2017-02-16 22:03   ` Hong Xu
2017-02-18  2:56     ` npostavs
2017-02-18  3:27       ` Hong Xu
2017-02-18  8:23         ` Eli Zaretskii
2017-02-18 13:34           ` npostavs

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.