emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39


From: Robert Klein
Subject: Re: [O] 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: Mon, 21 Dec 2015 02:05:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Hi,

On 12/20/2015 11:06 AM, Pillow Kuda Sai wrote:
> Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:
> 
>> You may try
>>
>>   (org-file-contents "~/Blog/html/preamble.html")
> 
> That worked! Should have figured out that insert-file-contents does not 
> return a string. Thanks for the help Nicolas!
> 
> Happy holidays,
> 
> pillow.
> 


ah, I'll try that, too.

My current solution is a function like


(defun my-html-preamble (options)
  (with-temp-buffer
    (insert-file-contents "~/Documents/myproject/html/preamble.html")
    (buffer-string)))


Best regards
Robert




reply via email to

[Prev in Thread] Current Thread [Next in Thread]