Change all `=` to `eq` for emacs

Recently, I often encounter errors like this:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)

I found that in some situations, the error is caused by expressions like this:

(= nil 4)    

I'm not sure whether this expression is intended to write like this, but it will work only if I change it to:

(eq nil 4)

However, (1) I need to replace all = to eq in that emacs lisp script (2) I'm not sure the codes should be modified like this.

I was wondering that whether I can write a few lines in the config file (.emacs) instead of modify on the source code to get things done. Does anyone have ideas about this?

Answers


Don't do this.

You're going down the path of hiding errors in code. Figure out the root cause of why you're passing nil to = and fix that.


Need Your Help

Place DIV Between & Above Two Lower DIVs

css html overlay overlap

I am designing a webpage that requires at least three DIVs and possibly one container DIV. I need one DIV on the left, one in the middle, and one on the right. It seems simple enough but I also nee...

How can I separate strings in a string builder?

loops text datagridview stringbuilder

I have a StringBuilder I am using and I add to it from a loop that goes through a DataGridView. What I need to do is separate the strings if there are more than one with a ", ". Then I set a label'...