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

get-value doesn't appear to be defined #3

Closed
dgtized opened this issue Jul 8, 2015 · 2 comments · Fixed by #4
Closed

get-value doesn't appear to be defined #3

dgtized opened this issue Jul 8, 2015 · 2 comments · Fixed by #4

Comments

@dgtized
Copy link

dgtized commented Jul 8, 2015

In the assoc list segment get-value is called, but it's not a built-in that I can find?

@xuchunyang
Copy link
Contributor

I guess the author make this function himself something like

ELISP> (defun get-value (alist key) (cdr (assoc key alist)))
get-value
ELISP> (get-value language-list "scala")
((:command . "scala")
 (:cmdopt . "-Dfile.encoding=UTF-8")
 (:description . "Run Scala file with scala command"))

ELISP> (defun get-value (alist key) (assoc-default key alist))
get-value
ELISP> (get-value language-list "scala")
((:command . "scala")
 (:cmdopt . "-Dfile.encoding=UTF-8")
 (:description . "Run Scala file with scala command"))

ELISP> 

@caiorss
Copy link
Owner

caiorss commented Jul 11, 2015

I am sorry, I forgot it. Fixed, merge done.

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

Successfully merging a pull request may close this issue.

3 participants