changeset 45683:9e40bb8e9a60

(Foverlay_get): Use lookup_char_property.
author Colin Walters <walters@gnu.org>
date Sat, 08 Jun 2002 20:25:31 +0000
parents b9f2c8b7c60e
children 6f73f208b4ce
files src/buffer.c
diffstat 1 files changed, 1 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sat Jun 08 20:25:17 2002 +0000
+++ b/src/buffer.c	Sat Jun 08 20:25:31 2002 +0000
@@ -3912,28 +3912,8 @@
      (overlay, prop)
      Lisp_Object overlay, prop;
 {
-  Lisp_Object plist, fallback;
-
   CHECK_OVERLAY (overlay);
-
-  fallback = Qnil;
-
-  for (plist = XOVERLAY (overlay)->plist;
-       CONSP (plist) && CONSP (XCDR (plist));
-       plist = XCDR (XCDR (plist)))
-    {
-      if (EQ (XCAR (plist), prop))
-	return XCAR (XCDR (plist));
-      else if (EQ (XCAR (plist), Qcategory))
-	{
-	  Lisp_Object tem;
-	  tem = Fcar (Fcdr (plist));
-	  if (SYMBOLP (tem))
-	    fallback = Fget (tem, prop);
-	}
-    }
-
-  return fallback;
+  return lookup_char_property (XOVERLAY (overlay)->plist, prop, 0);
 }
 
 DEFUN ("overlay-put", Foverlay_put, Soverlay_put, 3, 3, 0,