Function: org--flyspell-object-check-p

org--flyspell-object-check-p is a byte-compiled function defined in org-compat.el.gz.

Signature

(org--flyspell-object-check-p ELEMENT)

Documentation

Non-nil when Flyspell can check object at point.

ELEMENT is the element at point.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-compat.el.gz
;;;; Flyspell

(defun org--flyspell-object-check-p (element)
  "Non-nil when Flyspell can check object at point.
ELEMENT is the element at point."
  (let ((object (save-excursion
		  (when (looking-at-p "\\>") (backward-char))
		  (org-element-context element))))
    (cl-case (org-element-type object)
      ;; Prevent checks in links due to keybinding conflict with
      ;; Flyspell.
      ((citation citation-reference code entity export-snippet inline-babel-call
                 inline-src-block line-break latex-fragment link macro
                 statistics-cookie target timestamp verbatim)
       nil)
      (footnote-reference
       ;; Only in inline footnotes, within the definition.
       (and (eq (org-element-property :type object) 'inline)
	    (< (save-excursion
		 (goto-char (org-element-property :begin object))
		 (search-forward ":" nil t 2))
	       (point))))
      (otherwise t))))