From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: -getRed:green:blue:alpha: not defined for the NSColor Date: Sun, 14 Jul 2019 09:12:08 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="139319"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 14 18:12:34 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmh73-000a4X-95 for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2019 18:12:33 +0200 Original-Received: from localhost ([::1]:33186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmh71-0006Le-Q8 for ged-emacs-devel@m.gmane.org; Sun, 14 Jul 2019 12:12:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45769) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmh6t-0006LW-VP for emacs-devel@gnu.org; Sun, 14 Jul 2019 12:12:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmh6s-0001RY-W7 for emacs-devel@gnu.org; Sun, 14 Jul 2019 12:12:23 -0400 Original-Received: from gateway31.websitewelcome.com ([192.185.143.52]:45002) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmh6s-0001Lb-LL for emacs-devel@gnu.org; Sun, 14 Jul 2019 12:12:22 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 3B61B53C0 for ; Sun, 14 Jul 2019 11:12:10 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id mh6fhpSPEiQermh6fhHLlX; Sun, 14 Jul 2019 11:12:10 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gj3T5f1yfq00KJpBA3Vn8eewAyJRsV1wrsFzU0u8y90=; b=YKMNzxDmzEi9YHQ4BNGm2yhmMV XuqYig7XgznWrRs/xr7vzd1i7CdFjZYUTRZGIkHtx2jSbUSHngrOuDrO4wsIgmoSE5GgDxfwYmZlJ sIkq7vsQT4dR95B6ZxsTpz//WVr9lCZn/uh3kHPpyN4q+5LpCIIF8kuljKd2Sge2A5hyjnoR/7O2j ZMMpX/1xAsi+WVfbvcq2Bvj2zm4cCp/XF9w8vtng85Hh8LKH4ln3KakaMSXtVWwZjS/3IST8rnhO9 TBrUomxcl2gpgQ3mOsk2coFLp9J6fXCADCzKxFt/ILUHe/x73YwrZ1otUbzD9Oe64Qz3Q+qKG7VDt IHKUyQLg==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49400 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hmh6f-001Cz4-Au; Sun, 14 Jul 2019 11:12:09 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1hmh6f-001Cz4-Au X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:49400 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.143.52 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238582 Archived-At: Thank you, Alan, for working on this -- greatly appreciated! Yes, your proposed modification works well for Emacs on OSX 10.6.8. Emacs starts up just fine and there are no error messages in the gdb terminal. I did some light testing with cursor movement and splitting windows from the Emacs welcome screen ... Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Date: [07-14-2019 03:24:11] <14 Jul 2019 11:24:11 +0100> > From: Alan Third > > * * * > > modified src/nsimage.m > @@ -310,6 +310,6 @@ - (instancetype)setXBMColor: (NSColor *)color > return self; > > - if ([color colorSpace] != [NSColorSpace deviceRGBColorSpace]) > - rgbColor = [color colorUsingColorSpace:[NSColorSpace deviceRGBColorSpace]]; > + if ([color colorSpace] != [NSColorSpace genericRGBColorSpace]) > + rgbColor = [color colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]]; > else > rgbColor = color;