From: Bastien Guerry Date: Mon, 25 Mar 2013 16:01:18 +0000 (+0100) Subject: org.el (org-mode-flyspell-verify): Require 'org-element so that `org-element-affiliat... X-Git-Tag: release_8.0~3^2~290 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/e7cfb4d13c8166affb24ed205d691388743ac51f org.el (org-mode-flyspell-verify): Require 'org-element so that `org-element-affiliated-keywords' is defined * org.el (org-mode-flyspell-verify): Require 'org-element so that `org-element-affiliated-keywords' is defined. Thanks to Matt Lundin for reporting this. --- diff --git a/lisp/org.el b/lisp/org.el index 04a0f207f..bcd9c720d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -23397,6 +23397,7 @@ To get rid of the restriction, use \\[org-agenda-remove-restriction-lock]." (defun org-mode-flyspell-verify () "Don't let flyspell put overlays at active buttons, or on {todo,all-time,additional-option-like}-keywords." + (require 'org-element) ; For `org-element-affiliated-keywords' (let ((pos (max (1- (point)) (point-min))) (word (thing-at-point 'word))) (and (not (get-text-property pos 'keymap))