From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside? Date: Tue, 15 Oct 2013 06:53:56 +0300 Message-ID: <87r4bn9okr.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381809314 12252 80.91.229.3 (15 Oct 2013 03:55:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Oct 2013 03:55:14 +0000 (UTC) To: 15618@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 15 05:55:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VVvj1-0004m2-NU for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Oct 2013 05:55:15 +0200 Original-Received: from localhost ([::1]:39611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvj1-0004ak-9e for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2013 23:55:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvit-0004YP-T0 for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVvip-0006S2-Qa for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:55:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvip-0006Qu-Nf for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VVvio-0005Ml-Sq for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2013 03:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138180926620577 (code B ref -1); Tue, 15 Oct 2013 03:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2013 03:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:49689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVviD-0005Lo-1f for submit@debbugs.gnu.org; Mon, 14 Oct 2013 23:54:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55843) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVviA-0005Lb-QX for submit@debbugs.gnu.org; Mon, 14 Oct 2013 23:54:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVvi1-00068W-8P for submit@debbugs.gnu.org; Mon, 14 Oct 2013 23:54:17 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvi1-00068Q-4l for submit@debbugs.gnu.org; Mon, 14 Oct 2013 23:54:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvhx-0004QK-1W for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:54:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVvhs-00067Y-Vs for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:54:08 -0400 Original-Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:46954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVvhs-00067L-NA for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2013 23:54:04 -0400 Original-Received: by mail-lb0-f174.google.com with SMTP id w6so6313467lbh.19 for ; Mon, 14 Oct 2013 20:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=0x9ZWlg5cKLFTNG6+AIOoIaB+yybYW42NLHrhna3E0M=; b=avk+q460dBESKCw8TIHKj95vc6Ysjngq7Moe6bNC2ChnrnienYPpRda6jPL0QEvm0B S9gJcPXkWOp+p0O7a2v6hHheCxcxZBRWNeuA/EfERtU7xNrtMrbhFS/FUUzSW0SbZ6f+ F2LrTK2ewFgmUAmuNiF/NgaiVIYxo4hmvGj5r1/VPrkLxb2TMS6HcYqU1IhAOoK7UhDb 5cyIyk0weS5QkaQ1iHqnVkIH/vhorVP6XDhBzbLasgHeJh4jZcnUDc0fd/1rVeT/e4/I Fcd8Q54a493rLA360q2SVj696GsxklP/ZPk/N/6VkemLk4TeLR7BoaT2RN81lwTXs5lD nS/Q== X-Received: by 10.112.51.166 with SMTP id l6mr33589665lbo.5.1381809243046; Mon, 14 Oct 2013 20:54:03 -0700 (PDT) Original-Received: from axl ([178.252.98.87]) by mx.google.com with ESMTPSA id i3sm62523218laf.4.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 14 Oct 2013 20:54:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79259 Archived-At: I'm seeing inconsistent behavior with this. There is an overlay inside the active region, it has a `face' property. With default theme, the foreground and background attributes of that face are never used, the values from `region' face are used. But if I switch to another theme (e.g. M-x load-theme RET leuven), the inner overlay becomes easily visible. Backstory here: https://github.com/leoliu/easy-kill/issues/3 To reproduce: 1. Install `easy-mark' from https://github.com/leoliu/easy-kill.git 2. Open a buffer with some Elisp, move point to where some text is, type `M-x easy-mark'. 3. Some part of the buffer becomes selected with an active region. The previous position of point is marked by the "origin" overlay, with face that's inheriting from `error'. However, the colors don't come through. Here's how it looks for me: http://imgur.com/a/2VZyZ Here's how it looks for Leo: http://i.imgur.com/i8pxksI.png This is also what I see (except for the exact colors) if I use one of many other themes (such as leuven, adwaita, dichromacy). Curiously, wheatgrass behaves the same as the default one in this respect. And if I switch to wheatgrass and only then to leuven, then I also see the same behavior there. Which is the right behavior? Like I mentioned in the discussion there, Displaying Faces[0] seems to indicate that `region' face should prevail at all times. [0] http://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Faces.html In GNU Emacs 24.3.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-10-15 on axl Bzr revision: 114665 dgutov@yandex.ru-20131015012122-lo6jx0rfcpjoi6ls Windowing system distributor `The X.Org Foundation', version 11.0.11303000 System Description: Ubuntu 13.04