emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vinicius Vinicius <vinicius.vin@yandex.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [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/)]
Date: Mon, 25 Oct 2021 16:57:03 +0200	[thread overview]
Message-ID: <10921635173520@mail.yandex.com> (raw)
In-Reply-To: <9418351635162526@mail.yandex.com>

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


  reply	other threads:[~2021-10-25 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 14:22 Vinicius Vinicius
2021-10-23 12:33 ` Nicolas Goaziou
2021-10-25 11:49   ` Vinicius Vinicius
2021-10-25 14:57     ` Vinicius Vinicius [this message]
2021-11-02 14:08       ` [patch] " Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10921635173520@mail.yandex.com \
    --to=vinicius.vin@yandex.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --subject='[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/)]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).