help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the new frame?


From: John Mastro
Subject: Re: How to get the new frame?
Date: Mon, 20 Jul 2015 20:56:54 -0700

> Is there a neat way in Lisp code to get at the frame which
> find-file-other-frame just has created?  The function itself returns
> (indirectly, via switch-to-buffer-other-frame) the buffer and not the
> frame, just as all the *-other-frame functions.


Would something like this work?

(window-frame (get-buffer-window (find-file-other-frame ...)))

-- 
john


reply via email to

[Prev in Thread] Current Thread [Next in Thread]