aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorJohn Paul Wallington2004-04-19 15:17:53 +0000
committerJohn Paul Wallington2004-04-19 15:17:53 +0000
commit95f8c3b95d340b8a6f89871479e00dfd59ce4596 (patch)
tree6e87d37d0799cb930b2726e7fea3ec0eeac83be4 /src/fns.c
parentd8dc1cccf6ac387d9596b0527bc26e6542243819 (diff)
downloademacs-95f8c3b95d340b8a6f89871479e00dfd59ce4596.tar.gz
emacs-95f8c3b95d340b8a6f89871479e00dfd59ce4596.zip
(Feql): New function.
(syms_of_fns): defsubr it.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index adb262ee11d..3076a000992 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2135,6 +2135,18 @@ The PLIST is modified by side effects. */)
2135 return plist; 2135 return plist;
2136} 2136}
2137 2137
2138DEFUN ("eql", Feql, Seql, 2, 2, 0,
2139 doc: /* Return t if the two args are the same Lisp object.
2140Floating-point numbers of equal value are `eql', but they may not be `eq'. */)
2141 (obj1, obj2)
2142 Lisp_Object obj1, obj2;
2143{
2144 if (FLOATP (obj1))
2145 return internal_equal (obj1, obj2, 0, 0) ? Qt : Qnil;
2146 else
2147 return EQ (obj1, obj2) ? Qt : Qnil;
2148}
2149
2138DEFUN ("equal", Fequal, Sequal, 2, 2, 0, 2150DEFUN ("equal", Fequal, Sequal, 2, 2, 0,
2139 doc: /* Return t if two Lisp objects have similar structure and contents. 2151 doc: /* Return t if two Lisp objects have similar structure and contents.
2140They must have the same data type. 2152They must have the same data type.
@@ -5740,6 +5752,7 @@ used if both `use-dialog-box' and this variable are non-nil. */);
5740 defsubr (&Sput); 5752 defsubr (&Sput);
5741 defsubr (&Slax_plist_get); 5753 defsubr (&Slax_plist_get);
5742 defsubr (&Slax_plist_put); 5754 defsubr (&Slax_plist_put);
5755 defsubr (&Seql);
5743 defsubr (&Sequal); 5756 defsubr (&Sequal);
5744 defsubr (&Sequal_including_properties); 5757 defsubr (&Sequal_including_properties);
5745 defsubr (&Sfillarray); 5758 defsubr (&Sfillarray);