From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pillow Kuda Sai 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: Sat, 19 Dec 2015 16:43:13 +0000 (UTC) Message-ID: References: <566C7501.2060407@gmail.com> <56701218.6080800@roklein.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAKd4-0007F7-ET for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 11:45:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAKd1-0001Ow-6V for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 11:45:10 -0500 Received: from plane.gmane.org ([80.91.229.3]:39641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAKd0-0001Of-VF for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 11:45:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aAKcy-0003Lm-Qw for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 17:45:05 +0100 Received: from surfnet-cidr-block-v.invalid ([surfnet-cidr-block-v.invalid]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Dec 2015 17:45:04 +0100 Received: from pillow.kuda.sai by surfnet-cidr-block-v.invalid with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Dec 2015 17:45:04 +0100 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 Hi Robert, Thanks for the reply but my end goal is to insert the contents of another file as the preamble. Ultimately, I want something like this: (insert-file-contents "~/Blog/html/preamble.html") To be inserted as the preamble. Your example works unmodified but once I try to insert the contents of my preamble.html it doesn't get included. I tried: (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. Kind regards, pillow.