From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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/)] Date: Sun, 20 Dec 2015 10:12:29 +0100 Message-ID: <87wps9lc02.fsf@nicolasgoaziou.fr> References: <566C7501.2060407@gmail.com> <56701218.6080800@roklein.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAa0l-0002ZC-2z for emacs-orgmode@gnu.org; Sun, 20 Dec 2015 04:10:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAa0k-00040m-2J for emacs-orgmode@gnu.org; Sun, 20 Dec 2015 04:10:38 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:49830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAa0j-00040g-Pj for emacs-orgmode@gnu.org; Sun, 20 Dec 2015 04:10:37 -0500 In-Reply-To: (Pillow Kuda Sai's message of "Sat, 19 Dec 2015 16:43:13 +0000 (UTC)") 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: Pillow Kuda Sai Cc: emacs-orgmode@gnu.org Hello, Pillow Kuda Sai 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