aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-01-20 01:47:45 +0000
committerKarl Heuer1995-01-20 01:47:45 +0000
commit2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb (patch)
tree42cc71e1dd28dce300e320a731cc1a6096b9db35
parente610024ba61b19204d7ffea6da1e571c225f3115 (diff)
downloademacs-2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb.tar.gz
emacs-2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb.zip
(Ftext_property_any): Handle the trivial case specially.
-rw-r--r--src/textprop.c4
1 files changed, 3 insertions, 1 deletions
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 @@
1/* Interface code for dealing with text properties. 1/* Interface code for dealing with text properties.
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -1111,6 +1111,8 @@ containing the text.")
1111 if (NILP (object)) 1111 if (NILP (object))
1112 XSETBUFFER (object, current_buffer); 1112 XSETBUFFER (object, current_buffer);
1113 i = validate_interval_range (object, &start, &end, soft); 1113 i = validate_interval_range (object, &start, &end, soft);
1114 if (NULL_INTERVAL_P (i))
1115 return (!NILP (value) || EQ (start, end) ? Qnil : start);
1114 e = XINT (end); 1116 e = XINT (end);
1115 1117
1116 while (! NULL_INTERVAL_P (i)) 1118 while (! NULL_INTERVAL_P (i))