From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Insert ampersand in HTML export? Date: Thu, 17 Feb 2011 16:57:42 -0500 Message-ID: <4079.1297979862@alphaville> References: <20110210152542.26383056amscopub-mail@yahoo.com@dove.localdomain> <20110211114831.2a53a9ffamscopub-mail@yahoo.com@dove.localdomain> <874o89tmwf.fsf@altern.org> <8623B408-3E2C-4BC2-BF7B-179A7C295A17@gmail.com> <871v3dp97c.fsf@gnu.org> <20110212155103.16e82a76uriavalos@yahoo.com@dove.localdomain> <87aai0pafe.fsf@gnu.org> <20110213135347.58c0c882uriavalos@yahoo.com@dove.localdomain> <8762snjvzi.fsf@altern.org> <20110216215007.51a0a126uriavalos@yahoo.com@dove.localdomain> <8762sjpcl1.fsf@gnu.org> <20110217134138.059f9051amscopub-mail@yahoo.com@dove.localdomain> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=52263 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqBrC-0006Lv-G3 for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 16:57:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PqBr7-00005m-P1 for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 16:57:48 -0500 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:6810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PqBr7-00005L-LP for emacs-orgmode@gnu.org; Thu, 17 Feb 2011 16:57:45 -0500 In-Reply-To: Message from Uriel Avalos of "Thu, 17 Feb 2011 13:41:38 EST." <20110217134138.059f9051amscopub-mail@yahoo.com@dove.localdomain> 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: Uriel Avalos Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Bastien Uriel Avalos wrote: > On Thu, 17 Feb 2011 04:24:58 +0100 > Bastien wrote: > > > Hi uriel, > > > > Uriel Avalos writes: > > > > > #+BIND: org-export-html-protect-char-alist '("&" . "&") > > > > > > That's telling me I'm using the "wrong type argument: listp, quote" > > > > It must be this: > > > > #+BIND: org-export-html-protect-char-alist '(("&" . "&")) > > > > The "-alist" suffix means it should be an alist -- see the Info node for > > Association lists in the Elisp manual. > > > > -- > > Bastien > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > Nope. It still doesn't work. This is my test file: > > #+BIND: org-export-html-protect-char-alist '(("&" . "&")) > #+MACRO test & should stay as is > > Hello world & > > I get the same error when I try to export: "wrong type argument: listp, quote" > [Sent a terser reply earlier, but it never made it to the list: mail problem on my end.] Lose the quote (that will cure the emacs error) and add a header: the element in HTML still gets the & treatment: --8<---------------cut here---------------start------------->8--- #+BIND: org-export-html-protect-char-alist (("&" . "&")) #+MACRO test & should stay as is * foo & bar Hello world & --8<---------------cut here---------------end--------------->8--- Nick