1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00

(Fprevious_single_char_property_change): Return 0

when there's no change in a string.  (Bug#1301)
This commit is contained in:
Martin Rudalics 2008-11-03 17:31:56 +00:00
parent 8e38a1a9bd
commit 1e02f3cb58
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-11-03 Martin Rudalics <rudalics@gmx.at>
* textprop.c (Fprevious_single_char_property_change): Return 0
when there's no change in a string. (Bug#1301)
2008-11-02 Martin Rudalics <rudalics@gmx.at>
* frame.c (do_switch_frame): New argument NORECORD passed to

View File

@ -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);