Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol's function definition is void: reduce #9

Closed
knowhy opened this issue Dec 9, 2013 · 5 comments
Closed

Symbol's function definition is void: reduce #9

knowhy opened this issue Dec 9, 2013 · 5 comments

Comments

@knowhy
Copy link

knowhy commented Dec 9, 2013

keyfreq-show returned:

let*: Symbol's function definition is void: reduce

I could fix this either by adding (require 'cl) or by changing reduce to cl-reduce in keyfreq-format-list

@knowhy
Copy link
Author

knowhy commented Dec 9, 2013

(if (featurep 'cl-lib)
(require 'cl-lib)
(require 'cl))

seems to be the problem. reduce is provided by cl.el but it is only loaded if cl-lib is not present on the system.

@srustamo
Copy link

getting the same error. @knowhy do I need to install cl-lib package? using v 24.3.1. cl-lib 1 is built-in. also, installing cl-lib 0.5 from melpa fixes the issue. what gives?

@knowhy
Copy link
Author

knowhy commented Mar 19, 2014

yes, I think so. reduce is a common lisp function. But you can also google
for it and just implement the reduce function yourself.

2014-03-19 7:21 GMT+01:00 srustamo notifications@github.com:

getting the same error. @knowhy https://github.com/knowhy do I need to
install cl-lib package? using v 24.3.1

Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-38021262
.

Henrik Tillmann Pingel

Reuterstraße 82
12053 BERLIN

0160-4875684

e-mail: pingelhe@gmail.com

@dacap
Copy link
Owner

dacap commented Apr 17, 2014

This was fixed in 7035d6d

@dacap dacap closed this as completed Apr 17, 2014
@gzc9047
Copy link

gzc9047 commented Jul 27, 2014

7035d6d don't work on my mac os. Manually using cl instead of cl-lib it works fine.
Environment:
emacs: 24.3.1 installed by port.
Both cl and cl-lib are installed in /opt/local/share/emacs/24.3/lisp/emacs-lisp/

@dacap dacap mentioned this issue Feb 5, 2016
zimoun added a commit to zimoun/keyfreq that referenced this issue Apr 23, 2016
This leads to Symbol error. See bug dacap#16 and dacap#9

Since `cl-lib` seems included in Emacs 24,
and since there is debates about names from `cl` library,
it appears judicious to use by default `cl-reduce` instead of just `reduce`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants