diff options
| author | Richard M. Stallman | 1994-01-20 19:54:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-20 19:54:47 +0000 |
| commit | 53b7feeccbe950ff9fdd37d2fbc321def817c922 (patch) | |
| tree | e2719bf52bd00791cf2b64f6bab589af818ccdb4 /src | |
| parent | 3bf5f17a187f06908852543b43ae9037a2985294 (diff) | |
| download | emacs-53b7feeccbe950ff9fdd37d2fbc321def817c922.tar.gz emacs-53b7feeccbe950ff9fdd37d2fbc321def817c922.zip | |
(Fprevious_property_change): Move back at least 1 char.
(Fprevious_single_property_change): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c index 6c317063d6d..189dd4726e8 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -647,6 +647,10 @@ back past position LIMIT; fail if nothing is found before LIMIT.") | |||
| 647 | if (NULL_INTERVAL_P (i)) | 647 | if (NULL_INTERVAL_P (i)) |
| 648 | return limit; | 648 | return limit; |
| 649 | 649 | ||
| 650 | /* Start with the interval containing the char before point. */ | ||
| 651 | if (i->position == XFASTINT (pos)) | ||
| 652 | i = previous_interval (i); | ||
| 653 | |||
| 650 | previous = previous_interval (i); | 654 | previous = previous_interval (i); |
| 651 | while (! NULL_INTERVAL_P (previous) && intervals_equal (previous, i) | 655 | while (! NULL_INTERVAL_P (previous) && intervals_equal (previous, i) |
| 652 | && (NILP (limit) | 656 | && (NILP (limit) |
| @@ -686,6 +690,10 @@ back past position LIMIT; fail if nothing is found before LIMIT.") | |||
| 686 | if (NULL_INTERVAL_P (i)) | 690 | if (NULL_INTERVAL_P (i)) |
| 687 | return limit; | 691 | return limit; |
| 688 | 692 | ||
| 693 | /* Start with the interval containing the char before point. */ | ||
| 694 | if (i->position == XFASTINT (pos)) | ||
| 695 | i = previous_interval (i); | ||
| 696 | |||
| 689 | here_val = textget (i->plist, prop); | 697 | here_val = textget (i->plist, prop); |
| 690 | previous = previous_interval (i); | 698 | previous = previous_interval (i); |
| 691 | while (! NULL_INTERVAL_P (previous) | 699 | while (! NULL_INTERVAL_P (previous) |