From fd50c29e8e3295462bd14da53f5c9ef71639c5bb Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sat, 1 Aug 2015 16:28:50 -0400 Subject: [PATCH] Require cl-lib and dash as dependencies (fix #19). --- noflet.el | 6 ++++-- 1 file 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))