I’m trying to split a number stated in scientific notation (6.371e6
) and write it as float (6371000
) (I’m doing this to learn.)
This is the code I have so far
A = (car (mapcar #'string-to-number (split-string "6.371e6" "e")))
6.371
B = (nth 1 (mapcar #'string-to-number (split-string "6.371e6" "e")))
6
When I try
(* A B)
I get this error:
symbol’s function definition is void: make-closure
Why do I get this error?
I found this link, but I did not understand what I need to do. Do I need to upgrade my emacs? I have version 27.2
Also, why don't I get the *Backtrace*
buffer? Instead, the errors show up in the mini buffer.
M-x toggle-debug-on-error
to get the backtrace. Usesetq
for the assignments (otherwiseA
andB
are undefined. And clean up (some of) your*.elc
files: if the link is correct, they have been compiled with a newer version of emacs. For a filefoo.elc
, you can find what version of the compiler compiled it by runningfile foo.elc
at a shell prompt..elc
files. In fact, I'm having problems withfind-name-dired
. I'll ask another question..elc
files. Do I need to delete them?.elc
files blog.codeselfstudy.com/blog/how-to-remove-all-elc-files-emacs/usr/share/emacs/27.2
which should be fine and should probably be left alone. And ones under~/.emacs.d/elpa
or some similar place for packages you have downloaded and which are probably suspect.