error: Package `cl-lib-0.2' is unavailable #54

Closed
qzi opened this Issue Jan 23, 2013 · 1 comment

Comments

Projects
None yet
2 participants

qzi commented Jan 23, 2013

error: Package `cl-lib-0.2' is unavailable

my emacs version is 24

Owner

purcell commented Jan 23, 2013

Hmm. Is your internet connection online? When Emacs is first installed with this config, it downloads and installs a number of packages, and cl-lib is one of them. That package is certainly available right now:

http://elpa.gnu.org/packages/cl-lib-0.2.el

-Steve

@purcell purcell closed this Mar 3, 2013

JamesYuan pushed a commit to JamesYuan/emacs.d that referenced this issue Sep 11, 2014

fixes #54 #47 - don't do a package refresh on every startup, only when
there are required packages that are not installed

qioixiy pushed a commit to qioixiy/emacs.d that referenced this issue Aug 5, 2017

"xf" can expand Clojure macros
* lispy.el (lispy-flatten): Generalize.
(lispy-flatten--elisp): New defun.

* le-clojure.el (lispy-flatten--clojure): New defun, only works for
  Clojure macros so far.

Re #54.

qioixiy pushed a commit to qioixiy/emacs.d that referenced this issue Aug 5, 2017

Improve "xf" for Clojure
* le-clojure.el (lispy-flatten--clojure-loaded): New defvar.
(lispy-flatten--clojure-load): New defun.
(lispy-flatten--clojure): Update.

The code now can distinguish macros and use `macroexpand' for them.
Otherwise, some custom Clojure code will be used to flatten.

"xf" should work on this:

    (filter odd? [1 2 3 4 5])

After "xfM" you get:

    (let [pred odd? coll [1 2 3 4 5]
          ]
      (lazy-seq (when-let [s (seq coll)
                           ]
                  (if (chunked-seq? s)
                    (let [c (chunk-first s)
                          size (count c)
                          b (chunk-buffer size)
                          ]
                      (dotimes [i size]
                        (when (pred (.nth c i))
                          (chunk-append b (.nth c i))))
                      (chunk-cons (chunk b)
                                  (filter pred (chunk-rest s))))
                    (let [f (first s)
                          r (rest s)
                          ]
                      (if (pred f)
                        (cons f (filter pred r))
                        (filter pred r)))))))

Re #54.

qioixiy pushed a commit to qioixiy/emacs.d that referenced this issue Aug 5, 2017

Move Clojure manipulation to lispy-clojure.clj
* lispy-clojure.clj: Move some Clojure code here, instead of keeping it
  in a string.

* lispy.el (lispy-site-directory): New defvar.

* le-clojure.el (lispy-flatten--clojure-load): Load lispy-clojure.clj.

(lispy-flatten--clojure): Update.

Re #54

qioixiy pushed a commit to qioixiy/emacs.d that referenced this issue Aug 5, 2017

Improve "xf" for Clojure
* lispy-clojure.clj (expand-home): Add defun.
(source-fn): Re-implement from clojure.repl. This one handles
non-classpath files better.
(symbol-function): Update.
(arity): New defun.
(flatten-expr): Account for functions with overloadable arities.

Re #54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment