Function: org--flyspell-object-check-p
org--flyspell-object-check-p is a byte-compiled function defined in
org-compat.el.
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 ~/.emacs.d/elpa/org-9.8.2/org-compat.el
;;;; 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)
((citation citation-reference code entity export-snippet inline-babel-call
inline-src-block line-break latex-fragment macro
statistics-cookie target timestamp verbatim)
nil)
(link
;; Only check link description
(when-let* ((cbeg (org-element-contents-begin object))
(cend (org-element-contents-end object)))
(<= cbeg (point) cend)))
(footnote-reference
;; Only in inline footnotes, within the definition.
(and (eq (org-element-property :type object) 'inline)
(<= (org-element-contents-begin object)
(point)
(org-element-contents-end object))))
(otherwise t))))