2010-11-15 Martin Rudalics <rudalics@gmx.at>
+ * minibuffer.el (minibuffer-completion-help): Don't mark window
+ as dedicated, the quit-restore parameter should take care of
+ deleting the window.
+ (minibuffer-hide-completions): Use quit-restore-window instead
+ of bury-buffer.
+
* window.el (display-buffer-split-window-1): Remove max-size
argument and corresponding code.
(display-buffer-split-window): Remove handling of max-height and
(or (consp (cdr completions))
(not (equal (car completions) string))))
(let* ((last (last completions))
- (base-size (cdr last))
- ;; If the *Completions* buffer is shown in a new
- ;; window, mark it as softly-dedicated, so bury-buffer in
- ;; minibuffer-hide-completions will know whether to
- ;; delete the window or not.
- (display-buffer-mark-dedicated 'soft))
+ (base-size (cdr last)))
(with-output-to-temp-buffer "*Completions*"
;; Remove the base-size tail because `sort' requires a properly
;; nil-terminated list.
;; FIXME: We could/should use minibuffer-scroll-window here, but it
;; can also point to the minibuffer-parent-window, so it's a bit tricky.
(let ((win (get-buffer-window "*Completions*" 0)))
- (if win (with-selected-window win (bury-buffer)))))
+ (if win (quit-restore-window win))))
(defun exit-minibuffer ()
"Terminate this minibuffer argument."