aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorKarl Heuer1996-05-22 00:33:28 +0000
committerKarl Heuer1996-05-22 00:33:28 +0000
commitef23bc074f7324b7c2c71a515f1298d3aebdbcb5 (patch)
tree923e254d2a927c71cbcc86a8ea699eb2aebc5254 /src/indent.c
parent0581618d736791338ea0986de2cb089f86f8e1b8 (diff)
downloademacs-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/indent.c')
-rw-r--r--src/indent.c12
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\
985being displayed, perhaps because the line was continued within it.\n\ 988being displayed, perhaps because the line was continued within it.\n\
986If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\ 989If OFFSETS is nil, HSCROLL and TAB-OFFSET are assumed to be zero.\n\
987\n\ 990\n\
988WINDOW is the window to operate on. Currently this is used only to\n\ 991WINDOW is the window to operate on. It is used to choose the display table;\n\
989find the display table. It does not matter what buffer WINDOW displays;\n\ 992if it is showing the current buffer, it is used also for\n\
990`compute-motion' always operates on the current buffer.\n\ 993deciding which overlay properties apply.\n\
994Note that `compute-motion' always operates on the current buffer.\n\
991\n\ 995\n\
992The value is a list of five elements:\n\ 996The value is a list of five elements:\n\
993 (POS HPOS VPOS PREVHPOS CONTIN)\n\ 997 (POS HPOS VPOS PREVHPOS CONTIN)\n\