Mercurial > emacs
changeset 10488:701e7acfe885
(Ftext_property_any): Handle the trivial case specially.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 20 Jan 1995 01:47:45 +0000 |
parents | 9a4ff0104cdc |
children | 5906e2f35eb9 |
files | src/textprop.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textprop.c Fri Jan 20 00:57:39 1995 +0000 +++ b/src/textprop.c Fri Jan 20 01:47:45 1995 +0000 @@ -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 @@ 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))