From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.emacs.devel Subject: Re: "modern" colors Re: Changes for emacs 28 Date: Sun, 13 Sep 2020 21:49:24 +0200 Message-ID: <87h7s1zccb.fsf@elephly.net> References: <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> <20200912153723.ymnq3i5pugqf7lsy@Ergus> <871rj628mq.fsf@elephly.net> <20200912195358.3zjct7gsogjtlh3n@Ergus> <87y2lezrbp.fsf@elephly.net> <83pn6pbtni.fsf@gnu.org> <87mu1tzlxo.fsf@elephly.net> <83mu1tbp7a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38108"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 27.1 Cc: spacibba@aol.com, casouri@gmail.com, emacs-devel@gnu.org, ams@gnu.org, monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 13 21:48:51 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHXzX-0009nZ-0o for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 21:48:51 +0200 Original-Received: from localhost ([::1]:51302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHXzW-0002j0-0K for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 15:48:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHXyx-0002K4-OB for emacs-devel@gnu.org; Sun, 13 Sep 2020 15:48:15 -0400 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHXyv-0001fd-MM; Sun, 13 Sep 2020 15:48:15 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600026490; cv=none; d=zohomail.com; s=zohoarc; b=mTk2tpNQmqHdVgSNwbifSn1MgcOSZDbGSF0ETLYP3AyBQi9qdrdGWzasO4GnMA4ImHrCtgdQ5X/Q6sv/jGyG6jolUy7DgeeCsrmmbosBsBUn4IJLaCt2VLhdwUpU8g1ENXdYzura9jScQ/VFpoc5a1lkBtMbIyIXKWEcL9NR6fM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600026490; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0H18/FUILOywxjPk5/6VP0Zm3LK2hrnOzYDrFUIWSls=; b=U3AgvzilOY4LHnIY+k4j06N1DC6jVPVqJe5WDGr0O8P8nLsDfo91a5q+FUH7FwkeBtUej4mZXiK0W5ftA28m1xCnpoa78XKrsaryNCaRCPPSBZjYqK3EA/PRXh8MGdbZ9YZxKG+oP7vGB1tSITqETBVZEufS2guB6UstlFzN28o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600026490; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=0H18/FUILOywxjPk5/6VP0Zm3LK2hrnOzYDrFUIWSls=; b=axc+pWOJmI2e86TcBuGbQuYWSmKupw2LqT3BmPkLFIvUGF4U6x0AC69aL5849V8v eNjAfI9FoeW/lB+P8DFx1RLUy4LWPQceI6CstNvacrdhlgIudj0RuRimb6BbyCozzTd 7eAb533wKxXhxxTOa5n+pTF3LXjO0l+kqU99TFS4= Original-Received: from localhost (p4fd5aca2.dip0.t-ipconnect.de [79.213.172.162]) by mx.zohomail.com with SMTPS id 1600026488128213.17328839971287; Sun, 13 Sep 2020 12:48:08 -0700 (PDT) In-reply-to: <83mu1tbp7a.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 15:13:18 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_CSS_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255566 Archived-At: Eli Zaretskii writes: >> From: Ricardo Wurmus >> Cc: spacibba@aol.com, casouri@gmail.com, emacs-devel@gnu.org, ams@gnu.or= g, >> monnier@iro.umontreal.ca, ghe@sdf.org, tecosaur@gmail.com >> Date: Sun, 13 Sep 2020 18:22:11 +0200 >>=20 >> > The behavior you have on your system isn't the Emacs default: we don't >> > invert colors to display the region, we only specify a different >> > background color (see the default definition of the 'region' face). >>=20 >> I=E2=80=99m used =E2=80=9Cemacs -Q=E2=80=9D and I=E2=80=99m on Guix wher= e we don=E2=80=99t patch Emacs to have >> different defaults. I also have nothing in my .Xdefaults or .Xresources >> that should affect Emacs. > > Then it's a mystery only you can solve. Look at the definition of the > 'region' face in faces.el: the only case where we use :inverse-video > is on monochrome TTYs. If that is not your case, then I don't know > how to explain the fact that you see the region in reverse video. I > guess I'm missing something, but what? The =E2=80=99region=E2=80=99 face has these settings: DistantForeground: gtk_selection_fg_color Background: gtk_selection_bg_color I switch to a light GTK theme and run Emacs: $ dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" $ emacs -Q Now the selected region has a light gray background. I switch to a dark GTK theme and run Emacs: $ dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita-dark'" $ emacs -Q Now the selected region has a very dark background and the text is bright. I suppose that=E2=80=99s exactly what gtk_selection_bg_color and gtk_selection_fg_color are supposed to do: take the colours from the GTK theme. On Guix we build Emacs with the GTK toolkit. --=20 Ricardo