Fork me on GitHub
#emacs
<
2017-01-20
>
qqq01:01:08

(keybinding (kbd "C-x C-e")) ;; works <-- gets me name of function (funcall (keybinding (kbd "C-x C-e"))) ;; // throws error: wrong number of arguments (1 . 1), 0 what I doing wrong? ^^ @dpsutton

dpsutton01:01:13

(funcall (key-binding (kbd "C-n")))
(funcall (key-binding (kbd "C-n")))

dpsutton01:01:15

works for me

dpsutton01:01:27

are you using key-binding?

beppu01:01:16

In the scratch buffer, Something like (funcall '+) will work but (funcall 'eval-last-sexp) will yield the error @qqq mentioned. I wonder if it's getting into some kind of crazy recursive loop where (funcall 'eval-last-sexp) is the last sexp so it keeps trying to evaluate itself. (just a theory.)

beppu01:01:01

I could be completely wrong.

dpsutton01:01:55

@qqq can you post the exact message?

dpsutton01:01:00

maybe a stacktrace as well?

dpsutton01:01:07

you might be evaluating random code into nrepl

qqq01:01:42

1 minute; slack / dev machiens on diferent machines, let me install emacs on this machine real quick

dpsutton01:01:02

haha sounds good

qqq01:01:29

@dpsutton: please see DM for stack trace / screen shot

dpsutton01:01:53

eval-last-sexp takes an argument

dpsutton01:01:01

you're not calling it interactively so you must supply it