emacs-devel
[Top][All Lists]
Advanced

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

Re: Is there a way to control where frames get created?


From: Perry E. Metzger
Subject: Re: Is there a way to control where frames get created?
Date: Sun, 30 Sep 2018 08:05:04 -0400

On Sun, 30 Sep 2018 09:57:48 +0200 martin rudalics <address@hidden>
wrote:
>  > I'd like to rig things up so that make-frame-command creates its
>  > new frame adjacent to the existing frame if that's geometrically
>  > possible on the GUI display. To do that, I'd need to both be
>  > able to find out where the existing frame is, and to tell
>  > make-frame-command where to create the new frame.
>  >
>  > Are there any hooks that make this possible? Any advice on how I
>  > might go about doing it?  
> 
> To put a frame right on the right of the selected one use
> 
> (make-frame `((left . ,(+ (car (frame-position))
> (frame-outer-width))) (top . ,(cdr (frame-position)))))

Thank you that's precisely what I want to do! I'll try it out.

BTW, do you know what this does if there isn't sufficient room to the
right?

Perry
-- 
Perry E. Metzger                address@hidden



reply via email to

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