summaryrefslogtreecommitdiff
path: root/lisp/org/oc-csl.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-11-06 14:10:47 -0400
committerKyle Meyer <kyle@kyleam.com>2021-11-06 14:10:47 -0400
commitf05b8a939b7ad57e9526510d510ff24484dcb520 (patch)
tree1b4498a64600e22ef1e265038d00deb50ce795f4 /lisp/org/oc-csl.el
parent5e9b4e70ab433fe2eb33c20a02b045c83e70d074 (diff)
downloademacs-f05b8a939b7ad57e9526510d510ff24484dcb520.tar.gz
emacs-f05b8a939b7ad57e9526510d510ff24484dcb520.tar.bz2
emacs-f05b8a939b7ad57e9526510d510ff24484dcb520.zip
Update to Org 9.5-68-g77e2ec
Diffstat (limited to 'lisp/org/oc-csl.el')
-rw-r--r--lisp/org/oc-csl.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/org/oc-csl.el b/lisp/org/oc-csl.el
index 94de97e33a1..7cd63c3ff3a 100644
--- a/lisp/org/oc-csl.el
+++ b/lisp/org/oc-csl.el
@@ -487,21 +487,25 @@ INFO is the export state, as a property list."
(let ((global-prefix (org-element-property :prefix citation)))
(when global-prefix
(let* ((first (car cites))
- (prefix (org-element-property :prefix first)))
- (org-element-put-property
- first :prefix (org-cite-concat global-prefix prefix)))))
+ (prefix-item (assq 'prefix first)))
+ (setcdr prefix-item
+ (concat (org-element-interpret-data global-prefix)
+ " "
+ (cdr prefix-item))))))
;; Global suffix is appended to the suffix of the last reference.
(let ((global-suffix (org-element-property :suffix citation)))
(when global-suffix
(let* ((last (org-last cites))
- (suffix (org-element-property :suffix last)))
- (org-element-put-property
- last :suffix (org-cite-concat suffix global-suffix)))))
+ (suffix-item (assq 'suffix last)))
+ (setcdr suffix-item
+ (concat (cdr suffix-item)
+ " "
+ (org-element-interpret-data global-suffix))))))
;; Check if CITATION needs wrapping, i.e., it should be wrapped in
;; a footnote, but isn't yet.
(when (and (not footnote) (org-cite-csl--note-style-p info))
(org-cite-adjust-note citation info)
- (org-cite-wrap-citation citation info))
+ (setq footnote (org-cite-wrap-citation citation info)))
;; Return structure.
(apply #'citeproc-citation-create
`(:note-index