From 00b59ec00590562e8137c71a6d9b45e18243aa44 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 3 Jan 2011 22:08:10 +0100 Subject: [PATCH] Add some additional stuff needed after moving org-special-blocks.el * Makefile (LISPF): Add org-special-blocks to the list of Lisp files * lisp/org-special-blocks.el (htmlp): (latexp): (line): Add defvars for dynamically scoped variables. * lisp/org.el (org-modules): Move org-special-blocks into the core modules section. --- Makefile | 1 + lisp/org-special-blocks.el | 3 +++ lisp/org.el | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 397cd62c0..3069f9407 100644 --- a/Makefile +++ b/Makefile @@ -108,6 +108,7 @@ LISPF = org.el \ org-protocol.el \ org-remember.el \ org-rmail.el \ + org-special-blocks.el \ org-src.el \ org-table.el \ org-taskjuggler.el \ diff --git a/lisp/org-special-blocks.el b/lisp/org-special-blocks.el index 80e2b898f..34479edae 100644 --- a/lisp/org-special-blocks.el +++ b/lisp/org-special-blocks.el @@ -45,6 +45,8 @@ by org-special-blocks. These blocks will presumably be interpreted by other mechanisms.") +(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." @@ -75,6 +77,7 @@ seen. This is run after a few special cases are taken care of." (add-hook 'org-export-latex-after-blockquotes-hook 'org-special-blocks-convert-latex-special-cookies) +(defvar line) (defun org-special-blocks-convert-html-special-cookies () "Converts the special cookies into div blocks." ;; Uses the dynamically-bound variable `line'. diff --git a/lisp/org.el b/lisp/org.el index 88c66fdcf..3349dbea6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -295,6 +295,7 @@ to add the symbol `xyz', and the package must have a call to (const :tag " mhe: Links to MHE folders/messages" org-mhe) (const :tag " protocol: Intercept calls from emacsclient" org-protocol) (const :tag " rmail: Links to RMAIL folders/messages" org-rmail) + (const :tag " special-blocks: Turn blocks into LaTeX envs and HTML divs" org-special-blocks) (const :tag " vm: Links to VM folders/messages" org-vm) (const :tag " wl: Links to Wanderlust folders/messages" org-wl) (const :tag " w3m: Special cut/paste from w3m to Org-mode." org-w3m) @@ -329,7 +330,6 @@ to add the symbol `xyz', and the package must have a call to (const :tag "C org2rem: Convert org appointments into reminders" org2rem) (const :tag "C screen: Visit screen sessions through Org-mode links" org-screen) (const :tag "C secretary: Team management with org-mode" org-secretary) - (const :tag "C special-blocks: Turn blocks into LaTeX envs and HTML divs" org-special-blocks) (const :tag "C sqlinsert: Convert Org-mode tables to SQL insertions" orgtbl-sqlinsert) (const :tag "C toc: Table of contents for Org-mode buffer" org-toc) (const :tag "C track: Keep up with Org-mode development" org-track)