aboutsummaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/indent.c b/src/indent.c
index bbc944d2518..eee96061e25 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1764,11 +1764,7 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */)
1764 else 1764 else
1765 hscroll = tab_offset = 0; 1765 hscroll = tab_offset = 0;
1766 1766
1767 if (NILP (window)) 1767 w = decode_live_window (window);
1768 window = Fselected_window ();
1769 else
1770 CHECK_LIVE_WINDOW (window);
1771 w = XWINDOW (window);
1772 1768
1773 if (XINT (from) < BEGV || XINT (from) > ZV) 1769 if (XINT (from) < BEGV || XINT (from) > ZV)
1774 args_out_of_range_3 (from, make_number (BEGV), make_number (ZV)); 1770 args_out_of_range_3 (from, make_number (BEGV), make_number (ZV));
@@ -1790,8 +1786,7 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */)
1790 1)) 1786 1))
1791 : XINT (XCAR (topos))), 1787 : XINT (XCAR (topos))),
1792 (NILP (width) ? -1 : XINT (width)), 1788 (NILP (width) ? -1 : XINT (width)),
1793 hscroll, tab_offset, 1789 hscroll, tab_offset, w);
1794 XWINDOW (window));
1795 1790
1796 XSETFASTINT (bufpos, pos->bufpos); 1791 XSETFASTINT (bufpos, pos->bufpos);
1797 XSETINT (hpos, pos->hpos); 1792 XSETINT (hpos, pos->hpos);
@@ -1988,11 +1983,7 @@ whether or not it is currently displayed in some window. */)
1988 } 1983 }
1989 1984
1990 CHECK_NUMBER (lines); 1985 CHECK_NUMBER (lines);
1991 if (! NILP (window)) 1986 w = decode_live_window (window);
1992 CHECK_WINDOW (window);
1993 else
1994 window = selected_window;
1995 w = XWINDOW (window);
1996 1987
1997 old_buffer = Qnil; 1988 old_buffer = Qnil;
1998 GCPRO3 (old_buffer, old_charpos, old_bytepos); 1989 GCPRO3 (old_buffer, old_charpos, old_bytepos);