help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing for symbols


From: Heime
Subject: Testing for symbols
Date: Sun, 16 Oct 2022 00:18:54 +0000

Want to test for symbols. But "eq" and "equal" both seem to work. What is going 
on and what is best to use?

(setq opt 'load)

(when (eq opt 'load) (message "eq-load"))

(when (equal opt 'load) (message "equal-load"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]