mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 21:07:36 +00:00
In special-display-popup-frame reset new frame's previous buffers to nil.
* window.el (special-display-popup-frame): When popping up a new frame reset its previous buffers to nil. Simplify code.
This commit is contained in:
parent
bfeef8b6da
commit
7f80c86d3c
2 changed files with 12 additions and 8 deletions
|
|
@ -14,6 +14,8 @@
|
|||
* window.el (quit-window): Undedicate window when switching to
|
||||
previous buffer. Reported by Thierry Volpiatto
|
||||
<thierry.volpiatto@gmail.com>.
|
||||
(special-display-popup-frame): When popping up a new frame reset
|
||||
its previous buffers to nil. Simplify code.
|
||||
|
||||
2011-09-21 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
|
|
|
|||
|
|
@ -4104,14 +4104,16 @@ and (cdr ARGS) as second."
|
|||
special-display-buffer-names special-display-regexps)
|
||||
(display-buffer buffer)))
|
||||
;; If no window yet, make one in a new frame.
|
||||
(let ((frame
|
||||
(with-current-buffer buffer
|
||||
(make-frame (append args special-display-frame-alist)))))
|
||||
(display-buffer-record-window
|
||||
'frame (frame-selected-window frame) buffer)
|
||||
(set-window-buffer (frame-selected-window frame) buffer)
|
||||
(set-window-dedicated-p (frame-selected-window frame) t)
|
||||
(frame-selected-window frame))))))
|
||||
(let* ((frame
|
||||
(with-current-buffer buffer
|
||||
(make-frame (append args special-display-frame-alist))))
|
||||
(window (frame-selected-window frame)))
|
||||
(display-buffer-record-window 'frame window buffer)
|
||||
(set-window-buffer window buffer)
|
||||
;; Reset list of WINDOW's previous buffers to nil.
|
||||
(set-window-prev-buffers window nil)
|
||||
(set-window-dedicated-p window t)
|
||||
window)))))
|
||||
|
||||
(defcustom special-display-function 'special-display-popup-frame
|
||||
"Function to call for displaying special buffers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue