From: Martin Rudalics Date: Mon, 3 Nov 2008 17:31:56 +0000 (+0000) Subject: (Fprevious_single_char_property_change): Return 0 X-Git-Tag: emacs-pretest-23.0.90~2004 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e02f3cb586ca97cda9cd816eb8ed40c084aa264;p=emacs.git (Fprevious_single_char_property_change): Return 0 when there's no change in a string. (Bug#1301) --- diff --git a/src/ChangeLog b/src/ChangeLog index 787ed51658f..e78abfd021f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-11-03 Martin Rudalics + + * textprop.c (Fprevious_single_char_property_change): Return 0 + when there's no change in a string. (Bug#1301) + 2008-11-02 Martin Rudalics * frame.c (do_switch_frame): New argument NORECORD passed to diff --git a/src/textprop.c b/src/textprop.c index 6bc1938fadf..120c42843fe 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -883,7 +883,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) if (NILP (position)) { if (NILP (limit)) - position = make_number (SCHARS (object)); + position = make_number (0); else { CHECK_NUMBER (limit);