emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] htmlp and latexp
@ 2011-02-15 22:23 Dan Davison
  2011-02-16  8:44 ` Christian Moe
  2011-02-16 10:03 ` Bastien
  0 siblings, 2 replies; 25+ messages in thread
From: Dan Davison @ 2011-02-15 22:23 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [BUG] htmlp and latexp
@ 2011-02-15 23:39 Kieran Healy
  0 siblings, 0 replies; 25+ messages in thread
From: Kieran Healy @ 2011-02-15 23:39 UTC (permalink / raw)
  To: emacs-org list

Yes, I ran into this earlier today as well ...

--
Kieran Healy :: http://www.kieranhealy.org

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2011-03-07 15:32 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 22:23 [BUG] htmlp and latexp Dan Davison
2011-02-16  8:44 ` Christian Moe
2011-02-16 10:01   ` Bastien
2011-02-16 10:01   ` Bastien
2011-02-16 10:07   ` Dan Davison
2011-02-16 10:44     ` Bastien
2011-02-16 17:11       ` Dan Davison
2011-02-18  9:49         ` Bastien
2011-02-22 19:08           ` [PATCH] " Dan Davison
2011-03-01 19:06             ` Bastien
2011-03-01 19:09             ` Bastien
2011-03-02  2:01               ` Dan Davison
2011-03-07 15:32                 ` Bastien
2011-02-16 10:03 ` Bastien
2011-02-17  8:46   ` Andreas Leha
2011-02-17 10:19     ` Sébastien Vauban
2011-02-17 10:50     ` Jambunathan K
2011-02-17 23:14       ` Jeff Horn
2011-02-17 23:32         ` Nick Dokos
2011-02-17 23:44         ` Bastien
2011-02-18  8:09         ` Christian Moe
2011-02-18  8:22       ` Andreas Leha
2011-02-18  8:49         ` Bastien
2011-02-18 22:52           ` Jeff Horn
  -- strict thread matches above, loose matches on Subject: below --
2011-02-15 23:39 Kieran Healy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).