diff options
author | Karl Heuer <kwzh@gnu.org> | 1996-05-22 00:33:28 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1996-05-22 00:33:28 +0000 |
commit | 53db280a0a82aeee73321ae05f5773ff7ce2234a (patch) | |
tree | 34058f1717941d484a35cd96232b251e05a690f2 /src/indent.c | |
parent | e01f2358f24c211fdba140a9c268d8455a841607 (diff) | |
download | emacs-53db280a0a82aeee73321ae05f5773ff7ce2234a.tar.gz |
(compute_motion): When calling Fget_char_property,
don't pass window if window is displaying the wrong buffer.
Diffstat (limited to 'src/indent.c')
-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, } /* if the `invisible' property is set, we can skip to the next property change */ - prop = Fget_char_property (position, Qinvisible, window); + if (EQ (win->buffer, buffer)) + prop = Fget_char_property (position, Qinvisible, window); + else + prop = Fget_char_property (position, Qinvisible, buffer); if (TEXT_PROP_MEANS_INVISIBLE (prop)) pos = next_boundary; } @@ -985,9 +988,10 @@ TAB-OFFSET is the number of columns of the first tab that aren't\n\ being displayed, perhaps because the line was continued within it.\n\ If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\ \n\ -WINDOW is the window to operate on. Currently this is used only to\n\ -find the display table. It does not matter what buffer WINDOW displays;\n\ -`compute-motion' always operates on the current buffer.\n\ +WINDOW is the window to operate on. It is used to choose the display table;\n\ +if it is showing the current buffer, it is used also for\n\ +deciding which overlay properties apply.\n\ +Note that `compute-motion' always operates on the current buffer.\n\ \n\ The value is a list of five elements:\n\ (POS HPOS VPOS PREVHPOS CONTIN)\n\ |