diff options
| author | Karl Heuer | 1996-05-22 00:33:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-05-22 00:33:28 +0000 |
| commit | ef23bc074f7324b7c2c71a515f1298d3aebdbcb5 (patch) | |
| tree | 923e254d2a927c71cbcc86a8ea699eb2aebc5254 /src | |
| parent | 0581618d736791338ea0986de2cb089f86f8e1b8 (diff) | |
| download | emacs-ef23bc074f7324b7c2c71a515f1298d3aebdbcb5.tar.gz emacs-ef23bc074f7324b7c2c71a515f1298d3aebdbcb5.zip | |
(compute_motion): When calling Fget_char_property,
don't pass window if window is displaying the wrong buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/indent.c b/src/indent.c index aa3f855344e..452718cac77 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -749,7 +749,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 749 | } | 749 | } |
| 750 | /* if the `invisible' property is set, we can skip to | 750 | /* if the `invisible' property is set, we can skip to |
| 751 | the next property change */ | 751 | the next property change */ |
| 752 | prop = Fget_char_property (position, Qinvisible, window); | 752 | if (EQ (win->buffer, buffer)) |
| 753 | prop = Fget_char_property (position, Qinvisible, window); | ||
| 754 | else | ||
| 755 | prop = Fget_char_property (position, Qinvisible, buffer); | ||
| 753 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) | 756 | if (TEXT_PROP_MEANS_INVISIBLE (prop)) |
| 754 | pos = next_boundary; | 757 | pos = next_boundary; |
| 755 | } | 758 | } |
| @@ -985,9 +988,10 @@ TAB-OFFSET is the number of columns of the first tab that aren't\n\ | |||
| 985 | being displayed, perhaps because the line was continued within it.\n\ | 988 | being displayed, perhaps because the line was continued within it.\n\ |
| 986 | If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\ | 989 | If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\ |
| 987 | \n\ | 990 | \n\ |
| 988 | WINDOW is the window to operate on. Currently this is used only to\n\ | 991 | WINDOW is the window to operate on. It is used to choose the display table;\n\ |
| 989 | find the display table. It does not matter what buffer WINDOW displays;\n\ | 992 | if it is showing the current buffer, it is used also for\n\ |
| 990 | `compute-motion' always operates on the current buffer.\n\ | 993 | deciding which overlay properties apply.\n\ |
| 994 | Note that `compute-motion' always operates on the current buffer.\n\ | ||
| 991 | \n\ | 995 | \n\ |
| 992 | The value is a list of five elements:\n\ | 996 | The value is a list of five elements:\n\ |
| 993 | (POS HPOS VPOS PREVHPOS CONTIN)\n\ | 997 | (POS HPOS VPOS PREVHPOS CONTIN)\n\ |