changeset 10927:7d02d12082ff

(textget): Check default_properties vbl too.
author Boris Goldowsky <boris@gnu.org>
date Mon, 06 Mar 1995 15:43:56 +0000
parents 66bf8ed1727b
children a008a9d8966a
files src/intervals.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Mon Mar 06 15:43:56 1995 +0000
+++ b/src/intervals.c	Mon Mar 06 15:43:56 1995 +0000
@@ -1543,7 +1543,8 @@
 
 /* Get the value of property PROP from PLIST,
    which is the plist of an interval.
-   We check for direct properties and for categories with property PROP.  */
+   We check for direct properties, for categories with property PROP, 
+   and for PROP appearing on the default-properties list.  */
 
 Lisp_Object
 textget (plist, prop)
@@ -1567,7 +1568,11 @@
 	}
     }
 
-  return fallback;
+  if (! NILP (fallback))
+    return fallback;
+  if (CONSP (Vdefault_properties))
+    return textget_direct (Vdefault_properties, prop);
+  return Qnil;
 }
 
 /* Get the value of property PROP from PLIST,