From 2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 20 Jan 1995 01:47:45 +0000 Subject: [PATCH] (Ftext_property_any): Handle the trivial case specially. --- src/textprop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textprop.c b/src/textprop.c index 002e7636ea6..d55d69bfce3 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -1,5 +1,5 @@ /* Interface code for dealing with text properties. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -1111,6 +1111,8 @@ containing the text.") if (NILP (object)) XSETBUFFER (object, current_buffer); i = validate_interval_range (object, &start, &end, soft); + if (NULL_INTERVAL_P (i)) + return (!NILP (value) || EQ (start, end) ? Qnil : start); e = XINT (end); while (! NULL_INTERVAL_P (i)) -- 2.39.5