* Capture frame, the first entry returned by (mouse-position)
@ 2022-09-17 17:25 wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 17:39 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: wilnerthomas--- via Users list for the GNU Emacs text editor @ 2022-09-17 17:25 UTC (permalink / raw)
To: Help Gnu Emacs
I would like to capture the frame where the mouse is located, the first entry
returned by (mouse-position). How can I do it?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 17:25 Capture frame, the first entry returned by (mouse-position) wilnerthomas--- via Users list for the GNU Emacs text editor
@ 2022-09-17 17:39 ` Eli Zaretskii
2022-09-17 17:53 ` wilnerthomas--- via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 17:39 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sat, 17 Sep 2022 19:25:30 +0200 (CEST)
> From: wilnerthomas--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
>
> I would like to capture the frame where the mouse is located, the first entry
> returned by (mouse-position). How can I do it?
What do you mean by "capture" in this case?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 17:39 ` Eli Zaretskii
@ 2022-09-17 17:53 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 17:58 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: wilnerthomas--- via Users list for the GNU Emacs text editor @ 2022-09-17 17:53 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Sep 17, 2022, 17:39 by eliz@gnu.org:
>> Date: Sat, 17 Sep 2022 19:25:30 +0200 (CEST)
>> From: wilnerthomas--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
>>
>> I would like to capture the frame where the mouse is located, the first entry
>> returned by (mouse-position). How can I do it?
>>
>
> What do you mean by "capture" in this case?
>
To get it so I can pass it to functions that require frame as argument.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 17:53 ` wilnerthomas--- via Users list for the GNU Emacs text editor
@ 2022-09-17 17:58 ` Eli Zaretskii
2022-09-17 18:00 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 17:58 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sat, 17 Sep 2022 19:53:54 +0200 (CEST)
> From: wilnerthomas@tutanota.com
> Cc: help-gnu-emacs@gnu.org
>
> Sep 17, 2022, 17:39 by eliz@gnu.org:
>
> >> Date: Sat, 17 Sep 2022 19:25:30 +0200 (CEST)
> >> From: wilnerthomas--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> >>
> >> I would like to capture the frame where the mouse is located, the first entry
> >> returned by (mouse-position). How can I do it?
> >>
> >
> > What do you mean by "capture" in this case?
> >
> To get it so I can pass it to functions that require frame as argument.
Just 'car (mouse-position)' should do. I'm not even sure why you
asked, it's so obvious...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 17:58 ` Eli Zaretskii
@ 2022-09-17 18:00 ` Eli Zaretskii
2022-09-17 18:24 ` wilnerthomas--- via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 18:00 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sat, 17 Sep 2022 20:58:49 +0300
> From: Eli Zaretskii <eliz@gnu.org>
>
> Just 'car (mouse-position)' should do.
That should have been '(car (mouse-position))', of course.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:00 ` Eli Zaretskii
@ 2022-09-17 18:24 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 18:35 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: wilnerthomas--- via Users list for the GNU Emacs text editor @ 2022-09-17 18:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Sep 17, 2022, 18:00 by eliz@gnu.org:
>> Date: Sat, 17 Sep 2022 20:58:49 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>>
>> Just 'car (mouse-position)' should do.
>>
>
> That should have been '(car (mouse-position))', of course.
>
It is quite obvious, but then when you want to pass it to a function that requires
FRAME, do you pass it as a string?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:24 ` wilnerthomas--- via Users list for the GNU Emacs text editor
@ 2022-09-17 18:35 ` Eli Zaretskii
2022-09-17 18:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 18:41 ` Christopher Dimech
0 siblings, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 18:35 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sat, 17 Sep 2022 20:24:25 +0200 (CEST)
> From: wilnerthomas@tutanota.com
> Cc: help-gnu-emacs@gnu.org
>
> Sep 17, 2022, 18:00 by eliz@gnu.org:
>
> >> Date: Sat, 17 Sep 2022 20:58:49 +0300
> >> From: Eli Zaretskii <eliz@gnu.org>
> >>
> >> Just 'car (mouse-position)' should do.
> >>
> >
> > That should have been '(car (mouse-position))', of course.
> >
> It is quite obvious, but then when you want to pass it to a function that requires
> FRAME, do you pass it as a string?
Why a string? Just pass the value of '(car (mouse-position))'.
That's the frame object those functions want.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:35 ` Eli Zaretskii
@ 2022-09-17 18:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 18:57 ` Eli Zaretskii
2022-09-17 18:41 ` Christopher Dimech
1 sibling, 1 reply; 12+ messages in thread
From: wilnerthomas--- via Users list for the GNU Emacs text editor @ 2022-09-17 18:39 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
Sep 17, 2022, 18:35 by eliz@gnu.org:
>> Date: Sat, 17 Sep 2022 20:24:25 +0200 (CEST)
>> From: wilnerthomas@tutanota.com
>> Cc: help-gnu-emacs@gnu.org
>>
>> Sep 17, 2022, 18:00 by eliz@gnu.org:
>>
>> >> Date: Sat, 17 Sep 2022 20:58:49 +0300
>> >> From: Eli Zaretskii <eliz@gnu.org>
>> >>
>> >> Just 'car (mouse-position)' should do.
>> >>
>> >
>> > That should have been '(car (mouse-position))', of course.
>> >
>> It is quite obvious, but then when you want to pass it to a function that requires
>> FRAME, do you pass it as a string?
>>
>
> 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).
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
@ 2022-09-17 18:57 ` Eli Zaretskii
0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 18:57 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:35 ` Eli Zaretskii
2022-09-17 18:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
@ 2022-09-17 18:41 ` Christopher Dimech
2022-09-17 18:59 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Christopher Dimech @ 2022-09-17 18:41 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: help-gnu-emacs
> Sent: Sunday, September 18, 2022 at 6:35 AM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Capture frame, the first entry returned by (mouse-position)
>
> > Date: Sat, 17 Sep 2022 20:24:25 +0200 (CEST)
> > From: wilnerthomas@tutanota.com
> > Cc: help-gnu-emacs@gnu.org
> >
> > Sep 17, 2022, 18:00 by eliz@gnu.org:
> >
> > >> Date: Sat, 17 Sep 2022 20:58:49 +0300
> > >> From: Eli Zaretskii <eliz@gnu.org>
> > >>
> > >> Just 'car (mouse-position)' should do.
> > >>
> > >
> > > That should have been '(car (mouse-position))', of course.
> > >
> > It is quite obvious, but then when you want to pass it to a function that requires
> > FRAME, do you pass it as a string?
>
> Why a string? Just pass the value of '(car (mouse-position))'.
> That's the frame object those functions want.
Frame objects seem quite complicated to handle, they are long with spaces in them.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Capture frame, the first entry returned by (mouse-position)
2022-09-17 18:41 ` Christopher Dimech
@ 2022-09-17 18:59 ` Eli Zaretskii
2022-09-17 22:06 ` [External] : " Drew Adams
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2022-09-17 18:59 UTC (permalink / raw)
To: help-gnu-emacs
> From: Christopher Dimech <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Sat, 17 Sep 2022 20:41:49 +0200
>
> Frame objects seem quite complicated to handle, they are long with spaces in them.
That's not the frame, that's its printed representation.
This is a good time to re-read the immortal part of Alice in
Wonderland where it explains the difference between a thing, the name
of the thing, and the name of the name.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-09-17 22:06 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-17 17:25 Capture frame, the first entry returned by (mouse-position) wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 17:39 ` Eli Zaretskii
2022-09-17 17:53 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 17:58 ` Eli Zaretskii
2022-09-17 18:00 ` Eli Zaretskii
2022-09-17 18:24 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 18:35 ` Eli Zaretskii
2022-09-17 18:39 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-09-17 18:57 ` Eli Zaretskii
2022-09-17 18:41 ` Christopher Dimech
2022-09-17 18:59 ` Eli Zaretskii
2022-09-17 22:06 ` [External] : " Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.