]> git.eshelyaron.com Git - emacs.git/commit
Fixed bug#19576: `write-file' saves wrong buffer.
authorAnders Lindgren <andlind@gmail.com>
Fri, 20 Nov 2015 20:07:29 +0000 (21:07 +0100)
committerAnders Lindgren <andlind@gmail.com>
Fri, 20 Nov 2015 20:07:29 +0000 (21:07 +0100)
commit75a1d009f747a220c7b9b1cfdbe7077082fe02d6
treeb2085b2ace71972d21c755fe17372b3a7fcdb855
parenteb3f6754b446a9da59b51a0bef365e5076a7cf8c
Fixed bug#19576: `write-file' saves wrong buffer.

If a function on the hook `window-size-change-functions' doesn't
restore the current buffer, functions that save and restore the
current window configuration (like `y-or-no-p') could silently
change the current buffer.  When `write-file' asked the user
confirmation to overwrite a file, `y-or-no-p' changed the current
buffer, and the wrong buffer was saved to the file.

* lisp/follow.el (follow-windows-start-end): Call `select-frame'
using the `norecord' parameter.
(follow-window-size-change): Restore current buffer. Call
`select-frame' using the `norecord' parameter. Cleanup.
lisp/follow.el