emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hans Donner <hans@hansdonner.nl>
To: emacs-orgmode@gnu.org
Subject: [PATCH] lisp/oc-basic.el: Fix author style
Date: Thu, 13 Jan 2022 23:09:16 +0100	[thread overview]
Message-ID: <CAHJYuCxEwR80GiYRWjB_p++CZbuFQSfyShGOoLcbgrpy7jFUrw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 63 bytes --]

See attachment.

FSF copyright assignment is already completed

[-- Attachment #2: 0001-lisp-oc-basic.el-Fix-author-style.patch --]
[-- Type: application/octet-stream, Size: 949 bytes --]

From 91176bb8256456c82f1af9d5bccd0dcf34ba7bb8 Mon Sep 17 00:00:00 2001
From: Hans Donner <hans@hansdonner.nl>
Date: Thu, 13 Jan 2022 22:55:58 +0100
Subject: [PATCH] lisp/oc-basic.el: Fix author style

* lisp/oc-basic.el (org-cite-basic-export-citation): Add missing parameter
---
 lisp/oc-basic.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/oc-basic.el b/lisp/oc-basic.el
index 3b97bc1cc..41b9f647a 100644
--- a/lisp/oc-basic.el
+++ b/lisp/oc-basic.el
@@ -599,7 +599,7 @@ export communication channel, as a property list."
          (org-export-data
           (mapconcat
            (lambda (key)
-             (let ((author (org-cite-basic--get-field 'author key info)))
+             (let ((author (org-cite-basic--get-field 'author key info 'raw)))
                (if caps (capitalize author) author)))
            (org-cite-get-references citation t)
            org-cite-basic-author-year-separator)
-- 
2.34.0


             reply	other threads:[~2022-01-13 22:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 22:09 Hans Donner [this message]
2022-01-14 11:56 ` 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=CAHJYuCxEwR80GiYRWjB_p++CZbuFQSfyShGOoLcbgrpy7jFUrw@mail.gmail.com \
    --to=hans@hansdonner.nl \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: [PATCH] lisp/oc-basic.el: Fix author style' \
    /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).