[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] use cl-lib functions rather than cl ones in org-test
From: |
Stig Brautaset |
Subject: |
[O] [PATCH] use cl-lib functions rather than cl ones in org-test |
Date: |
Fri, 14 Jul 2017 20:55:17 +0100 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50 |
>From ead36e862d150e3a83d363bdead850a2e3ec281d Mon Sep 17 00:00:00 2001
From: Stig Brautaset <address@hidden>
Date: Fri, 14 Jul 2017 20:43:11 +0100
Subject: [PATCH 1/3] org-test.el: use prefixed functions from cl-lib.el rather
than cl.el
---
testing/org-test.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/org-test.el b/testing/org-test.el
index 844178e5a..5989907dd 100644
--- a/testing/org-test.el
+++ b/testing/org-test.el
@@ -104,7 +104,7 @@ org-test searches this directory up the directory tree.")
This can be used at the top of code-block-language specific test
files to avoid loading the file on systems without the
executable."
- (unless (reduce
+ (unless (cl-reduce
(lambda (acc dir)
(or acc (file-exists-p (expand-file-name exe dir))))
exec-path :initial-value nil)
@@ -200,7 +200,7 @@ otherwise place the point at the beginning of the inserted
text."
(defmacro org-test-with-temp-text-in-file (text &rest body)
"Run body in a temporary file buffer with Org mode as the active mode."
(declare (indent 1))
- (let ((results (gensym)))
+ (let ((results (cl-gensym)))
`(let ((file (make-temp-file "org-test"))
(kill-buffer-query-functions nil)
(inside-text (if (stringp ,text) ,text (eval ,text)))
--
2.11.0 (Apple Git-81)
Stig
--
; GNU Emacs 26.0.50, Org mode version 9.0.9
- [O] [PATCH] use cl-lib functions rather than cl ones in org-test,
Stig Brautaset <=