diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-01-20 01:47:45 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-01-20 01:47:45 +0000 |
commit | 2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb (patch) | |
tree | 42cc71e1dd28dce300e320a731cc1a6096b9db35 | |
parent | e610024ba61b19204d7ffea6da1e571c225f3115 (diff) | |
download | emacs-2084fddb6da6a8c641dfa9907edbbaf9aac0dbfb.tar.gz |
(Ftext_property_any): Handle the trivial case specially.
-rw-r--r-- | src/textprop.c | 4 |
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 @@ /* 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)) |