]> git.eshelyaron.com Git - emacs.git/commit
Avoid that unwind_format_mode_line messes up buffer points (Bug#32777)
authorMartin Rudalics <rudalics@gmx.at>
Sat, 29 Dec 2018 09:51:35 +0000 (10:51 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Sat, 29 Dec 2018 09:51:35 +0000 (10:51 +0100)
commitfb10834a602416f8422131d5ce9dabcc28e57be4
tree40e63548d63cf95658eb33a5cc74f5b318fa9222
parent8f9d93f3054a5a99a760101fa81a013c67d52f58
Avoid that unwind_format_mode_line messes up buffer points (Bug#32777)

* src/xdisp.c (format_mode_line_unwind_data): Before
temporarily selecting a window on another frame, separately save
the point of that window's buffer too.
(unwind_format_mode_line): After undoing the temporary
selection of a window on another frame, separately restore the
buffer point of that window.  This is needed since the
operation that deselects that window will have stored back the
point of that window into its buffer's point which is wrong
since that window was never "officially" selected (Bug#32777).
src/xdisp.c