emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration o


From: Po Lu
Subject: Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat'
Date: Thu, 21 Apr 2022 10:05:07 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Keith David Bershatsky <esq@lawlist.com> writes:

> Emacs master (as of commit f98c3f4426fecf794f47f27aebe1f3b854fb1bfd)
> now builds successfully on OSX 10.6.8 using all of the recent patches,
> plus the suggestion by Po to use the number 1068 instead of 1060 in
> nsterm.m.  Emacs crashes, however, when trying to launch it.  To help
> keep track of where I believe we are in the evolution of patches, I
> have attached what I believe to be a combined patch of the work done
> by Alan and Po, plus the modification of number 1060 to 1068 in
> nsterm.m.  Here is a backtrace:

Thanks.

Does this fix the crash?

diff --git a/src/nsterm.m b/src/nsterm.m
index 5a6a4d663b..edafdfc663 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -150,10 +150,11 @@ + (NSColor *)colorForEmacsRed:(CGFloat)red 
green:(CGFloat)green
                                 blue: blue
                                alpha: alpha];
 #endif
-  return [NSColor colorWithCalibratedRed: red
-                                   green: green
-                                    blue: blue
-                                   alpha: alpha];
+  return [[NSColor colorWithCalibratedRed: red
+                                   green: green
+                                    blue: blue
+                                   alpha: alpha]
+          colorUsingColorSpace: [NSColorSpace deviceRGBColorSpace]];
 }
 
 - (NSColor *)colorUsingDefaultColorSpace


reply via email to

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