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 10:41:47 -0400

On Sun, 30 Sep 2018 10:14:35 -0400 "Perry E. Metzger"
<address@hidden> wrote:
> > 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)))))
>
> FYI, this turns out to be absolutely perfect. Thank you for that
> code snippet.

Actually, it is _almost_ perfect. For some odd reason, the new window
ends up a few pixels lower than the old. I can fix this with some
subtraction but I'm puzzled why setting top to (cdr (frame-position))
isn't quite doing the right thing.

-- 
Perry E. Metzger                address@hidden



reply via email to

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