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?


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

Dropdown menu not working on iPad with top level links

jquery ipad drop-down-menu menu cs-cart

So I have a client whose website uses cs-cart. The top menu consist of a handful of dropdown menus, the top level item here is a link itself too.

CUDA Dynamic Parallelism debugging is not supported in preemption mode. Breakpoints will be disabled

c++ debugging visual-studio-2012 cuda nsight

Now, I realize there is already a "solution" to this problem, but that solution doesn't work for me.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.