Fix bug #18113 with ambiguous wording in etc/DEBUG.

 etc/DEBUG: Improve wording.
* lisp/progmodes/python.el (inferior-python-mode): Doc fix.
src/dispnew.c (allocate_matrices_for_frame_redisplay): Fix typo in a comment.
Fixes: debbugs:18117

* textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.
src/window.c (window_resize_check, window_resize_apply): Fix typos in comments.
Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.

 lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
 that of the selected frame.
Fix GDB xwindow command.

 src/.gdbinit (xwindow): The members total_cols, total_lines,
 left_col, and top_line are C integers (and has been so for the
 last 1.5 years).
src/ChangeLog: Fix a typo.
Merge commit 117599 from trunk.
Fix another part of bug #18035 with redisplay of line-prefix and linum-mode.

 src/xdisp.c (display_line): If called with iterator set up to write
 to a marginal area, delay the call to handle_line_prefix until we
 switch back to the text area.
Fixes: debbugs:18140

* macros.c (Fstart_kbd_macro): Initialize kbd_macro_ptr and
kbd_macro_end together with kbd_macro_buffer.
Fix hscroll of R2L lines that begin with a TAB or another wide glyph.

 src/xdisp.c (append_stretch_glyph): In a R2L glyph row, decrease the
 pixel width of the first glyph that is hscrolled from display.
 (display_line): In R2L glyph rows, don't give a negative offset to
 row->x when the first glyph begins before first_visible_x.
Fix bug #18146 with bogus key rebindings in TUTORIAL.he.

 lisp/tutorial.el (tutorial--display-changes): Accept punctuation
 characters before the key binding.  (Bug#18146)