diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/textprop.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 787ed51658f..e78abfd021f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-11-03 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * textprop.c (Fprevious_single_char_property_change): Return 0 | ||
| 4 | when there's no change in a string. (Bug#1301) | ||
| 5 | |||
| 1 | 2008-11-02 Martin Rudalics <rudalics@gmx.at> | 6 | 2008-11-02 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * frame.c (do_switch_frame): New argument NORECORD passed to | 8 | * 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. */) | |||
| 883 | if (NILP (position)) | 883 | if (NILP (position)) |
| 884 | { | 884 | { |
| 885 | if (NILP (limit)) | 885 | if (NILP (limit)) |
| 886 | position = make_number (SCHARS (object)); | 886 | position = make_number (0); |
| 887 | else | 887 | else |
| 888 | { | 888 | { |
| 889 | CHECK_NUMBER (limit); | 889 | CHECK_NUMBER (limit); |