mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(special-display-popup-frame): Make the buffer current as its frame is created.
This commit is contained in:
parent
87f14b12a9
commit
86bd482f70
1 changed files with 3 additions and 1 deletions
|
|
@ -135,7 +135,9 @@ Pass it BUFFER as first arg, and (cdr ARGS) gives the rest of the args."
|
|||
;; (set-window-dedicated-p window t)
|
||||
window))
|
||||
;; If no window yet, make one in a new frame.
|
||||
(let ((frame (make-frame (append args special-display-frame-alist))))
|
||||
(let ((frame
|
||||
(with-current-buffer buffer
|
||||
(make-frame (append args special-display-frame-alist)))))
|
||||
(set-window-buffer (frame-selected-window frame) buffer)
|
||||
(set-window-dedicated-p (frame-selected-window frame) t)
|
||||
(frame-selected-window frame))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue