From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SJ83O+AE7WL2LQAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 13:54:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4PT0OuAE7WIc+QAAauVa8A (envelope-from ) for ; Fri, 05 Aug 2022 13:54:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6EDC8EDF4 for ; Fri, 5 Aug 2022 13:54:08 +0200 (CEST) Received: from localhost ([::1]:59496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJvu3-0006hj-Hw for larch@yhetil.org; Fri, 05 Aug 2022 07:54:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJvr1-0004u0-Vf for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:51:11 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:54889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJvqx-0007x6-Cs for emacs-orgmode@gnu.org; Fri, 05 Aug 2022 07:50:59 -0400 Received: by mail-pj1-x1029.google.com with SMTP id b4so2517306pji.4 for ; Fri, 05 Aug 2022 04:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=RgPCxh8cBUpLqvPcDQvsk56yNbvIERU3yfAe6DKmClY=; b=INDZF7/McdQP1jGVKPkMK2yX79kVZDREnLH9cjk0G0QD7viDAwljj6OxbJhOQk22C3 ZTrN/MFiUVnk0emC11RS3qq6kDhm9MB2G6VNfqnhkPI1HSCGHULRpDEmpWjEK/4CCzUL HGeTewkgVFmapmUzgshSfgaBAqwszgSg/yv9okcNNnz5gI1wgH1TeKhfzRf+ihwwkFWo owaGiDrzsT6an3WV/mZJJkKbZj4GRYBjj2QxjG5bcLtIJq+wAY5ygAZohN707yRTa5fz 7GFZMMayBPDEbzQjHOOKAh0h3tmgqS0txoVXPhaGWv6KFdwTYCPRNhscfGrNovGQluvq 5Wlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=RgPCxh8cBUpLqvPcDQvsk56yNbvIERU3yfAe6DKmClY=; b=zub503l/03glJAuYCztoHH05ha+gnzamhiT7MGWLWrvpyNhB0+RoBvob0v9Fpk7RUQ MUdOAMnU9ula/0cKckdBbwRFz05x2yR1vfUMDh5Dz0LYEQvOEMNO+4Hx6XTJztuRPfaC 66ybJLKb0v1jq6BhO4cNGIsxvfVEZjITv6D5KO7Q+ggFFS0FUaXiYbZ/jLtGHFGtcd5r Uzpf0R7bJyxT8GoMjXTIp0EBNNPFUS/ICZH4Lt4p3Ik2GcvIrpbq4swV5lxVf1vGm5R3 AnT48/FUhGvOOxok7Bt67IbNdPSGHf579600dwWpcnOz2wlBIzA24OyXwF7xlX7jYs03 CpUQ== X-Gm-Message-State: ACgBeo0j+KPdLf3Fu2gQlHXF9+X+UXMbQndmzkrxKUp32wpJu2/iG2Z0 zMggHO5VBw7gu8SMdtNMKKcYAqEmw3M= X-Google-Smtp-Source: AA6agR6gKbQdX+1F3b0cV8UeXo5loNLleqk4jJ+rkbabTGiyTKdVr1TorYBnIHXl386TUYPs66XJQg== X-Received: by 2002:a17:903:124f:b0:16b:8167:e34e with SMTP id u15-20020a170903124f00b0016b8167e34emr6394358plh.52.1659700252864; Fri, 05 Aug 2022 04:50:52 -0700 (PDT) Received: from localhost ([2409:8a70:2b5:4040:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id a10-20020a170902ecca00b0016d1d1c376fsm2780505plh.287.2022.08.05.04.50.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 04:50:52 -0700 (PDT) From: Ihor Radchenko To: emacs-orgmode@gnu.org Subject: [PATCH] Prevent mixed installation Date: Fri, 05 Aug 2022 19:51:57 +0800 Message-ID: <87a68ioqle.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1029.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659700448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZqmH0Vx9TUpr0x42wKBCWXHCM0wN/h4ahxceNYDn0EE=; b=WwEd+E21aUtnHknr8oq86Z+RnDBdGcd57NvxR4Cp1kD8sPL09HouiM67YZl1Aw0/TniKk7 anMn6iquZ9CRl8COIP2W1ahlu+/NbmkgxZix9BCmEYjkzJ1/uCri3ZhhkM29pzV/0cU6qR s0+V16Vbm2O6rSPGw9GgokN7OGkE6F/6EwqcMIIjfQud1fLJwLOYqBWO57gS8gpg0g8+gN TjNKaNxxnZoGnLGiv2ivrtU0S/lMY/h4uMnIsP43kzgkv6I+SWa84skma/9lm1h53SyhC6 cuVJDi0q/bVZxqbXg4RQnSGe1WFal7PhJh0snwlusz1mqSTVSyeDVdbgCSBTvA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659700448; a=rsa-sha256; cv=none; b=qxA086EBtzEHPlkRy396MZ0IzSlbKMfxBQQsQIfo9oR4fGrHgeoAnBIoW3gko6JRo6S5Eq NgerBDvuPHKajwy5XDnnVowuGQSSviWDhZcs5KZtxZ5U+RQocsspBPQA4MS2SDV42gpHfM CnK9qYVTx3Oc3cySSvQk4KCKrBpFYtVM1o90NP8eATP7Lwg2cegEYGIKeJpATHn2HPphFa P4tSbDLmY5qqByij8klEWNyU4rcf2NmjXBba86j3rZYeoRFVy50Y2/ogJo1XiGffYcdw9e dkIDBc57pOBSeWmE9uxAI/AvDXz/ALftCWgYvGWTgGxFDj2fxLU7ToQX/wPO8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b="INDZF7/M"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b="INDZF7/M"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6EDC8EDF4 X-Spam-Score: 6.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: E4lFJs2VMAAT --=-=-= Content-Type: text/plain Hi, The annoying mixed installation problems keep popping up in the mailing list and other communication channels. The attached is a patch trying to forbid loading multiple Org versions. The idea is putting a macro that internally expands Org git version at compile time and later compares the expanded value with the runtime value. Comments? Alternative ideas? In the past we also discussed checking load-history, but I am afraid that it will spoil the loading time. load-history can get quite large. Also, I was thinking about using (provide 'library '(version-subfeature)) but I have no idea how to do it automatically. The proposed patch only requires adding two lines to newly added Org libraries in future. Otherwise, it should just work. Best, Ihor --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Assert-all-the-Org-files-to-load-the-same-Org-versio.patch >From d493ab5e467033919ab0ce0ebf502d39e0b131b2 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Thu, 4 Aug 2022 21:53:05 +0800 Subject: [PATCH] Assert all the Org files to load the same Org version * 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: --- lisp/ob-C.el | 3 +++ lisp/ob-R.el | 3 +++ lisp/ob-awk.el | 4 ++++ lisp/ob-calc.el | 4 ++++ lisp/ob-clojure.el | 4 ++++ lisp/ob-comint.el | 4 ++++ lisp/ob-core.el | 4 ++++ lisp/ob-css.el | 4 ++++ lisp/ob-ditaa.el | 4 ++++ lisp/ob-dot.el | 4 ++++ lisp/ob-emacs-lisp.el | 2 ++ lisp/ob-eshell.el | 3 +++ lisp/ob-eval.el | 3 +++ lisp/ob-exp.el | 4 ++++ lisp/ob-forth.el | 4 ++++ lisp/ob-fortran.el | 4 ++++ lisp/ob-gnuplot.el | 4 ++++ lisp/ob-groovy.el | 4 ++++ lisp/ob-haskell.el | 3 +++ lisp/ob-java.el | 4 ++++ lisp/ob-js.el | 4 ++++ lisp/ob-julia.el | 4 ++++ lisp/ob-latex.el | 4 ++++ lisp/ob-lilypond.el | 4 ++++ lisp/ob-lisp.el | 4 ++++ lisp/ob-lob.el | 4 ++++ lisp/ob-lua.el | 4 ++++ lisp/ob-makefile.el | 3 +++ lisp/ob-matlab.el | 4 ++++ lisp/ob-maxima.el | 4 ++++ lisp/ob-ocaml.el | 4 ++++ lisp/ob-octave.el | 4 ++++ lisp/ob-org.el | 4 ++++ lisp/ob-perl.el | 3 +++ lisp/ob-plantuml.el | 4 ++++ lisp/ob-processing.el | 4 ++++ lisp/ob-python.el | 4 ++++ lisp/ob-ref.el | 4 ++++ lisp/ob-ruby.el | 4 ++++ lisp/ob-sass.el | 4 ++++ lisp/ob-scheme.el | 4 ++++ lisp/ob-screen.el | 4 ++++ lisp/ob-sed.el | 4 ++++ lisp/ob-shell.el | 3 +++ lisp/ob-sql.el | 4 ++++ lisp/ob-sqlite.el | 4 ++++ lisp/ob-table.el | 4 ++++ lisp/ob-tangle.el | 3 +++ lisp/ob.el | 4 ++++ lisp/oc-basic.el | 3 +++ lisp/oc-biblatex.el | 4 ++++ lisp/oc-bibtex.el | 4 ++++ lisp/oc-csl.el | 4 ++++ lisp/oc-natbib.el | 4 ++++ lisp/oc.el | 3 +++ lisp/ol-bbdb.el | 3 +++ lisp/ol-bibtex.el | 3 +++ lisp/ol-docview.el | 2 ++ lisp/ol-doi.el | 3 +++ lisp/ol-eshell.el | 2 ++ lisp/ol-eww.el | 4 ++++ lisp/ol-gnus.el | 3 +++ lisp/ol-info.el | 3 +++ lisp/ol-irc.el | 3 +++ lisp/ol-man.el | 3 +++ lisp/ol-mhe.el | 3 +++ lisp/ol-rmail.el | 3 +++ lisp/ol-w3m.el | 3 +++ lisp/ol.el | 3 +++ lisp/org-agenda.el | 3 +++ lisp/org-archive.el | 3 +++ lisp/org-attach-git.el | 3 +++ lisp/org-attach.el | 3 +++ lisp/org-capture.el | 3 +++ lisp/org-clock.el | 3 +++ lisp/org-colview.el | 3 +++ lisp/org-compat.el | 3 +++ lisp/org-crypt.el | 3 +++ lisp/org-ctags.el | 3 +++ lisp/org-cycle.el | 3 +++ lisp/org-datetree.el | 3 +++ lisp/org-duration.el | 3 +++ lisp/org-element.el | 2 ++ lisp/org-entities.el | 3 +++ lisp/org-faces.el | 3 +++ lisp/org-feed.el | 3 +++ lisp/org-fold-core.el | 3 +++ lisp/org-fold.el | 3 +++ lisp/org-footnote.el | 3 +++ lisp/org-goto.el | 3 +++ lisp/org-habit.el | 3 +++ lisp/org-id.el | 3 +++ lisp/org-indent.el | 3 +++ lisp/org-inlinetask.el | 3 +++ lisp/org-keys.el | 3 +++ lisp/org-lint.el | 3 +++ lisp/org-list.el | 3 +++ lisp/org-macro.el | 4 ++++ lisp/org-macs.el | 10 ++++++++++ lisp/org-mobile.el | 3 +++ lisp/org-mouse.el | 3 +++ lisp/org-num.el | 3 +++ lisp/org-pcomplete.el | 3 +++ lisp/org-persist.el | 3 +++ lisp/org-plot.el | 3 +++ lisp/org-protocol.el | 3 +++ lisp/org-refile.el | 2 ++ lisp/org-src.el | 3 +++ lisp/org-table.el | 3 +++ lisp/org-tempo.el | 3 +++ lisp/org-timer.el | 3 +++ lisp/org.el | 3 +++ lisp/ox-ascii.el | 3 +++ lisp/ox-beamer.el | 3 +++ lisp/ox-html.el | 3 +++ lisp/ox-icalendar.el | 3 +++ lisp/ox-koma-letter.el | 3 +++ lisp/ox-latex.el | 3 +++ lisp/ox-man.el | 3 +++ lisp/ox-md.el | 3 +++ lisp/ox-odt.el | 3 +++ lisp/ox-org.el | 3 +++ lisp/ox-publish.el | 3 +++ lisp/ox-texinfo.el | 3 +++ lisp/ox.el | 3 +++ 125 files changed, 422 insertions(+) diff --git a/lisp/ob-C.el b/lisp/ob-C.el index 175f4b81d..e9951cb79 100644 --- a/lisp/ob-C.el +++ b/lisp/ob-C.el @@ -33,6 +33,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cc-mode) (require 'ob) (require 'org-macs) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index b04104de5..0d9a40b89 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -29,6 +29,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob) diff --git a/lisp/ob-awk.el b/lisp/ob-awk.el index c4916cc65..e2dfb0c9b 100644 --- a/lisp/ob-awk.el +++ b/lisp/ob-awk.el @@ -32,6 +32,10 @@ ;;; Commentary: ;; which will be passed to the awk process through STDIN ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-compat) diff --git a/lisp/ob-calc.el b/lisp/ob-calc.el index aced6cfd6..2d52da344 100644 --- a/lisp/ob-calc.el +++ b/lisp/ob-calc.el @@ -27,6 +27,10 @@ ;;; Commentary: ;; Org-Babel support for evaluating calc code ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'calc) diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el index 87e234ce2..571fc0b53 100644 --- a/lisp/ob-clojure.el +++ b/lisp/ob-clojure.el @@ -42,6 +42,10 @@ ;;; Commentary: ;; 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)) diff --git a/lisp/ob-comint.el b/lisp/ob-comint.el index efca03eeb..914f89157 100644 --- a/lisp/ob-comint.el +++ b/lisp/ob-comint.el @@ -30,6 +30,10 @@ ;;; Commentary: ;; org-babel at large. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob-core) (require 'org-compat) (require 'comint) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 0d9a0a99a..42bf5032e 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -23,6 +23,10 @@ ;;; ob-core.el --- Working with Code Blocks -*- lexical-binding: t; -*- ;; along with GNU Emacs. If not, see . ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob-eval) (require 'org-macs) diff --git a/lisp/ob-css.el b/lisp/ob-css.el index e1a02ee9f..c132cb2c7 100644 --- a/lisp/ob-css.el +++ b/lisp/ob-css.el @@ -27,6 +27,10 @@ ;;; Commentary: ;; CSS from Org files. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-default-header-args:css '()) diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index 97501c446..1f82aea6b 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -36,6 +36,10 @@ ;;; Commentary: ;; 4) there are no variables (at least for now) ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-compat) diff --git a/lisp/ob-dot.el b/lisp/ob-dot.el index 6bab3a0fe..2d2003bf5 100644 --- a/lisp/ob-dot.el +++ b/lisp/ob-dot.el @@ -39,6 +39,10 @@ ;;; Commentary: ;; 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 diff --git a/lisp/ob-emacs-lisp.el b/lisp/ob-emacs-lisp.el index aca088404..3289b6183 100644 --- a/lisp/ob-emacs-lisp.el +++ b/lisp/ob-emacs-lisp.el @@ -27,6 +27,8 @@ ;;; Commentary: ;;; Code: +(org-assert-version) + (require 'ob-core) (declare-function org-babel--get-vars "ob" (params)) diff --git a/lisp/ob-eshell.el b/lisp/ob-eshell.el index 2bc1fe236..552ab1b53 100644 --- a/lisp/ob-eshell.el +++ b/lisp/ob-eshell.el @@ -27,6 +27,9 @@ ;;; Commentary: ;; Org Babel support for evaluating Eshell source code. ;;; Code: + +(org-assert-version) + (require 'ob) (require 'eshell) diff --git a/lisp/ob-eval.el b/lisp/ob-eval.el index aa5b64509..463041948 100644 --- a/lisp/ob-eval.el +++ b/lisp/ob-eval.el @@ -27,6 +27,9 @@ ;;; Commentary: ;; shell commands. ;;; Code: + +(org-assert-version) + (require 'org-macs) (defvar org-babel-error-buffer-name "*Org-Babel Error Output*") diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index 40d0278a5..d7aecde99 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -23,6 +23,10 @@ ;;; ob-exp.el --- Exportation of Babel Source Blocks -*- lexical-binding: t; -*- ;; along with GNU Emacs. If not, see . ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob-core) (declare-function org-babel-lob-get-info "ob-lob" (&optional datum)) diff --git a/lisp/ob-forth.el b/lisp/ob-forth.el index a68b358b6..a67d3384f 100644 --- a/lisp/ob-forth.el +++ b/lisp/ob-forth.el @@ -32,6 +32,10 @@ ;;; Requirements: ;; `forth-mode' which is distributed with gforth (in gforth.el). ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-fortran.el b/lisp/ob-fortran.el index 8d88ad34c..ad84314fc 100644 --- a/lisp/ob-fortran.el +++ b/lisp/ob-fortran.el @@ -27,6 +27,10 @@ ;;; Commentary: ;; Org-Babel support for evaluating fortran code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'cc-mode) diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index 4c76bea19..b0567646d 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el @@ -39,6 +39,10 @@ ;;; Requirements: ;; - gnuplot-mode :: you can search the web for the latest active one. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-groovy.el b/lisp/ob-groovy.el index ffaa81cc0..426eaacdc 100644 --- a/lisp/ob-groovy.el +++ b/lisp/ob-groovy.el @@ -31,6 +31,10 @@ ;;; Requirements: ;; https://github.com/russel/Emacs-Groovy-Mode ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-tangle-lang-exts) ;; Autoloaded diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el index ccd3f078a..739bfaa42 100644 --- a/lisp/ob-haskell.el +++ b/lisp/ob-haskell.el @@ -39,6 +39,9 @@ ;;; Requirements: ;; - (optionally) lhs2tex: https://people.cs.uu.nl/andres/lhs2tex/ ;;; Code: + +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'comint) diff --git a/lisp/ob-java.el b/lisp/ob-java.el index 824635ecf..5dbf2f856 100644 --- a/lisp/ob-java.el +++ b/lisp/ob-java.el @@ -28,6 +28,10 @@ ;;; Commentary: ;; Org-Babel support for evaluating java source code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-tangle-lang-exts) diff --git a/lisp/ob-js.el b/lisp/ob-js.el index 4fbe543cd..04eb77bd4 100644 --- a/lisp/ob-js.el +++ b/lisp/ob-js.el @@ -38,6 +38,10 @@ ;;; Requirements: ;; configuration instructions ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (declare-function run-mozilla "ext:moz" (arg)) diff --git a/lisp/ob-julia.el b/lisp/ob-julia.el index 7f25fafad..cd639ae4a 100644 --- a/lisp/ob-julia.el +++ b/lisp/ob-julia.el @@ -28,6 +28,10 @@ ;;; Commentary: ;; Based on ob-R.el by Eric Schulte and Dan Davison. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob) diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index 03d3595fb..a86699e22 100644 --- a/lisp/ob-latex.el +++ b/lisp/ob-latex.el @@ -30,6 +30,10 @@ ;;; Commentary: ;; be created directly form the latex source code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-lilypond.el b/lisp/ob-lilypond.el index 50e1a7673..518e4d667 100644 --- a/lisp/ob-lilypond.el +++ b/lisp/ob-lilypond.el @@ -32,6 +32,10 @@ ;;; Commentary: ;; 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)) diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el index 239fa5218..d3ed569ec 100644 --- a/lisp/ob-lisp.el +++ b/lisp/ob-lisp.el @@ -36,6 +36,10 @@ ;;; Requirements: ;; - https://common-lisp.net/project/slime/ ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-lob.el b/lisp/ob-lob.el index 88d47c169..8da91bdaf 100644 --- a/lisp/ob-lob.el +++ b/lisp/ob-lob.el @@ -23,6 +23,10 @@ ;;; ob-lob.el --- Functions Supporting the Library of Babel -*- lexical-binding: ;; along with GNU Emacs. If not, see . ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob-core) (require 'ob-table) diff --git a/lisp/ob-lua.el b/lisp/ob-lua.el index b7fb2a8b8..52aa0599a 100644 --- a/lisp/ob-lua.el +++ b/lisp/ob-lua.el @@ -35,6 +35,10 @@ ;;; Commentary: ;; However, sessions are not yet working. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'cl-lib) diff --git a/lisp/ob-makefile.el b/lisp/ob-makefile.el index aef55bcad..ac1c1b2c8 100644 --- a/lisp/ob-makefile.el +++ b/lisp/ob-makefile.el @@ -27,6 +27,9 @@ ;;; Commentary: ;; This file exists solely for tangling a Makefile from Org files. ;;; Code: + +(org-assert-version) + (require 'ob) (defvar org-babel-default-header-args:makefile '()) diff --git a/lisp/ob-matlab.el b/lisp/ob-matlab.el index 19c17b646..0ccab2168 100644 --- a/lisp/ob-matlab.el +++ b/lisp/ob-matlab.el @@ -35,6 +35,10 @@ ;;; Requirements: ;; http://matlab-emacs.sourceforge.net/ ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'ob-octave) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index d5bd4d924..1a944376e 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -31,6 +31,10 @@ ;;; Commentary: ;; 2) we are adding the "cmdline" header argument ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-tangle-lang-exts) diff --git a/lisp/ob-ocaml.el b/lisp/ob-ocaml.el index b26e63923..804551ba5 100644 --- a/lisp/ob-ocaml.el +++ b/lisp/ob-ocaml.el @@ -35,6 +35,10 @@ ;;; Requirements: ;; - tuareg-mode :: https://elpa.nongnu.org/nongnu/tuareg.html ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'comint) (require 'org-macs) diff --git a/lisp/ob-octave.el b/lisp/ob-octave.el index b3a74ab4a..d780b626f 100644 --- a/lisp/ob-octave.el +++ b/lisp/ob-octave.el @@ -29,6 +29,10 @@ ;;; Requirements: ;; octave-mode.el and octave-inf.el come with GNU emacs ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-org.el b/lisp/ob-org.el index 5765c57e7..df7f85d08 100644 --- a/lisp/ob-org.el +++ b/lisp/ob-org.el @@ -27,6 +27,10 @@ ;;; Commentary: ;; 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" diff --git a/lisp/ob-perl.el b/lisp/ob-perl.el index cbac5343f..d08eb5cd1 100644 --- a/lisp/ob-perl.el +++ b/lisp/ob-perl.el @@ -28,6 +28,9 @@ ;;; Commentary: ;; Org-Babel support for evaluating perl source code. ;;; Code: + +(org-assert-version) + (require 'ob) (defvar org-babel-tangle-lang-exts) diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index ebbcdf166..e83b8ecad 100644 --- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -34,6 +34,10 @@ ;;; Requirements: ;; 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 diff --git a/lisp/ob-processing.el b/lisp/ob-processing.el index c97be78ea..4ecbfbdc3 100644 --- a/lisp/ob-processing.el +++ b/lisp/ob-processing.el @@ -50,6 +50,10 @@ ;;; Requirements: ;; - Processing.js module :: https://processingjs.org/ ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'sha1) diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 932aca08e..30acf21ab 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -28,6 +28,10 @@ ;;; Commentary: ;; Org-Babel support for evaluating python source code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'python) diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index d5356f18c..199db89ef 100644 --- a/lisp/ob-ref.el +++ b/lisp/ob-ref.el @@ -49,6 +49,10 @@ ;;; Commentary: ;; #+end_src ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob-core) (require 'org-macs) (require 'cl-lib) diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el index 9543f3bba..6ece63b4d 100644 --- a/lisp/ob-ruby.el +++ b/lisp/ob-ruby.el @@ -36,6 +36,10 @@ ;;; Requirements: ;; https://github.com/eschulte/rinari/raw/master/util/inf-ruby.el ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'org-macs) diff --git a/lisp/ob-sass.el b/lisp/ob-sass.el index 5c947fee1..400f9b326 100644 --- a/lisp/ob-sass.el +++ b/lisp/ob-sass.el @@ -38,6 +38,10 @@ ;;; Requirements: ;; - sass-mode :: https://github.com/nex3/haml/blob/master/extra/sass-mode.el ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-default-header-args:sass '()) diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el index a2c71b217..8e3d48c32 100644 --- a/lisp/ob-scheme.el +++ b/lisp/ob-scheme.el @@ -38,6 +38,10 @@ ;;; Requirements: ;; ELPA. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'geiser nil t) (require 'geiser-impl nil t) diff --git a/lisp/ob-screen.el b/lisp/ob-screen.el index b7245cfb9..294a40cbf 100644 --- a/lisp/ob-screen.el +++ b/lisp/ob-screen.el @@ -34,6 +34,10 @@ ;;; Commentary: ;; M-x org-babel-screen-test RET ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-screen-location "screen" diff --git a/lisp/ob-sed.el b/lisp/ob-sed.el index 02c2a0174..9befa7163 100644 --- a/lisp/ob-sed.el +++ b/lisp/ob-sed.el @@ -40,6 +40,10 @@ ;;; Usage: ;; tell Org Babel which file the sed script to act on. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (defvar org-babel-sed-command "sed" diff --git a/lisp/ob-shell.el b/lisp/ob-shell.el index 1cd7d127e..dff3d9326 100644 --- a/lisp/ob-shell.el +++ b/lisp/ob-shell.el @@ -26,6 +26,9 @@ ;;; Commentary: ;; Org-Babel support for evaluating shell source code. ;;; Code: + +(org-assert-version) + (require 'ob) (require 'org-macs) (require 'shell) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index e4cf28ced..d1256bf83 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -69,6 +69,10 @@ ;;; Commentary: ;; ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (declare-function org-table-import "org-table" (file arg)) diff --git a/lisp/ob-sqlite.el b/lisp/ob-sqlite.el index 006b27eca..f22f9883f 100644 --- a/lisp/ob-sqlite.el +++ b/lisp/ob-sqlite.el @@ -27,6 +27,10 @@ ;;; Commentary: ;; Org-Babel support for evaluating sqlite source code. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob) (require 'ob-sql) diff --git a/lisp/ob-table.el b/lisp/ob-table.el index 0e93abfc8..807d58298 100644 --- a/lisp/ob-table.el +++ b/lisp/ob-table.el @@ -53,6 +53,10 @@ ;;; Commentary: ;; are optional. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ob-core) (require 'org-macs) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 4b8fad6ce..b71a6b88a 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -27,6 +27,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-src) (require 'org-macs) diff --git a/lisp/ob.el b/lisp/ob.el index 44828c724..83fc5b23e 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -22,6 +22,10 @@ ;;; ob.el --- Working with Code Blocks in Org -*- lexical-binding: t; -*- ;; along with GNU Emacs. If not, see . ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-compat) (require 'org-keys) diff --git a/lisp/oc-basic.el b/lisp/oc-basic.el index 25bbe3784..7020ec47e 100644 --- a/lisp/oc-basic.el +++ b/lisp/oc-basic.el @@ -66,6 +66,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'bibtex) (require 'json) (require 'map) diff --git a/lisp/oc-biblatex.el b/lisp/oc-biblatex.el index 6221286eb..e8f677b7a 100644 --- a/lisp/oc-biblatex.el +++ b/lisp/oc-biblatex.el @@ -62,6 +62,10 @@ ;;; Commentary: ;; #+print_bibliography: :keyword abc,xyz :title "Primary Sources" ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'map) (require 'org-macs) (require 'oc) diff --git a/lisp/oc-bibtex.el b/lisp/oc-bibtex.el index 0b598fda4..33fba8c40 100644 --- a/lisp/oc-bibtex.el +++ b/lisp/oc-bibtex.el @@ -35,6 +35,10 @@ ;;; Commentary: ;; Bibliography should consist of ".bib" files only. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'oc) (declare-function org-element-property "org-element" (property element)) diff --git a/lisp/oc-csl.el b/lisp/oc-csl.el index 0b2fe5c41..b1251c36c 100644 --- a/lisp/oc-csl.el +++ b/lisp/oc-csl.el @@ -105,6 +105,10 @@ ;;; Commentary: ;; Many thanks to him! ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'map) (require 'bibtex) diff --git a/lisp/oc-natbib.el b/lisp/oc-natbib.el index 2193a070e..00c069e15 100644 --- a/lisp/oc-natbib.el +++ b/lisp/oc-natbib.el @@ -42,6 +42,10 @@ ;;; Commentary: ;; Bibliography accepts any style supported by "natbib" package. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'oc) (declare-function org-element-property "org-element" (property element)) diff --git a/lisp/oc.el b/lisp/oc.el index 4dcb3f57c..10ca9d89f 100644 --- a/lisp/oc.el +++ b/lisp/oc.el @@ -61,6 +61,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-compat) (require 'org-macs) (require 'seq) diff --git a/lisp/ol-bbdb.el b/lisp/ol-bbdb.el index d756c7948..7c01c5919 100644 --- a/lisp/ol-bbdb.el +++ b/lisp/ol-bbdb.el @@ -93,6 +93,9 @@ ;;; Commentary: ;; ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-compat) (require 'org-macs) diff --git a/lisp/ol-bibtex.el b/lisp/ol-bibtex.el index 5b683469c..951f61f49 100644 --- a/lisp/ol-bibtex.el +++ b/lisp/ol-bibtex.el @@ -107,6 +107,9 @@ ;;; History: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'bibtex) (require 'cl-lib) (require 'org-compat) diff --git a/lisp/ol-docview.el b/lisp/ol-docview.el index 864f9e042..7dbeb0ada 100644 --- a/lisp/ol-docview.el +++ b/lisp/ol-docview.el @@ -42,6 +42,8 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) (require 'doc-view) (require 'ol) diff --git a/lisp/ol-doi.el b/lisp/ol-doi.el index 94585e4c3..4ed63730e 100644 --- a/lisp/ol-doi.el +++ b/lisp/ol-doi.el @@ -26,6 +26,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ol) (defcustom org-link-doi-server-url "https://doi.org/" diff --git a/lisp/ol-eshell.el b/lisp/ol-eshell.el index 1dee61b98..23e5dc3c9 100644 --- a/lisp/ol-eshell.el +++ b/lisp/ol-eshell.el @@ -23,6 +23,8 @@ ;;; Commentary: ;;; Code: +(org-assert-version) + (require 'eshell) (require 'esh-mode) (require 'ol) diff --git a/lisp/ol-eww.el b/lisp/ol-eww.el index 7811be2c1..c3992fa07 100644 --- a/lisp/ol-eww.el +++ b/lisp/ol-eww.el @@ -44,6 +44,10 @@ ;;; Commentary: ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'ol) (require 'cl-lib) (require 'eww) diff --git a/lisp/ol-gnus.el b/lisp/ol-gnus.el index a1dbc3bb8..a7bb65555 100644 --- a/lisp/ol-gnus.el +++ b/lisp/ol-gnus.el @@ -31,6 +31,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'gnus-sum) (require 'gnus-util) (require 'nnheader) diff --git a/lisp/ol-info.el b/lisp/ol-info.el index dc5f6d5ba..a2de55cf1 100644 --- a/lisp/ol-info.el +++ b/lisp/ol-info.el @@ -30,6 +30,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ol) ;; Declare external functions and variables diff --git a/lisp/ol-irc.el b/lisp/ol-irc.el index ed8bad5a5..d43e0c928 100644 --- a/lisp/ol-irc.el +++ b/lisp/ol-irc.el @@ -48,6 +48,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ol) (declare-function erc-buffer-filter "erc" (predicate &optional proc)) diff --git a/lisp/ol-man.el b/lisp/ol-man.el index aa22964c5..efec989b8 100644 --- a/lisp/ol-man.el +++ b/lisp/ol-man.el @@ -24,6 +24,9 @@ ;;; ol-man.el --- Links to man pages -*- lexical-binding: t; -*- ;; ;;; Commentary: +(require 'org-macs) +(org-assert-version) + (require 'ol) (org-link-set-parameters "man" diff --git a/lisp/ol-mhe.el b/lisp/ol-mhe.el index e112e1b79..8bd8aa6bf 100644 --- a/lisp/ol-mhe.el +++ b/lisp/ol-mhe.el @@ -30,6 +30,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'ol) diff --git a/lisp/ol-rmail.el b/lisp/ol-rmail.el index 186eeb86f..4d6f82c9b 100644 --- a/lisp/ol-rmail.el +++ b/lisp/ol-rmail.el @@ -30,6 +30,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ol) ;; Declare external functions and variables diff --git a/lisp/ol-w3m.el b/lisp/ol-w3m.el index ea2982900..7bd241080 100644 --- a/lisp/ol-w3m.el +++ b/lisp/ol-w3m.el @@ -41,6 +41,9 @@ ;;; Acknowledgments: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ol) (defvar w3m-current-url) diff --git a/lisp/ol.el b/lisp/ol.el index 02c9e1009..041796277 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -27,6 +27,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-compat) (require 'org-macs) (require 'org-fold) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d48a8a24a..ca01cfdc5 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -45,6 +45,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ol) (require 'org-fold-core) diff --git a/lisp/org-archive.el b/lisp/org-archive.el index 08ebd751b..de818db60 100644 --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'cl-lib) diff --git a/lisp/org-attach-git.el b/lisp/org-attach-git.el index 72f21c205..95a2359c3 100644 --- a/lisp/org-attach-git.el +++ b/lisp/org-attach-git.el @@ -29,6 +29,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-attach) (require 'vc-git) diff --git a/lisp/org-attach.el b/lisp/org-attach.el index fe49af6f3..a7b02fd42 100644 --- a/lisp/org-attach.el +++ b/lisp/org-attach.el @@ -34,6 +34,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) (require 'ol) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 5780ecbee..435e68d0e 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -47,6 +47,9 @@ ;;; TODO ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) (require 'org-refile) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 362abe358..a8bfa946e 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) diff --git a/lisp/org-colview.el b/lisp/org-colview.el index 13643101b..fe092bc62 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index ef4f4e0d1..4517d8512 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -29,10 +29,13 @@ ;;; Commentary: ;;; Code: + (require 'cl-lib) (require 'seq) (require 'org-macs) +(org-assert-version) + (declare-function org-agenda-diary-entry "org-agenda") (declare-function org-agenda-maybe-redo "org-agenda" ()) (declare-function org-agenda-set-restriction-lock "org-agenda" (&optional type)) diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el index b2542ab43..82e5a73b8 100644 --- a/lisp/org-crypt.el +++ b/lisp/org-crypt.el @@ -54,6 +54,9 @@ ;;; Thanks: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-compat) diff --git a/lisp/org-ctags.el b/lisp/org-ctags.el index ccc2dfa22..62e75a1de 100644 --- a/lisp/org-ctags.el +++ b/lisp/org-ctags.el @@ -137,6 +137,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (eval-when-compile (require 'cl-lib)) (require 'org) diff --git a/lisp/org-cycle.el b/lisp/org-cycle.el index 41d878a14..8dbf9692c 100644 --- a/lisp/org-cycle.el +++ b/lisp/org-cycle.el @@ -29,6 +29,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-fold) diff --git a/lisp/org-datetree.el b/lisp/org-datetree.el index dec8bcace..a24472a95 100644 --- a/lisp/org-datetree.el +++ b/lisp/org-datetree.el @@ -30,6 +30,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (defvar org-datetree-base-level 1 diff --git a/lisp/org-duration.el b/lisp/org-duration.el index 338ea11a9..6d6b8b5cf 100644 --- a/lisp/org-duration.el +++ b/lisp/org-duration.el @@ -51,6 +51,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-macs) diff --git a/lisp/org-element.el b/lisp/org-element.el index 9e9b7c5ec..e5482863c 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -58,6 +58,8 @@ ;;; Commentary: ;;; Code: +(org-assert-version) + (require 'avl-tree) (require 'ring) (require 'cl-lib) diff --git a/lisp/org-entities.el b/lisp/org-entities.el index d35e3fa8a..153aa2b67 100644 --- a/lisp/org-entities.el +++ b/lisp/org-entities.el @@ -27,6 +27,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (declare-function org-mode "org" ()) (declare-function org-toggle-pretty-entities "org" ()) (declare-function org-table-align "org-table" ()) diff --git a/lisp/org-faces.el b/lisp/org-faces.el index a3db35f12..afc8c609e 100644 --- a/lisp/org-faces.el +++ b/lisp/org-faces.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (defgroup org-faces nil "Faces in Org mode." :tag "Org Faces" diff --git a/lisp/org-feed.el b/lisp/org-feed.el index 118cac887..64db73bb1 100644 --- a/lisp/org-feed.el +++ b/lisp/org-feed.el @@ -88,6 +88,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'sha1) diff --git a/lisp/org-fold-core.el b/lisp/org-fold-core.el index 322840ed0..a9329c806 100644 --- a/lisp/org-fold-core.el +++ b/lisp/org-fold-core.el @@ -287,6 +287,9 @@ ;;; Performance considerations ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-compat) diff --git a/lisp/org-fold.el b/lisp/org-fold.el index 49a599ae4..29781be2d 100644 --- a/lisp/org-fold.el +++ b/lisp/org-fold.el @@ -42,6 +42,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-fold-core) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 0e9cb5b75..aedd41335 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + ;;;; Declarations (require 'cl-lib) diff --git a/lisp/org-goto.el b/lisp/org-goto.el index 4eb361558..680130384 100644 --- a/lisp/org-goto.el +++ b/lisp/org-goto.el @@ -22,6 +22,9 @@ ;;; org-goto.el --- Fast navigation in an Org buffer -*- lexical-binding: t; -* ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'org-refile) diff --git a/lisp/org-habit.el b/lisp/org-habit.el index 412bce4a5..05e5f61a7 100644 --- a/lisp/org-habit.el +++ b/lisp/org-habit.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) (require 'org-agenda) diff --git a/lisp/org-id.el b/lisp/org-id.el index f54e7280a..ae5b360e4 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -70,6 +70,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'org-refile) (require 'ol) diff --git a/lisp/org-indent.el b/lisp/org-indent.el index 01a53f753..de237415c 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -36,6 +36,9 @@ ;;; Commentary: ;; ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-compat) (require 'org) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index 563b8594f..cb0561ce4 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -78,6 +78,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (defgroup org-inlinetask nil diff --git a/lisp/org-keys.el b/lisp/org-keys.el index e2195f54d..d65379a72 100644 --- a/lisp/org-keys.el +++ b/lisp/org-keys.el @@ -27,6 +27,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (defvar org-outline-regexp) diff --git a/lisp/org-lint.el b/lisp/org-lint.el index e00bdaa7f..3670bb1f1 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -85,6 +85,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob) (require 'oc) diff --git a/lisp/org-list.el b/lisp/org-list.el index 0f0aaefdc..533f05408 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -76,6 +76,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-macs) (require 'org-compat) diff --git a/lisp/org-macro.el b/lisp/org-macro.el index e280815a2..ed1f65ec1 100644 --- a/lisp/org-macro.el +++ b/lisp/org-macro.el @@ -46,6 +46,10 @@ ;;; Commentary: ;; {{{email}}} and {{{title}}} macros. ;;; Code: + +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-macs) (require 'org-compat) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index b90341e84..6dac78fa4 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -34,6 +34,16 @@ ;;; Code: (require 'cl-lib) (require 'format-spec) +;;; Org version verification. + +(defmacro org-assert-version () + "Assert compile time and runtime verstion match." + `(cl-assert + (equal (org-git-version) ,(org-git-version)) + t "Org version mismatch. Make sure that correct `load-path' is set early in init.el")) + +(org-assert-version) + (declare-function org-mode "org" ()) (declare-function org-agenda-files "org" (&optional unrestricted archives)) (declare-function org-fold-show-context "org-fold" (&optional key)) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index d3ef77b00..31c8381bc 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -31,6 +31,9 @@ ;;; Commentary: ;; iPhone and Android - any external viewer/flagging/editing ;; application that uses the same conventions could be used. +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) (require 'org-agenda) diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el index b9d583e4f..afc908111 100644 --- a/lisp/org-mouse.el +++ b/lisp/org-mouse.el @@ -136,6 +136,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'cl-lib) diff --git a/lisp/org-num.el b/lisp/org-num.el index 4de62630e..4179d1205 100644 --- a/lisp/org-num.el +++ b/lisp/org-num.el @@ -61,6 +61,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-macs) (require 'org) ;Otherwise `org-num--comment-re' burps on `org-comment-string' diff --git a/lisp/org-pcomplete.el b/lisp/org-pcomplete.el index 775f2f9a8..b4f5f67ed 100644 --- a/lisp/org-pcomplete.el +++ b/lisp/org-pcomplete.el @@ -26,6 +26,9 @@ ;;; Code: ;;;; Require other packages +(require 'org-macs) +(org-assert-version) + (require 'org-macs) (require 'org-compat) (require 'pcomplete) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index ee28fc51d..ee7dce218 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -149,6 +149,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org-compat) (require 'org-id) (require 'xdg nil t) diff --git a/lisp/org-plot.el b/lisp/org-plot.el index 0fcedbc99..6e5f3592d 100644 --- a/lisp/org-plot.el +++ b/lisp/org-plot.el @@ -31,6 +31,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org) (require 'org-table) diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 2f5e0e0c9..604aeb915 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -129,6 +129,9 @@ ;;; Commentary: ;; ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'org) (require 'ol) diff --git a/lisp/org-refile.el b/lisp/org-refile.el index 01f0dfa46..5684ed4fd 100644 --- a/lisp/org-refile.el +++ b/lisp/org-refile.el @@ -26,6 +26,8 @@ ;;; Commentary: ;;; Code: +(org-assert-version) + (require 'org) (declare-function org-inlinetask-remove-END-maybe "org-inlinetask" ()) diff --git a/lisp/org-src.el b/lisp/org-src.el index b7e0af50e..b44fc1f15 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -31,6 +31,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob-comint) (require 'org-macs) diff --git a/lisp/org-table.el b/lisp/org-table.el index a5a550812..ad34ea1d6 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -34,6 +34,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-macs) (require 'org-compat) diff --git a/lisp/org-tempo.el b/lisp/org-tempo.el index 94da94ffd..0902a45e8 100644 --- a/lisp/org-tempo.el +++ b/lisp/org-tempo.el @@ -38,6 +38,9 @@ ;;; Commentary: ;; ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'tempo) (require 'cl-lib) (require 'org) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index c89e05360..9741ac679 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -35,6 +35,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-clock) diff --git a/lisp/org.el b/lisp/org.el index f8977bba5..9549ec5f0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -71,6 +71,9 @@ (defvar org-inlinetask-min-level) ;;;; Require other packages +(require 'org-compat) +(org-assert-version) + (require 'cl-lib) (eval-when-compile (require 'gnus-sum)) diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index cfc2bc5fd..02a83fc3a 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -28,6 +28,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ox) (require 'ox-publish) (require 'cl-lib) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index e6232d8d2..952fd455c 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -30,6 +30,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox-latex) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 9e8740754..d61024577 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -31,6 +31,9 @@ ;;; Code: ;;; Dependencies +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'format-spec) (require 'ox) diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 410289abf..6b0f47f20 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -32,6 +32,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'org-agenda) (require 'ox-ascii) diff --git a/lisp/ox-koma-letter.el b/lisp/ox-koma-letter.el index 5f62cd1c0..258452fc5 100644 --- a/lisp/ox-koma-letter.el +++ b/lisp/ox-koma-letter.el @@ -165,6 +165,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox-latex) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 3427a7ec6..221d52c11 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -27,6 +27,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox) (require 'ox-publish) diff --git a/lisp/ox-man.el b/lisp/ox-man.el index e808edcdf..339ab11cd 100644 --- a/lisp/ox-man.el +++ b/lisp/ox-man.el @@ -37,6 +37,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 50db53910..75282dc49 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -29,6 +29,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox-html) (require 'ox-publish) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 7e4ae357e..208a39d9d 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -25,6 +25,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'format-spec) (require 'org-compat) diff --git a/lisp/ox-org.el b/lisp/ox-org.el index 011d37616..159a41b98 100644 --- a/lisp/ox-org.el +++ b/lisp/ox-org.el @@ -25,6 +25,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'ox) (declare-function htmlize-buffer "ext:htmlize" (&optional buffer)) (defvar htmlize-output-type) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 9018ce7dd..a5999ef7b 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -38,6 +38,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'format-spec) (require 'ox) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 1eec586fd..623c1632c 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -26,6 +26,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ox) diff --git a/lisp/ox.el b/lisp/ox.el index 40ad7ae4e..fa6f3f19a 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -72,6 +72,9 @@ ;;; Commentary: ;;; Code: +(require 'org-macs) +(org-assert-version) + (require 'cl-lib) (require 'ob-exp) (require 'oc) -- 2.35.1 --=-=-=--