summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wellons <wellons@nullprogram.com>2015-08-01 16:28:50 -0400
committerSean Whitton <spwhitton@spwhitton.name>2017-06-20 17:25:06 +0100
commitdd248d8a2060815960ca5e09c3e130e223eeb1e2 (patch)
tree0670228834c7307576d227cb26c77353f80e9ff1
parentc3eb401e4d79a1234624105b9edb77040b75f5e9 (diff)
Require cl-lib and dash as dependencies (fix #19).
-rw-r--r--noflet.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/noflet.el b/noflet.el
index 58d3b8d..40f89fe 100644
--- a/noflet.el
+++ b/noflet.el
@@ -6,6 +6,7 @@
;; Keywords: lisp
;; Version: 0.0.15
;; Url: https://github.com/nicferrier/emacs-noflet
+;; Package-Requires: ((cl-lib "0.4") (dash "2.10.0"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -28,7 +29,8 @@
;;; Code:
-(eval-when-compile (require 'cl))
+(require 'dash)
+(eval-when-compile (require 'cl-lib))
(if (version< emacs-version "24.4.1")
(load-library "cl-indent")
(require 'cl-indent))
@@ -155,7 +157,7 @@ maintainers refuse to add the correct indentation spec to
(indent noflet-indent-func))
`(cl-flet ,bindings ,@body))
-(defmacro* letn (tag bindings &rest body)
+(cl-defmacro letn (tag bindings &rest body)
(declare (debug (sexp sexp &rest form))
(indent 2))
`(cl-labels ((,tag ,(-map 'car bindings) ,@body))