From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: [BUG] htmlp and latexp Date: Tue, 15 Feb 2011 22:23:21 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=46703 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpTIv-0002I9-AF for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 17:23:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpTIt-0002YO-Kz for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 17:23:29 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:54872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpTIt-0002Y2-Fj for emacs-orgmode@gnu.org; Tue, 15 Feb 2011 17:23:27 -0500 Received: by eyh6 with SMTP id 6so509275eyh.0 for ; Tue, 15 Feb 2011 14:23:26 -0800 (PST) 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: Org 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 I think because those defvars lack a second argument, the variable is not actually defined, i.e. they're not equivalent to (defvar htmlp nil). IIuc htmlp and latexp occur occasionally in org code as somewhat unofficial ways to test "am I in the middle of export?". They also occur in org-exp-blocks, but in deprecated code, so not a priority to fix. Dan