|
@@ -1774,6 +1774,34 @@ arguments. Replace citation with \"@\" character in the output."
|
|
|
(eq 'success
|
|
|
(catch :exit
|
|
|
(org-test-with-temp-text "#+caption: <point>\n| table |"
|
|
|
+ (let ((org-cite--processors nil)
|
|
|
+ (org-cite-insert-processor 'foo))
|
|
|
+ (org-cite-register-processor 'foo
|
|
|
+ :insert (lambda (_ _) (throw :exit 'success)))
|
|
|
+ (call-interactively #'org-cite-insert))))))
|
|
|
+ ;; Allow inserting citations in table cells.
|
|
|
+ (should
|
|
|
+ (eq 'success
|
|
|
+ (catch :exit
|
|
|
+ (org-test-with-temp-text "| <point>table |"
|
|
|
+ (let ((org-cite--processors nil)
|
|
|
+ (org-cite-insert-processor 'foo))
|
|
|
+ (org-cite-register-processor 'foo
|
|
|
+ :insert (lambda (_ _) (throw :exit 'success)))
|
|
|
+ (call-interactively #'org-cite-insert))))))
|
|
|
+ (should
|
|
|
+ (eq 'success
|
|
|
+ (catch :exit
|
|
|
+ (org-test-with-temp-text "| table<point> |"
|
|
|
+ (let ((org-cite--processors nil)
|
|
|
+ (org-cite-insert-processor 'foo))
|
|
|
+ (org-cite-register-processor 'foo
|
|
|
+ :insert (lambda (_ _) (throw :exit 'success)))
|
|
|
+ (call-interactively #'org-cite-insert))))))
|
|
|
+ (should
|
|
|
+ (eq 'success
|
|
|
+ (catch :exit
|
|
|
+ (org-test-with-temp-text "| table <point> |"
|
|
|
(let ((org-cite--processors nil)
|
|
|
(org-cite-insert-processor 'foo))
|
|
|
(org-cite-register-processor 'foo
|