branch: externals/org
commit 15143601bf3b4585975b22d7e25be2f0eb76578b
Author: Morgan Smith <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Testing: Replace `eval-and-compile' with `eval-when-compile'
    
    This was likely a typo that got copied and propagated.
    
    The elisp Info page [[info:elisp#Eval During Compile]] states:
    "Effectively `require' is automatically `eval-and-compile', the
    package is loaded both when compiling and executing."
    
    * testing/lisp/test-ob-lob.el:
    * testing/lisp/test-ob.el:
    * testing/lisp/test-org-agenda.el:
    * testing/lisp/test-org-attach.el:
    * testing/lisp/test-org-element.el:
    * testing/lisp/test-org-fold.el:
    * testing/lisp/test-org-timer.el:
    * testing/lisp/test-org.el:
    Replace "(eval-and-compile (require 'cl-lib))" with
    "(eval-when-compile (require 'cl-lib))".
---
 testing/lisp/test-ob-lob.el      | 2 +-
 testing/lisp/test-ob.el          | 2 +-
 testing/lisp/test-org-agenda.el  | 2 +-
 testing/lisp/test-org-attach.el  | 2 +-
 testing/lisp/test-org-element.el | 2 +-
 testing/lisp/test-org-fold.el    | 2 +-
 testing/lisp/test-org-timer.el   | 2 +-
 testing/lisp/test-org.el         | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/testing/lisp/test-ob-lob.el b/testing/lisp/test-ob-lob.el
index 5cd1b0ebe0..680f0335a9 100644
--- a/testing/lisp/test-ob-lob.el
+++ b/testing/lisp/test-ob-lob.el
@@ -18,7 +18,7 @@
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 (require 'ob-lob)
 
 
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index 9073ab29ab..a75e5fa729 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -24,7 +24,7 @@
 (require 'org-src)
 (require 'ob-ref)
 (require 'org-table)
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 
 (ert-deftest test-ob/indented-cached-org-bracket-link ()
   "When the result of a source block is a cached indented link it
diff --git a/testing/lisp/test-org-agenda.el b/testing/lisp/test-org-agenda.el
index 46ae942295..51e75102c3 100644
--- a/testing/lisp/test-org-agenda.el
+++ b/testing/lisp/test-org-agenda.el
@@ -25,7 +25,7 @@
 
 (require 'org-test "../testing/org-test")
 (require 'org-agenda)
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 
 
 ;; General auxiliaries
diff --git a/testing/lisp/test-org-attach.el b/testing/lisp/test-org-attach.el
index 4f0870bec0..6a597752ed 100644
--- a/testing/lisp/test-org-attach.el
+++ b/testing/lisp/test-org-attach.el
@@ -26,7 +26,7 @@
 
 (require 'org-test "../testing/org-test")
 (require 'org-attach)
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 
 (ert-deftest test-org-attach/dir ()
   "Test `org-attach-get' specifications."
diff --git a/testing/lisp/test-org-element.el b/testing/lisp/test-org-element.el
index ecfa63a917..1bddb4053c 100644
--- a/testing/lisp/test-org-element.el
+++ b/testing/lisp/test-org-element.el
@@ -19,7 +19,7 @@
 
 ;;; Code:
 
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 
 (require 'org-element)
 (require 'org)
diff --git a/testing/lisp/test-org-fold.el b/testing/lisp/test-org-fold.el
index d1fbe4291c..dcd5b784d6 100644
--- a/testing/lisp/test-org-fold.el
+++ b/testing/lisp/test-org-fold.el
@@ -21,7 +21,7 @@
 
 ;;; Code:
 
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 
 
 
diff --git a/testing/lisp/test-org-timer.el b/testing/lisp/test-org-timer.el
index bb2db5d56d..1ec5afb046 100644
--- a/testing/lisp/test-org-timer.el
+++ b/testing/lisp/test-org-timer.el
@@ -21,7 +21,7 @@
 
 ;;; Code:
 
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 (require 'org-timer)
 
 (defmacro test-org-timer/with-temp-text (text &rest body)
diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el
index 14800f617c..90e506f50d 100644
--- a/testing/lisp/test-org.el
+++ b/testing/lisp/test-org.el
@@ -22,7 +22,7 @@
 
 ;;; Code:
 
-(eval-and-compile (require 'cl-lib))
+(eval-when-compile (require 'cl-lib))
 (eval-when-compile (require 'org-macs)) ;For `org-with-gensyms'.
 (require 'org)
 (require 'org-inlinetask)

Reply via email to