forked from mirrors/org-mode
Merge branch 'bugfix' into emacs-sync
This commit is contained in:
commit
02d2ca275b
|
@ -16543,7 +16543,7 @@ more "bibliography" keywords.
|
|||
#+bibliography: "/some/file/with spaces/in its name.bib"
|
||||
#+end_example
|
||||
|
||||
#+kindex: C-c C-x @
|
||||
#+kindex: C-c C-x @@
|
||||
#+findex: org-cite-insert
|
||||
One can then insert and edit citations using ~org-cite-insert~, called
|
||||
with {{{kbd(C-c C-x @)}}}.
|
||||
|
|
|
@ -125,7 +125,7 @@ previous one, unless VALUE is nil. Return the updated list."
|
|||
"Collect macro definitions in current buffer and setup files.
|
||||
Return an alist containing all macro templates found."
|
||||
(let ((templates
|
||||
`(("author" . ,(org-macro--find-keyword-value "AUTHOR"))
|
||||
`(("author" . ,(org-macro--find-keyword-value "AUTHOR" t))
|
||||
("email" . ,(org-macro--find-keyword-value "EMAIL"))
|
||||
("title" . ,(org-macro--find-keyword-value "TITLE" t))
|
||||
("date" . ,(org-macro--find-date)))))
|
||||
|
|
|
@ -314,6 +314,15 @@
|
|||
(org-macro-replace-all org-macro-templates)
|
||||
(buffer-substring-no-properties
|
||||
(line-beginning-position) (point-max)))))
|
||||
;; Return AUTHOR keyword value.
|
||||
(should
|
||||
(equal "author 1 author 2"
|
||||
(org-test-with-temp-text
|
||||
"#+author: author 1\n#+author: author 2\n<point>{{{author}}}"
|
||||
(org-macro-initialize-templates)
|
||||
(org-macro-replace-all org-macro-templates)
|
||||
(buffer-substring-no-properties
|
||||
(line-beginning-position) (point-max)))))
|
||||
;; When AUTHOR keyword is missing, return the empty string.
|
||||
(should
|
||||
(equal ""
|
||||
|
|
Loading…
Reference in New Issue