# HG changeset patch # User Colin Walters # Date 1023567931 0 # Node ID 9e40bb8e9a601b8032da05225d6f047e467681be # Parent b9f2c8b7c60ef9277b37b7fc27528a207ed78e62 (Foverlay_get): Use lookup_char_property. diff -r b9f2c8b7c60e -r 9e40bb8e9a60 src/buffer.c --- 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,