From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [BUG] htmlp and latexp Date: Wed, 16 Feb 2011 11:03:50 +0100 Message-ID: <87mxlws37t.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PplB5-0007Ul-3C for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:28:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PplB1-0003Xa-4T for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:28:32 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:44388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PplB0-0003OD-W5 for emacs-orgmode@gnu.org; Wed, 16 Feb 2011 12:28:31 -0500 Received: by mail-fx0-f41.google.com with SMTP id 12so1694837fxm.0 for ; Wed, 16 Feb 2011 09:28:30 -0800 (PST) In-Reply-To: (Dan Davison's message of "Tue, 15 Feb 2011 22:23:21 +0000") 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: Dan Davison Cc: Org Hi Dan, Dan Davison writes: > Commit ed6d6760268 removed variables htmlp and latexp from > `org-export-preprocess-string'. Nothing wrong with that, but I think it > has broken export for those using org-special-blocks, which contains > > #+begin_src emacs-lisp > (defvar htmlp) > (defvar latexp) > (defun org-special-blocks-make-special-cookies () > "Adds special cookies when #+begin_foo and #+end_foo tokens are > seen. This is run after a few special cases are taken care of." > (when (or htmlp latexp) > (goto-char (point-min)) > ... > #+end_src Fixed thanks. > IIuc htmlp and latexp occur occasionally in org code as somewhat > unofficial ways to test "am I in the middle of export?". Now there is a uniform and official (!) way of getting the backend the user is currently exporting to: (eq backend 'html) ... > They also occur in org-exp-blocks, but in deprecated code, so not a > priority to fix. I fixed them there too. Thanks for reporting this! -- Bastien