From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Stephen J. Barr" <stevejb@uw.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: help with custom exporter
Date: Sun, 31 May 2015 02:00:59 +0200 [thread overview]
Message-ID: <87vbf962f8.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAO1hKsu9v8Js3TCHV=Ue7-2ugJNjE+UMEwEyJgjO94R8_6i4Pg@mail.gmail.com> (Stephen J. Barr's message of "Sat, 30 May 2015 16:49:44 -0700")
Hello,
"Stephen J. Barr" <stevejb@uw.edu> writes:
> I am trying to modify ox-md.el. I do not know too much emacs lisp so please
> bear with me.
>
> Hypothetically, if I want to modify the exporter to add a "THIS DOCUMENT
> BY: " at the beginning, could I do:
>
> (defun org-md-template (contents info)
> "Return complete document string after Markdown conversion.
> CONTENTS is the transcoded contents string. INFO is a plist used
> as a communication channel."
> (concat "THIS DOCUMENT BY: " (plist-get info :author) "\n" contents)
> )
>
>
> However, I get an error:
>
> org-md-template: Wrong type argument: characterp, #("Stephen
>
> What is the output type of plist-get? Not a string?
:author contains a secondary string. You need to turn it into the string
with, e.g., `org-export-data'.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2015-05-30 23:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-30 23:49 help with custom exporter Stephen J. Barr
2015-05-31 0:00 ` Nicolas Goaziou [this message]
2015-05-31 17:26 ` Stephen J. Barr
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbf962f8.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=stevejb@uw.edu \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.