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

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

Re: Capture frame, the first entry returned by (mouse-position)


From: Eli Zaretskii
Subject: Re: Capture frame, the first entry returned by (mouse-position)
Date: Sat, 17 Sep 2022 21:57:42 +0300

> Date: Sat, 17 Sep 2022 20:39:16 +0200 (CEST)
> From: wilnerthomas@tutanota.com
> Cc: help-gnu-emacs@gnu.org
> 
> Sep 17, 2022, 18:35 by eliz@gnu.org:
> 
> > Why a string?  Just pass the value of '(car (mouse-position))'.
> > That's the frame object those functions want.
> >
> I would like to pass it for making the initial frame, so cannot just call 
> (car (mouse-position))
> for frame in (set-frame-position frame nlft ntop).

If the frame was not yet created, you cannot call set-frame-position
for it, because the frame doesn't exist yet.  You should instead set
the 'top' and 'left' parameters of initial-frame-alist.



reply via email to

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