emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)]
@ 2021-10-22 14:22 Vinicius Vinicius
  2021-10-23 12:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Vinicius Vinicius @ 2021-10-22 14:22 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/html, Size: 6648 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)]
  2021-10-22 14:22 Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)] Vinicius Vinicius
@ 2021-10-23 12:33 ` Nicolas Goaziou
  2021-10-25 11:49   ` Vinicius Vinicius
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-10-23 12:33 UTC (permalink / raw)
  To: Vinicius Vinicius; +Cc: emacs-orgmode@gnu.org

Hello,

Vinicius Vinicius <vinicius.vin@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)]
  2021-10-23 12:33 ` Nicolas Goaziou
@ 2021-10-25 11:49   ` Vinicius Vinicius
  2021-10-25 14:57     ` [patch] " Vinicius Vinicius
  0 siblings, 1 reply; 5+ messages in thread
From: Vinicius Vinicius @ 2021-10-25 11:49 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/html, Size: 789 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [patch] Re: Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)]
  2021-10-25 11:49   ` Vinicius Vinicius
@ 2021-10-25 14:57     ` Vinicius Vinicius
  2021-11-02 14:08       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Vinicius Vinicius @ 2021-10-25 14:57 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/html, Size: 1250 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-fix.patch --]
[-- Type: text/x-diff; name="0001-fix.patch", Size: 913 bytes --]

From 5deedcb12948ed37197a0c0d883dda4a7bb42bf3 Mon Sep 17 00:00:00 2001
From: Vinicius <vinicius.vin@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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [patch] Re: Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)]
  2021-10-25 14:57     ` [patch] " Vinicius Vinicius
@ 2021-11-02 14:08       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2021-11-02 14:08 UTC (permalink / raw)
  To: Vinicius Vinicius; +Cc: emacs-orgmode@gnu.org

Hello,

Vinicius Vinicius <vinicius.vin@yandex.com> writes:

> 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.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-02 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 14:22 Bug: Inconsistent macro replacement [9.4.4 (release_9.4.4 @ /nix/store/jzj2bbfjlbv08xjgyljf7aqf7q2jcbm8-emacs-27.2/share/emacs/27.2/lisp/org/)] Vinicius Vinicius
2021-10-23 12:33 ` Nicolas Goaziou
2021-10-25 11:49   ` Vinicius Vinicius
2021-10-25 14:57     ` [patch] " Vinicius Vinicius
2021-11-02 14:08       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).