emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] lisp/oc-basic.el: Fix author style
@ 2022-01-13 22:09 Hans Donner
  2022-01-14 11:56 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Donner @ 2022-01-13 22:09 UTC (permalink / raw)
  To: emacs-orgmode

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


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

* Re: [PATCH] lisp/oc-basic.el: Fix author style
  2022-01-13 22:09 [PATCH] lisp/oc-basic.el: Fix author style Hans Donner
@ 2022-01-14 11:56 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2022-01-14 11:56 UTC (permalink / raw)
  To: Hans Donner; +Cc: emacs-orgmode

Hello,

Hans Donner <hans@hansdonner.nl> writes:

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

Why do you think the optional argument is needed here?

Regards,
-- 
Nicolas Goaziou


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

end of thread, other threads:[~2022-01-14 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 22:09 [PATCH] lisp/oc-basic.el: Fix author style Hans Donner
2022-01-14 11:56 ` 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).