From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Pillow Kuda Sai <pillow.kuda.sai@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa <at> /home/pillow/.emacs.d/elpa/org-20151123/)]
Date: Sun, 20 Dec 2015 10:12:29 +0100 [thread overview]
Message-ID: <87wps9lc02.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <loom.20151219T173210-475@post.gmane.org> (Pillow Kuda Sai's message of "Sat, 19 Dec 2015 16:43:13 +0000 (UTC)")
Hello,
Pillow Kuda Sai <pillow.kuda.sai@gmail.com> writes:
> (defun my-html-preamble (options)
> (insert-file-contents "~/Blog/html/preamble.html"))
>
> but this does not include my preamble.html.
>
> As far as I could tell from the documentation :html-preamble should accept
> any function that returns a string but so far no luck.
(insert-file-contents "~/Blog/html/preamble.html")
doesn't return a string, but a list when evaluated (see
`insert-file-contents' docstring).
You may try
(org-file-contents "~/Blog/html/preamble.html")
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2015-12-20 9:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-12 19:26 Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa @ /home/pillow/.emacs.d/elpa/org-20151123/)] Pillow Kuda Sai
2015-12-15 13:14 ` Robert Klein
2015-12-19 16:43 ` Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa <at> /home/pillow/.emacs.d/elpa/org-20151123/)] Pillow Kuda Sai
2015-12-20 9:12 ` Nicolas Goaziou [this message]
2015-12-20 10:06 ` Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa<at> /home/pillow/.emacs.d/elpa/org-20151123/)] Pillow Kuda Sai
2015-12-21 1:05 ` Robert Klein
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=87wps9lc02.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=pillow.kuda.sai@gmail.com \
/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 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).