(switch-to-buffer-other-frame): Don't raise frame since
pop-to-buffer already does it. (display-buffer-other-frame): Fix doc-string.
This commit is contained in:
parent
bbca16d8d1
commit
1676807bc7
2 changed files with 19 additions and 10 deletions
|
@ -1,3 +1,14 @@
|
|||
2008-09-16 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* frame.el (select-frame-set-input-focus): With non-nil
|
||||
mouse-autoselect-window always move mouse cursor to frame's
|
||||
selected window. Otherwise restore pre 2008-09-13 behavior.
|
||||
(select-frame-by-name): Use select-frame-set-input-focus.
|
||||
|
||||
* files.el (switch-to-buffer-other-frame): Don't raise frame since
|
||||
pop-to-buffer already does it.
|
||||
(display-buffer-other-frame): Fix doc-string.
|
||||
|
||||
2008-09-16 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* add-log.el (diff-find-source-location): Update declaration.
|
||||
|
|
|
@ -1074,24 +1074,22 @@ documentation for additional customization information."
|
|||
|
||||
(defun switch-to-buffer-other-frame (buffer &optional norecord)
|
||||
"Switch to buffer BUFFER in another frame.
|
||||
Optional second arg NORECORD non-nil means
|
||||
do not put this buffer at the front of the list of recently selected ones.
|
||||
Optional second arg NORECORD non-nil means do not put this
|
||||
buffer at the front of the list of recently selected ones.
|
||||
This function returns the buffer it switched to.
|
||||
|
||||
This uses the function `display-buffer' as a subroutine; see its
|
||||
documentation for additional customization information."
|
||||
This uses the function `display-buffer' as a subroutine; see
|
||||
its documentation for additional customization information."
|
||||
(interactive
|
||||
(list (read-buffer-to-switch "Switch to buffer in other frame: ")))
|
||||
(let ((pop-up-frames t)
|
||||
same-window-buffer-names same-window-regexps)
|
||||
(prog1
|
||||
(pop-to-buffer buffer t norecord)
|
||||
(raise-frame (window-frame (selected-window))))))
|
||||
(pop-to-buffer buffer t norecord)))
|
||||
|
||||
(defun display-buffer-other-frame (buffer)
|
||||
"Switch to buffer BUFFER in another frame.
|
||||
This uses the function `display-buffer' as a subroutine; see its
|
||||
documentation for additional customization information."
|
||||
"Display buffer BUFFER in another frame.
|
||||
This uses the function `display-buffer' as a subroutine; see
|
||||
its documentation for additional customization information."
|
||||
(interactive "BDisplay buffer in other frame: ")
|
||||
(let ((pop-up-frames t)
|
||||
same-window-buffer-names same-window-regexps
|
||||
|
|
Loading…
Add table
Reference in a new issue