From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#35492: 27.0.50; set-mouse-color nop Date: Wed, 1 May 2019 22:11:10 +0100 Message-ID: <20190501211110.GB74837@breton.holly.idiocy.org> References: <20190430202215.GB73973@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118891"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) Cc: 35492@debbugs.gnu.org To: Devon Sean McCullough Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 01 23:12:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLwWQ-000UoT-Ik for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2019 23:12:10 +0200 Original-Received: from localhost ([127.0.0.1]:41456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLwWP-0001q9-DJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 May 2019 17:12:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLwWJ-0001q2-Kt for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 17:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLwWI-000324-Ke for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 17:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLwWI-000320-Gx for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLwWI-0001I1-B1 for bug-gnu-emacs@gnu.org; Wed, 01 May 2019 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 May 2019 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35492 X-GNU-PR-Package: emacs Original-Received: via spool by 35492-submit@debbugs.gnu.org id=B35492.15567450824908 (code B ref 35492); Wed, 01 May 2019 21:12:02 +0000 Original-Received: (at 35492) by debbugs.gnu.org; 1 May 2019 21:11:22 +0000 Original-Received: from localhost ([127.0.0.1]:45064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLwVe-0001H5-Dj for submit@debbugs.gnu.org; Wed, 01 May 2019 17:11:22 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:45632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLwVa-0001Gq-OG for 35492@debbugs.gnu.org; Wed, 01 May 2019 17:11:20 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id s15so195591wra.12 for <35492@debbugs.gnu.org>; Wed, 01 May 2019 14:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=G3KzzvTrRJxR2yWUPlVqth+GCASGSiEZmg7ko7rPe90=; b=h+Uk6bzwWr8Y5ZdnH/09iZSbPJ8C6+EpK2z6s2APA5tRJMXXG/tmWKXo4EFammcsLS TURpzO9W1MjkZmSujI1pdSqrGyg9jzjzsPyrKTOkszIXXgb5Z5kIPcWYIm2pTLu9oSIQ IKAH6FQluXxIk9AnnMthWAYOE0J3CN3eunPilsjDOybgQUxxMm2TqsS79tSYSaAbdpE9 7+6uGoNRY0cGkt/A41TKrywpsLDW8+HkOjO64Av6khRg38+os2FGeDOhn+LjPKtCHqqB wCq7qDTPh6CdiyDcTHU99VJQA0W38FgwW9VAh13N2ovO9DHuYwmDDNeHEdc7bj58o95g bG9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=G3KzzvTrRJxR2yWUPlVqth+GCASGSiEZmg7ko7rPe90=; b=Kp4S3VSAB/o6RBGXFWIGCwajsTtMI9/nDf2Grj1GUF86cg3IOID3j0lt0wyjQ7Y5OR Q2i64/B8Ykbt8v6T2K90rvMLLQjXy0dAb10/Y/7usFCiEgladwfN/bAaJTkOc6JE0adM oyzHIPt3QUkDjtEkE+ewIpgH9gE7Qj7fl2AUPjyOftuPQYk8OhI289ye+gbmeS7mwoZK D5SL1yD+CWXFa4HK/6vMdbOyfjyKcUsX+RA7c3ZEMgGHJvA6MrgBcCtwpn9poOQJdNdp Ww0WLjSOqq/gpupCWAaDzOGGpy91YJ6M/ybVMdgdVHLxKPo55QZ6q3QIMrqg+4EJ3lCS dUnQ== X-Gm-Message-State: APjAAAWVsTQSvmJDdNZ3hK1B3qAhf0r+/iP3xCW3IWNle7l5YjQvVhc/ KvWyeqr3a+meeTlt1EnYhBH72ljD X-Google-Smtp-Source: APXvYqzAaIeoc3wjJnGimkv9uBC56cH2XXYUnc01i8Zys03/cCsCuwvkcP8dGdhI900HPgNr1NeVag== X-Received: by 2002:adf:df85:: with SMTP id z5mr130050wrl.127.1556745072847; Wed, 01 May 2019 14:11:12 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-c8db-4b16-8787-1926.holly.idiocy.org. [2001:8b0:3f8:8129:c8db:4b16:8787:1926]) by smtp.gmail.com with ESMTPSA id d16sm41653720wra.54.2019.05.01.14.11.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 14:11:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158607 Archived-At: On Wed, May 01, 2019 at 07:07:53AM -0400, Devon Sean McCullough wrote: > > On Apr 30, 2019, at 4:22 PM, Alan Third wrote: > > On Mon, Apr 29, 2019 at 02:18:42PM -0400, Devon Sean McCullough wrote: > >> The following have no effect: > >> (set-mouse-color "red") > >> (set-mouse-color “yellow") > >> (set-mouse-color "windowBackgroundColor") > >> The mouse color should change. > > > I don’t think the NS port supports modifying the mouse pointer. It > > looks like it could probably be handled with custom NSCursors. > > I see NS allows us to both read and write cursor images > so a possible solution might involve (mouse-cursor-image nil) > to get the current cursor image and (mouse-cursor-image nil image) > to set it, either as a new primitive or an existing one I’m ignorant of. > Lisp code thus replaces the cursor colors according to some heuristic; > this notion struck me after giving image.c & image.el a cursory glance. It looks like it’s possible to get a copy of the image for the current cursor, so it’s possible we could just modify that. -- Alan Third