I am trying to write a short script file with elisp for the first time which will serve me to install all the required packages that I use. Thus when I change from one computer to another, I can get all the basic tools that I use daily. My purpose here is to write some code in lisp that actually serves me.
My question is about (oddp)
function. I can execute this in ielm. But when I try to run script from the terminal. It gives me :
Symbol’s function definition is void: oddp
I searched a little and found another function (symbol-function)
. If I understand correctly this function shows the real name of a function. For instance, a user defined function is actually a lambda function (described in gnu-emacs). For the oddp
function it is cl-oddp
function. And when I change oddp
to cl-oddp
script finally started to work properly.
I am wondering 2 things :
- Why renaming does not work ?
- If renaming does not work then why it is used?
B.R.
p.s. I am using Aquamacs (Emacs 25.1.1)