Sorry

The message appeared the first two times I restarted Emacs after deleting the file.  Now everything is fine.  Go figure.

Consider it fixed.



Marco Antoniotti
Somewhere over the Rainbow


On Thu, 9 May 2024 at 11:26, Marco Antoniotti <marcoxa@gmail.com> wrote:
Hi

Nope.  Removing the file does not help.

marcoxa$ rm ~/Library/Colors/Emacs.clr
marcoxa$ emacs &
[1] 33269
Bougaza:magiciel marcoxa$ 2024-05-09 11:22:44.978 Emacs-x86_64-10_14[33269:5028483] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver}

The file gets regenerated, but so does the error.

All the best

MA


On Thu, May 9, 2024 at 6:56 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Marco Antoniotti <marcoxa@gmail.com>
> Date: Wed, 8 May 2024 21:59:26 +0200
>
> When I start Emacs on a Mac running Sonoma 14.x I get the following "error" or "warning" at startup.   Emacs
> seems to work fine afterward; any idea about why this may be happening?
>
> marcoxa$ emacs
> 2024-05-08 21:55:41.855 Emacs-x86_64-10_14[25649:4641200] Failed to initialize color list unarchiver:
> Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _
> initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by
> NSKeyedUnarchiver" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _
> initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by
> NSKeyedUnarchiver}

When this came up before (e.g., bug#32854), our macOS expert said the
reason was a stale or corrupt version of the color file, and the
solution was to delete it:

  rm ~/Library/Colors/Emacs.clr

Can you try this and see if it solves your problem?


--
Marco Antoniotti
Somewhere over the Rainbow