From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Moynihan Subject: Re: blorg.el Date: Tue, 19 Feb 2008 10:18:37 +0000 Message-ID: <47BAACFD.404@calicojack.co.uk> References: <2a6300ea0801290344h57803348x3664654574f33b9e@mail.gmail.com> <20418.193.54.107.57.1201619918.squirrel@altern.org> <479F4195.40906@calicojack.co.uk> <87ve5blrxt.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRPZB-0004SO-OU for emacs-orgmode@gnu.org; Tue, 19 Feb 2008 05:19:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRPZ9-0004Pm-PG for emacs-orgmode@gnu.org; Tue, 19 Feb 2008 05:19:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRPZ9-0004PO-GT for emacs-orgmode@gnu.org; Tue, 19 Feb 2008 05:19:11 -0500 Received: from storm.bpweb.net ([83.223.106.8]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JRPZ9-00024n-02 for emacs-orgmode@gnu.org; Tue, 19 Feb 2008 05:19:11 -0500 In-Reply-To: <87ve5blrxt.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Guerry Cc: emacs-orgmode@gnu.org Bastien Guerry wrote: > What about a simple dynamic block ? > > (defun org-dblock-write:youtube (params) > "Insert a header from a file." > (let ((url (plist-get params :url))) > (insert > (format " value=\"%s\"> value=\"transparent\"> type=\"application/x-shockwave-flash\" wmode=\"transparent\" > width=\"425\" height=\"355\">" url url)))) > > #+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs" > #+END: > > Should expand in the correct block of text. Hi, my apologies again for taking so long to getting round to trying this. But there appear to be some problems. I can get the above block to expand into the following text: #+BEGIN: youtube :url "http://www.youtube.com/watch?v=fu8rAWciQNs" #+END: But the problem appears to be that the URL which appears twice in the block isn't inserted literally but is instead expanded into an in the source when M-x blorg-publish is run e.g: watch?v=fu8rAWciQNs">watch?v=fu8rAWciQNs" Is there a way to disable this when inside dynamic blocks? Thanks again, R.