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")))

B = (nth 1 (mapcar #'string-to-number (split-string "6.371e6" "e")))

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.

  • 2
    Say M-x toggle-debug-on-error to get the backtrace. Use setq for the assignments (otherwise A and B 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 file foo.elc, you can find what version of the compiler compiled it by running file foo.elc at a shell prompt.
    – NickD
    Sep 8, 2022 at 21:22
  • I am having trouble finding any .elc files. In fact, I'm having problems with find-name-dired. I'll ask another question.
    – zeynel
    Sep 9, 2022 at 7:04
  • Ok, I restarted emacs and found the .elc files. Do I need to delete them?
    – zeynel
    Sep 9, 2022 at 12:32
  • This page recommends deleting all .elc files blog.codeselfstudy.com/blog/how-to-remove-all-elc-files-emacs
    – zeynel
    Sep 9, 2022 at 12:35
  • 1
    You will need to recompile them, which is a big job. That's why I suggested you check which ones are compiled with which compiler. There are two broad classes: ones in /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.
    – NickD
    Sep 9, 2022 at 15:08

1 Answer 1


You need to recompile the .elc files.

(byte-recompile-directory package-user-dir nil 'force)

I had to restart and compile twice.

found here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.