From 23daada78d4b5b805d5a47cd009be3c41dcb496c Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 22 Jan 2022 15:48:26 +0100 Subject: [PATCH] compat: Prevent spell-checking citation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org-compat.el (org--flyspell-object-check-p): Do not spell-check citation and citation-reference objects. Reported-by: Rudolf Adamkovič --- lisp/org-compat.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index db23553a8..4ad87c84d 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -1049,9 +1049,9 @@ ELEMENT is the element at point." (cl-case (org-element-type object) ;; Prevent checks in links due to keybinding conflict with ;; Flyspell. - ((code entity export-snippet inline-babel-call - inline-src-block line-break latex-fragment link macro - statistics-cookie target timestamp verbatim) + ((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.