* Question about last_nonminibuf_frame
@ 2024-04-19 12:26 Gerd Möllmann
2024-04-19 14:26 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Gerd Möllmann @ 2024-04-19 12:26 UTC (permalink / raw)
To: emacs-devel
This variable of type struct frame * is not staticpro'd (it's not a
Lisp_Objecz, so it can't be, technically. Strictly speaking, the
variable can point to a frame that doesn't exist anymore, and can be
passed to Elisp via a call to last-nonminibuffer-frame.
Question is: shouldn't something be done about this?
(Tripped over this with MPS, because frames are Lisp objects, which
can nove in memory.)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about last_nonminibuf_frame
2024-04-19 12:26 Question about last_nonminibuf_frame Gerd Möllmann
@ 2024-04-19 14:26 ` Eli Zaretskii
2024-04-19 14:52 ` Gerd Möllmann
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-04-19 14:26 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: emacs-devel
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Date: Fri, 19 Apr 2024 14:26:18 +0200
>
> This variable of type struct frame * is not staticpro'd (it's not a
> Lisp_Objecz, so it can't be, technically. Strictly speaking, the
> variable can point to a frame that doesn't exist anymore, and can be
> passed to Elisp via a call to last-nonminibuffer-frame.
>
> Question is: shouldn't something be done about this?
AFAICT, delete_frame makes sure last_nonminibuf_frame cannot be a
non-existent frame.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about last_nonminibuf_frame
2024-04-19 14:26 ` Eli Zaretskii
@ 2024-04-19 14:52 ` Gerd Möllmann
0 siblings, 0 replies; 3+ messages in thread
From: Gerd Möllmann @ 2024-04-19 14:52 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Thanks
Sent from my iPhone
> On 19. Apr 2024, at 16:26, Eli Zaretskii <eliz@gnu.org> wrote:
>
>
>>
>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>> Date: Fri, 19 Apr 2024 14:26:18 +0200
>>
>> This variable of type struct frame * is not staticpro'd (it's not a
>> Lisp_Objecz, so it can't be, technically. Strictly speaking, the
>> variable can point to a frame that doesn't exist anymore, and can be
>> passed to Elisp via a call to last-nonminibuffer-frame.
>>
>> Question is: shouldn't something be done about this?
>
> AFAICT, delete_frame makes sure last_nonminibuf_frame cannot be a
> non-existent frame.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-19 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19 12:26 Question about last_nonminibuf_frame Gerd Möllmann
2024-04-19 14:26 ` Eli Zaretskii
2024-04-19 14:52 ` Gerd Möllmann
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).