+2012-10-31 Martin Rudalics <rudalics@gmx.at>
+
+ * window.el (quit-restore-window): If the window has been
+ created on an existing frame and ended up as the sole window on
+ that frame, do not delete it (Bug#12764).
+
2012-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/sh-script.el (sh--inside-noncommand-expression):
quad entry)
(cond
((and (not prev-buffer)
- (memq (nth 1 quit-restore) '(window frame))
+ (or (eq (nth 1 quit-restore) 'frame)
+ (and (eq (nth 1 quit-restore) 'window)
+ ;; If the window has been created on an existing
+ ;; frame and ended up as the sole window on that
+ ;; frame, do not delete it (Bug#12764).
+ (not (eq window (frame-root-window window)))))
(eq (nth 3 quit-restore) buffer)
;; Delete WINDOW if possible.
(window--delete window nil (eq bury-or-kill 'kill)))
+2012-10-31 Martin Rudalics <rudalics@gmx.at>
+
+ * minibuf.c (read_minibuf): Restore current buffer since
+ choose_minibuf_frame calling Fset_frame_selected_window may
+ change it (Bug#12766).
+
2012-10-30 Jan Djärv <jan.h.d@swipnet.se>
* frame.c (Fframe_pixel_height): Fix documentation (Bug#12733).
/* Choose the minibuffer window and frame, and take action on them. */
+ /* Prepare for restoring the current buffer since choose_minibuf_frame
+ calling Fset_frame_selected_window may change it (Bug#12766). */
+ record_unwind_protect (Fset_buffer, Fcurrent_buffer ());
+
choose_minibuf_frame ();
record_unwind_protect (choose_minibuf_frame_1, Qnil);