[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master ade1238bce: Try to restore the initial "daemon" frame when a
From: |
Stefan Monnier |
Subject: |
Re: master ade1238bce: Try to restore the initial "daemon" frame when a display goes down |
Date: |
Thu, 14 Jul 2022 10:40:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> +/* 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
- Re: master ade1238bce: Try to restore the initial "daemon" frame when a display goes down,
Stefan Monnier <=