diff options
Diffstat (limited to 'app-emacs/noflet/files/noflet-fix-requires.patch')
-rw-r--r-- | app-emacs/noflet/files/noflet-fix-requires.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-emacs/noflet/files/noflet-fix-requires.patch b/app-emacs/noflet/files/noflet-fix-requires.patch new file mode 100644 index 000000000000..142229d547e1 --- /dev/null +++ b/app-emacs/noflet/files/noflet-fix-requires.patch @@ -0,0 +1,28 @@ +index 58d3b8d..c003987 100644 +--- a/noflet.el ++++ b/noflet.el +@@ -28,10 +28,8 @@ + + ;;; Code: + +-(eval-when-compile (require 'cl)) +-(if (version< emacs-version "24.4.1") +- (load-library "cl-indent") +- (require 'cl-indent)) ++(require 'dash) ++(require 'cl-lib) + + (defun noflet|base () + "A base function." +index 58d3b8d..73f0719 100644 +--- a/noflet.el ++++ b/noflet.el +@@ -155,7 +155,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)) |