comparison src/indent.c @ 15278:dc5e711a109e

(compute_motion): When calling Fget_char_property, don't pass window if window is displaying the wrong buffer.
author Karl Heuer <kwzh@gnu.org>
date Wed, 22 May 1996 00:33:28 +0000
parents 3b7454f2d662
children 32fe67f92ee1
comparison
equal deleted inserted replaced
15277:a58e7fe45c0e 15278:dc5e711a109e
747 buffer, proplimit); 747 buffer, proplimit);
748 next_boundary = XFASTINT (end); 748 next_boundary = XFASTINT (end);
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 }
756 } 759 }
757 760
983 margin; this is usually taken from a window's hscroll member.\n\ 986 margin; this is usually taken from a window's hscroll member.\n\
984 TAB-OFFSET is the number of columns of the first tab that aren't\n\ 987 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\
994 POS is the buffer position where the scan stopped.\n\ 998 POS is the buffer position where the scan stopped.\n\
995 VPOS is the vertical position where the scan stopped.\n\ 999 VPOS is the vertical position where the scan stopped.\n\