Subject: bug#63620: 30.0.50; [Feature Request] run hooks on sleep/wake

From: Ship Mints <[email-masked]>
Date: Fri, 7 Feb 2025 11:57:47 -0500

It's not a necessity. It's for documentation completeness. Was worth
checking.

On Fri, Feb 7, 2025 at 11:58 AM Eli Zaretskii <[email-masked]> wrote:

> > From: Ship Mints <[email-masked]>
> > Date: Fri, 7 Feb 2025 10:49:33 -0500
> > Cc: [email-masked], [email-masked], [email-masked],
> >       [email-masked]
> >
> > This works:
> >
> > $ mac-emacs -Q --batch --eval '(message "%S" (boundp
> '\''ns-version-string))'
> > t
> >
> > But not the below. It looks like no accessible event loop so no
> sleep/wake in batch on macOS. This could be
> > addressed by the current NS experts. It's not really clear why it was
> done this way. Running applescript
> > scripts doesn't have to be tied to a GUI. Neither does sleep/wake.
>
> Or we could decide that sleep/wake doesn't work in batch mode on NS.
> Why is that a necessity?
>