Hello,
It seems the same should apply for keyword command (from doc: "The ‘keyword’ macro collects all values from NAME keywords throughout the buffer, separated with white space."). Hope the attached patch can fix it.
Best,
Best,
25.10.2021, 13:49, "Vinicius Vinicius" <vinicius....@yandex.com>:
Thanks, NicolasRegards,23.10.2021, 14:33, "Nicolas Goaziou" <m...@nicolasgoaziou.fr>:Hello,
Vinicius Vinicius <vinicius....@yandex.com> writes:
While {{{title}}} concatenates multiple #+TITLE lines, {{{author}}} retrieves only the first one.
MWE:
#+TITLE: Foo
#+TITLE: Foo2
#+AUTHOR: First Author
#+AUTHOR: Second Author
{{{title}}} vs {{{author}}}--
Fixed.
Thank you.
Regards,
Nicolas Goaziou
From 5deedcb12948ed37197a0c0d883dda4a7bb42bf3 Mon Sep 17 00:00:00 2001 From: Vinicius <vinicius....@yandex.com> Date: Mon, 25 Oct 2021 14:47:48 +0000 Subject: [PATCH 1/1] fix keyword macro
--- lisp/org-macro.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-macro.el b/lisp/org-macro.el index 5f253ad8a..749df4ea8 100644 --- a/lisp/org-macro.el +++ b/lisp/org-macro.el @@ -175,7 +175,7 @@ a file, \"input-file\" and \"modification-time\"." modtime)))))))) ;; Install generic macros. '(("keyword" . (lambda (arg1 &rest _) - (org-macro--find-keyword-value arg1))) + (org-macro--find-keyword-value arg1 t))) ("n" . (lambda (&optional arg1 arg2 &rest _) (org-macro--counter-increment arg1 arg2))) ("property" . (lambda (arg1 &optional arg2 &rest _) -- 2.25.1