Skip to content

Symbol's function definition is void: find #95

@daveloyall

Description

@daveloyall

Hi.

I'm no emacs expert, so maybe this is just "user error", but here goes:

When I start a fresh emacs and issue M-x eclim-manage-projects, I get the message Symbol's function definition is void: find.

After looking around for a while, I realized that various calls like (find ...) are all over eclim.el, and indeed that function wasn't defined. But I found a defun for it here:

hobbes@metalbaby:~/src/emacs$ find . -name *.el -exec grep -H  "^(defun find (" {} +
./emacs24-24.2+1/lisp/emacs-lisp/cl-seq.el:(defun find (cl-item cl-seq &rest cl-keys)

...So, long story short, I had to (require 'cl), then eclim-manage-projects works.

So maybe emacs-eclim should call (require 'cl) on its own. Is that how that works?

Now, I have read that it's not popular to make a package depend on cl at runtime, but it's accepted to make it depend on it at compile time... And indeed I seem to recall cl being loaded during compile when I first installed emacs-eclim. Personally, I don't mind having cl loaded, so I consider my problem solved, but, I just thought that you might want to know about this.

Cheers,
--Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions