[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Use cl-lib rather than cl variants in org-drill
From: |
Stig Brautaset |
Subject: |
[O] [PATCH] Use cl-lib rather than cl variants in org-drill |
Date: |
Fri, 14 Jul 2017 20:57:39 +0100 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50 |
org-drill requires only cl-lib rather than cl, so should use cl-gensym
rather than gensym I believe.
>From 1eef99d550e467bf4a3eaf6bdbe4d3a482f6c187 Mon Sep 17 00:00:00 2001
From: Stig Brautaset <address@hidden>
Date: Fri, 14 Jul 2017 20:45:37 +0100
Subject: [PATCH 2/3] org-drill.el: use cl-gensym rather than gensym
cl-lib is already required by this file, but cl is not.
---
contrib/lisp/org-drill.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el
index fb578ab86..7c4a29930 100644
--- a/contrib/lisp/org-drill.el
+++ b/contrib/lisp/org-drill.el
@@ -622,7 +622,7 @@ regardless of whether the test was successful.")
(defmacro pop-random (place)
- (let ((idx (gensym)))
+ (let ((idx (cl-gensym)))
`(if (null ,place)
nil
(let ((,idx (random* (length ,place))))
--
2.11.0 (Apple Git-81)
Stig
--
; GNU Emacs 26.0.50, Org mode version 9.0.9
- [O] [PATCH] Use cl-lib rather than cl variants in org-drill,
Stig Brautaset <=