From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen J. Barr" Subject: help with custom exporter Date: Sat, 30 May 2015 16:49:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3799a4357040517553f64 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyqVl-0001OK-Kc for emacs-orgmode@gnu.org; Sat, 30 May 2015 19:49:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyqVg-00066o-P9 for emacs-orgmode@gnu.org; Sat, 30 May 2015 19:49:53 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:35896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyqVg-00066e-Hf for emacs-orgmode@gnu.org; Sat, 30 May 2015 19:49:48 -0400 Received: by lbbqq2 with SMTP id qq2so66806601lbb.3 for ; Sat, 30 May 2015 16:49:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001a11c3799a4357040517553f64 Content-Type: text/plain; charset=UTF-8 Greetings, 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? Thanks, Stephen Stephen J. Barr PhD Student, Operations Management Dept: Information Systems and Operations Management (ISOM) Michael G. Foster School of Business University of Washington Phone: 425 516 5012 Email: stevejb@uw.edu Twitter: @stevejb Website: http://steve.planetbarr.com --001a11c3799a4357040517553f64 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Greetings,

I am= trying to modify ox-md.el. I do not know too much emacs lisp so please bea= r 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)
=C2=A0 "Return complete docu= ment string after Markdown conversion.
CONTENTS is the transcoded conten= ts string.=C2=A0 INFO is a plist used
as a communication channel."<= br>=C2=A0 (concat "THIS DOCUMENT BY: " (plist-get info :author) &= quot;\n" contents)
)


However, I get an error:
<= br>org-md-template: Wrong type argument: characterp, #("Stephen
What is the output type of plist-get? Not a string?

Tha= nks,
Stephen
<= div>

Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Ope= rations Management (ISOM)
Michael G. Foster School of Business
University of Washington
Phone: = =C2=A0425 516 5012
Twitter: @stevejb

--001a11c3799a4357040517553f64--