emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling emacs-27.0.91 on macOS Catalina


From: Alan Third
Subject: Re: Compiling emacs-27.0.91 on macOS Catalina
Date: Fri, 15 May 2020 07:25:58 +0100

On Fri, May 15, 2020 at 09:06:35AM +0300, Eli Zaretskii wrote:
> > Date: Thu, 14 May 2020 20:24:32 +0100
> > From: Alan Third <address@hidden>
> > Cc: address@hidden, address@hidden
> > 
> > > > Please try deleting ~/Library/Colors/Emacs.clr
> > > 
> > > Should we have this in PROBLEMS?
> > 
> > Although it does still seem to be a rare problem, I’m beginning to
> > think that we should.
> > 
> > Does this seem reasonable?
> 
> Yes, thanks.  Please push to the emacs-27 branch.

Alternatively we could check the results from trying to load the file.
There's no way I can see to catch the error, but we can count the
number of colours available. Is this too late for Emacs 27?

modified   src/nsterm.m
@@ -5368,7 +5368,8 @@ Needs to be here because ns_initialize_display_info () 
uses AppKit classes.
   {
     NSColorList *cl = [NSColorList colorListNamed: @"Emacs"];
 
-    if ( cl == nil )
+    /* There are 752 colors defined in rgb.txt.  */
+    if ( cl == nil || [[cl allKeys] count] < 752)
       {
         Lisp_Object color_file, color_map, color;
         unsigned long c;

-- 
Alan Third



reply via email to

[Prev in Thread] Current Thread [Next in Thread]