--- Begin Message ---
Subject: |
[PATCH] ; Silence macOS 14 warning |
Date: |
Wed, 27 Sep 2023 21:00:45 +0200 |
Tags: patch
Hi,
After updating to macOS 14 (and rebuilding Emacs), I see the following
warning whenever I start Emacs:
WARNING: Secure coding is not enabled for restorable state! Enable secure
coding by implementing
NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning
YES.
This patch does exactly what the warning suggests, and it silences the
warning.
TBH I'm not entirely sure I understand the implications of implementing
`applicationSupportsSecureRestorableState`. IIUC it makes Emacs opt-in
to the "secure state restoration" mechanism in contrast to a former
(supposedly less secure) mechanism, but AFAICT Emacs doesn't opt-in to
state restoration in the NS port in the first place...
0001-Silence-macOS-14-warning.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#66245: [PATCH] ; Silence macOS 14 warning |
Date: |
Fri, 29 Sep 2023 04:35:57 -0700 |
Version: 29.2
Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
> Tags: patch
>
> Hi,
>
> After updating to macOS 14 (and rebuilding Emacs), I see the following
> warning whenever I start Emacs:
>
> WARNING: Secure coding is not enabled for restorable state! Enable secure
> coding by implementing
> NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning
> YES.
>
> This patch does exactly what the warning suggests, and it silences the
> warning.
Thanks, this patch is now installed on emacs-29 ([1: a4185f87bd0]).
I'm also closing the bug, but this obviously doesn't preclude further
discussion.
[1: a4185f87bd0]: 2023-09-29 13:32:55 +0200
; Silence macOS 14 warning
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a4185f87bd0e5c129ce93a56b5a3330e2d6b1776
--- End Message ---