emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] use cl-lib functions rather than cl ones in org-test
@ 2017-07-14 19:55 Stig Brautaset
  2017-07-23  9:09 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Stig Brautaset @ 2017-07-14 19:55 UTC (permalink / raw)
  To: Org Mode

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-org-test.el-use-prefixed-functions-from-cl-lib.el-ra.patch --]
[-- Type: text/x-patch, Size: 1320 bytes --]

From ead36e862d150e3a83d363bdead850a2e3ec281d Mon Sep 17 00:00:00 2001
From: Stig Brautaset <stig@brautaset.org>
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)


[-- Attachment #2: Type: text/plain, Size: 54 bytes --]


Stig
-- 
; GNU Emacs 26.0.50, Org mode version 9.0.9

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] use cl-lib functions rather than cl ones in org-test
  2017-07-14 19:55 [PATCH] use cl-lib functions rather than cl ones in org-test Stig Brautaset
@ 2017-07-23  9:09 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-07-23  9:09 UTC (permalink / raw)
  To: Stig Brautaset; +Cc: Org Mode

Hello,

Stig Brautaset <stig@brautaset.org> writes:

> From ead36e862d150e3a83d363bdead850a2e3ec281d Mon Sep 17 00:00:00 2001
> From: Stig Brautaset <stig@brautaset.org>
> 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

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-23  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-14 19:55 [PATCH] use cl-lib functions rather than cl ones in org-test Stig Brautaset
2017-07-23  9:09 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).