aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorAnders Lindgren2015-11-20 21:07:29 +0100
committerAnders Lindgren2015-11-20 21:07:29 +0100
commit75a1d009f747a220c7b9b1cfdbe7077082fe02d6 (patch)
treeb2085b2ace71972d21c755fe17372b3a7fcdb855 /src/alloc.c
parenteb3f6754b446a9da59b51a0bef365e5076a7cf8c (diff)
downloademacs-75a1d009f747a220c7b9b1cfdbe7077082fe02d6.tar.gz
emacs-75a1d009f747a220c7b9b1cfdbe7077082fe02d6.zip
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.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions