emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: infloop in skeleton-insert


From: martin rudalics
Subject: Re: infloop in skeleton-insert
Date: Tue, 10 Apr 2007 15:30:57 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I also find this confusing:

(eq 1 1)
t

(eq 1.0 1.0)
nil
   At present, each integer value has a unique Lisp object in Emacs
Lisp.  Therefore, `eq' is equivalent to `=' where integers are
concerned.  It is sometimes convenient to use `eq' for comparing an
unknown value with an integer, because `eq' does not report an error if
the unknown value is not a number--it accepts arguments of any type.
By contrast, `=' signals an error if the arguments are not numbers or
markers.  However, it is a good idea to use `=' if you can, even for
comparing integers, just in case we change the representation of
integers in a future Emacs version.





reply via email to

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