Skip to content

Commit

Permalink
Assert all the Org files to load the same Org version
Browse files Browse the repository at this point in the history
* lisp/org-compat.el (org-assert-version): New macro comparing Org
version at compile time and laod time.

Add `org-assert-version' call to all files:

* lisp/org-macs.el:
* lisp/org-crypt.el:
* lisp/org-ctags.el:
* lisp/org-cycle.el:
* lisp/org-datetree.el:
* lisp/org-duration.el:
* lisp/org-element.el (avl-tree):
* lisp/org-entities.el:
* lisp/org-faces.el:
* lisp/org-feed.el:
* lisp/org-fold-core.el:
* lisp/org-fold.el:
* lisp/org-footnote.el:
* lisp/org-goto.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-indent.el:
* lisp/org-inlinetask.el:
* lisp/org-keys.el:
* lisp/org-lint.el:
* lisp/org-list.el:
* lisp/org-macro.el:
* lisp/org-mobile.el:
* lisp/org-mouse.el:
* lisp/org-num.el:
* lisp/org-pcomplete.el:
* lisp/org-persist.el:
* lisp/org-plot.el:
* lisp/org-protocol.el:
* lisp/org-refile.el:
* lisp/org-src.el:
* lisp/org-table.el:
* lisp/org-tempo.el:
* lisp/org-timer.el:
* lisp/org.el:
* lisp/ox-ascii.el:
* lisp/ox-beamer.el:
* lisp/ox-html.el:
* lisp/ox-icalendar.el:
* lisp/ox-koma-letter.el:
* lisp/ox-latex.el:
* lisp/ox-man.el:
* lisp/ox-md.el:
* lisp/ox-odt.el:
* lisp/ox-org.el:
* lisp/ox-publish.el:
* lisp/ox-texinfo.el:
* lisp/ox.el:
  • Loading branch information
yantar92 committed Sep 4, 2022
1 parent 1f1d8f9 commit e81a094
Show file tree
Hide file tree
Showing 125 changed files with 460 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisp/ob-C.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'cc-mode)
(require 'ob)
(require 'org-macs)
Expand Down
3 changes: 3 additions & 0 deletions lisp/ob-R.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'cl-lib)
(require 'ob)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-awk.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
;; which will be passed to the awk process through STDIN

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-compat)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-calc.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; Org-Babel support for evaluating calc code

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)
(require 'calc)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-clojure.el
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
;; web page: https://technomancy.us/126

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(declare-function cider-current-connection "ext:cider-client" (&optional type))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-comint.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
;; org-babel at large.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob-core)
(require 'org-compat)
(require 'comint)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'cl-lib)
(require 'ob-eval)
(require 'org-macs)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-css.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; CSS from Org files.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-default-header-args:css '())
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-ditaa.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
;; 4) there are no variables (at least for now)

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-compat)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-dot.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
;; 4) there are no variables (at least for now)

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-default-header-args:dot
Expand Down
3 changes: 3 additions & 0 deletions lisp/ob-emacs-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob-core)

(declare-function org-babel--get-vars "ob" (params))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-eshell.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; Org Babel support for evaluating Eshell source code.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'eshell)

Expand Down
2 changes: 2 additions & 0 deletions lisp/ob-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
;; shell commands.

;;; Code:

(require 'org-macs)
(org-assert-version)

(defvar org-babel-error-buffer-name "*Org-Babel Error Output*")
(declare-function org-babel-temp-file "ob-core" (prefix &optional suffix))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-exp.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob-core)

(declare-function org-babel-lob-get-info "ob-lob" (&optional datum))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-forth.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
;; `forth-mode' which is distributed with gforth (in gforth.el).

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-fortran.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; Org-Babel support for evaluating fortran code.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)
(require 'cc-mode)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-gnuplot.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
;; - gnuplot-mode :: you can search the web for the latest active one.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-groovy.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
;; https://github.com/russel/Emacs-Groovy-Mode

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-tangle-lang-exts) ;; Autoloaded
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-haskell.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
;; - (optionally) lhs2tex: https://people.cs.uu.nl/andres/lhs2tex/

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)
(require 'comint)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-java.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
;; Org-Babel support for evaluating java source code.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-tangle-lang-exts)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-js.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
;; configuration instructions

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(declare-function run-mozilla "ext:moz" (arg))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-julia.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
;; Julia packages.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'cl-lib)
(require 'ob)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
;; be created directly form the latex source code.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-lilypond.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
;; This depends on epstopdf --- See https://www.ctan.org/pkg/epstopdf.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(declare-function org-fold-show-all "org-fold" (&optional types))
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
;; - https://common-lisp.net/project/slime/

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-lob.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'cl-lib)
(require 'ob-core)
(require 'ob-table)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-lua.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
;; However, sessions are not yet working.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)
(require 'cl-lib)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-makefile.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; This file exists solely for tangling a Makefile from Org files.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-default-header-args:makefile '())
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-matlab.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
;; http://matlab-emacs.sourceforge.net/

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'ob-octave)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-maxima.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
;; 2) we are adding the "cmdline" header argument

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-tangle-lang-exts)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-ocaml.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
;; - tuareg-mode :: https://elpa.nongnu.org/nongnu/tuareg.html

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'comint)
(require 'org-macs)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-octave.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
;; octave-mode.el and octave-inf.el come with GNU emacs

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'org-macs)

Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
;; contents of the code block are returned in a raw result.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(declare-function org-export-string-as "ox"
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-perl.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
;; Org-Babel support for evaluating perl source code.

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-tangle-lang-exts)
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-plantuml.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
;; plantuml.jar | `org-plantuml-jar-path' should point to the jar file (when exec mode is `jar')

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)

(defvar org-babel-default-header-args:plantuml
Expand Down
4 changes: 4 additions & 0 deletions lisp/ob-processing.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
;; - Processing.js module :: https://processingjs.org/

;;; Code:

(require 'org-macs)
(org-assert-version)

(require 'ob)
(require 'sha1)

Expand Down
Loading

0 comments on commit e81a094

Please sign in to comment.