diff --cc lisp/org-element.el index 0f0e01e8a,2f1f972de..000000000 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@@ -329,11 -295,14 +339,21 @@@ match group 2 Don't modify it, set `org-element-affiliated-keywords' instead.") (defconst org-element-object-restrictions ++<<<<<<< HEAD + (let* ((minimal-set '(bold code entity italic latex-fragment strike-through + subscript superscript underline verbatim)) + (standard-set (remq 'table-cell org-element-all-objects)) + (standard-set-no-line-break (remq 'line-break standard-set))) ++======= + (let* ((standard-set + (remq 'citation-reference (remq 'table-cell org-element-all-objects))) + (standard-set-no-line-break (remq 'line-break standard-set)) + (minimal-set '(bold code entity italic latex-fragment strike-through + subscript superscript underline verbatim))) ++>>>>>>> origin/wip-cite `((bold ,@standard-set) + (citation citation-reference) + (citation-reference ,@(cons 'line-break minimal-set)) (footnote-reference ,@standard-set) (headline ,@standard-set-no-line-break) (inlinetask ,@standard-set-no-line-break) @@@ -4516,21 -4610,21 +4700,39 @@@ to an appropriate container (e.g., a pa (and (memq 'latex-fragment restriction) (org-element-latex-fragment-parser))))) (?\[ ++<<<<<<< HEAD + (pcase (aref result 1) + ((and ?\[ + (guard (memq 'link restriction))) + (org-element-link-parser)) + ((and ?f + (guard (memq 'footnote-reference restriction))) + (org-element-footnote-reference-parser)) + ((and (or ?% ?/) + (guard (memq 'statistics-cookie restriction))) + (org-element-statistics-cookie-parser)) + (_ + (or (and (memq 'timestamp restriction) + (org-element-timestamp-parser)) + (and (memq 'statistics-cookie restriction) + (org-element-statistics-cookie-parser)))))) ++======= + (cl-case (aref result 1) + (?\[ (and (memq 'link restriction) + (org-element-link-parser))) + ((?@ ?c ?\() (and (memq 'citation restriction) + (org-element-citation-parser))) + (?f (and (memq 'footnote-reference restriction) + (org-element-footnote-reference-parser))) + ((?% ?/) (and (memq 'statistics-cookie restriction) + (org-element-statistics-cookie-parser))) + (t (or (and (memq 'footnote-reference restriction) + (org-element-footnote-reference-parser)) + (and (memq 'timestamp restriction) + (org-element-timestamp-parser)) + (and (memq 'statistics-cookie restriction) + (org-element-statistics-cookie-parser)))))) ++>>>>>>> origin/wip-cite ;; This is probably a plain link. (_ (and (memq 'link restriction) (org-element-link-parser)))))))