* Re: master ade1238bce: Try to restore the initial "daemon" frame when a display goes down
[not found] ` <20220714104929.1A883C0DAE8@vcs2.savannah.gnu.org>
@ 2022-07-14 14:40 ` Stefan Monnier
2022-07-15 1:57 ` Po Lu
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2022-07-14 14:40 UTC (permalink / raw)
To: emacs-devel; +Cc: Po Lu
> +/* Try to find a frame in Vframe_list, and make it the selected frame.
> + `delete_frame' sometimes misses the initial frame for an unknown
> + reason when Emacs is running as a background daemon. */
> +
> +static void
> +x_try_restore_frame (void)
> +{
> + Lisp_Object tail, frame;
> +
> + FOR_EACH_FRAME (tail, frame)
> + {
> + if (!NILP (do_switch_frame (frame, 1, Qnil)))
> + return;
> + }
> +}
IOW, this is a workaround for a problem elsewhere. Please open a bug
report for that problem elsewhere and refer to it from this code.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-15 1:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <165779576875.6731.12598744904445262142@vcs2.savannah.gnu.org>
[not found] ` <20220714104929.1A883C0DAE8@vcs2.savannah.gnu.org>
2022-07-14 14:40 ` master ade1238bce: Try to restore the initial "daemon" frame when a display goes down Stefan Monnier
2022-07-15 1:57 ` Po Lu
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).