Function: eq
eq is a function defined in data.c.
Signature
(eq OBJ1 OBJ2)
Documentation
Return t if the two args are the same Lisp object.
Other relevant functions are documented in the number and string groups.
Probably introduced at or before Emacs version 1.6.
Shortdoc
;; string
(eq "foo" "foo")
=> nil
;; number
(eq 4 4)
=> t
(eq 4.0 4.0)
=> nil
Aliases
pcomplete-event-matches-key-specifier-p (obsolete since 27.1)
Source Code
// Defined in /usr/src/emacs/src/data.c
{
if (EQ (obj1, obj2))
return Qt;
return Qnil;
}