From unknown Sun Jun 22 11:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside? 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: To: 15618@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.138180926620577 (code B ref -1); Tue, 15 Oct 2013 03:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Oct 2013 03:54:26 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) 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) From: Dmitry Gutov Date: Tue, 15 Oct 2013 06:53:56 +0300 Message-ID: <87r4bn9okr.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 From unknown Sun Jun 22 11:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside? Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2013 02:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 15618@debbugs.gnu.org Received: via spool by 15618-submit@debbugs.gnu.org id=B15618.13818922759130 (code B ref 15618); Wed, 16 Oct 2013 02:58:02 +0000 Received: (at 15618) by debbugs.gnu.org; 16 Oct 2013 02:57:55 +0000 Received: from localhost ([127.0.0.1]:53324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWHJ5-0002NC-6E for submit@debbugs.gnu.org; Tue, 15 Oct 2013 22:57:55 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:43038) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWHJ2-0002Mx-Tm for 15618@debbugs.gnu.org; Tue, 15 Oct 2013 22:57:53 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc17so172260pbc.32 for <15618@debbugs.gnu.org>; Tue, 15 Oct 2013 19:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=2ivRBRI0xUVI0BsCkmQTzojVtkl5oeVT4LM+7GH6ps8=; b=X8wyZw5KA4oys9IrG9uaENm3MKCNQvXMvM0Gx5hCZNWeSZCOknOx++tczwuVfW1okI 7XNyh3QU42zlsIZaqKQgw+fjoIBNI95VQ3nZbUpHbhrOToJaX6HG386qZwPWPaivA84V OZ+gZ0lRL9w5GpSXzLI1P5RpxfUn8UEoFtQF+J0GjTr2r/OkXugpPJxK1x9SykYHPsGD xf/Gm9gz/jWDF2D8qItS3+veNVVzS+z8krYLbB1jnNK/u3CWvTdbWm+DKFCfi7F/jul8 VV8lirKbabOBTqk3cSUIumn2RLsxMG5vnTEdWhQ1NhG+P8uvV4LPOlU0OO33LEAQ+vij Fucw== X-Received: by 10.68.58.137 with SMTP id r9mr490512pbq.148.1381892266586; Tue, 15 Oct 2013 19:57:46 -0700 (PDT) Received: from localhost ([61.149.217.126]) by mx.google.com with ESMTPSA id dq3sm87766468pbc.35.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 15 Oct 2013 19:57:45 -0700 (PDT) From: Leo Liu References: <87r4bn9okr.fsf@yandex.ru> Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= Date: Wed, 16 Oct 2013 10:57:38 +0800 In-Reply-To: <87r4bn9okr.fsf@yandex.ru> (Dmitry Gutov's message of "Tue, 15 Oct 2013 06:53:56 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.5) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2013-10-15 11:53 +0800, Dmitry Gutov wrote: > 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 I built emacs-trunk on centos 6.4 just now and still couldn't reproduce the bug, sadly. Leo From unknown Sun Jun 22 11:41:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside? Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2013 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 15618@debbugs.gnu.org Received: via spool by 15618-submit@debbugs.gnu.org id=B15618.138306783324539 (code B ref 15618); Tue, 29 Oct 2013 17:31:01 +0000 Received: (at 15618) by debbugs.gnu.org; 29 Oct 2013 17:30:33 +0000 Received: from localhost ([127.0.0.1]:51421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbD7g-0006Nh-J8 for submit@debbugs.gnu.org; Tue, 29 Oct 2013 13:30:32 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:43682) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbD7d-0006NQ-D6 for 15618@debbugs.gnu.org; Tue, 29 Oct 2013 13:30:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMJABK/CFFsoXfp/2dsb2JhbABEuzWCVgQEexdzgh4BAQQBViMFCwsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IPAS-Result: AlMJABK/CFFsoXfp/2dsb2JhbABEuzWCVgQEexdzgh4BAQQBViMFCwsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="36608301" Received: from 108-161-119-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.119.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 29 Oct 2013 13:30:23 -0400 Received: by pastel.home (Postfix, from userid 20848) id DEB3C6009F; Tue, 29 Oct 2013 13:30:22 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87r4bn9okr.fsf@yandex.ru> Date: Tue, 29 Oct 2013 13:30:22 -0400 In-Reply-To: <87r4bn9okr.fsf@yandex.ru> (Dmitry Gutov's message of "Tue, 15 Oct 2013 06:53:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I'm seeing inconsistent behavior with this. I just installed a patch which makes the region's highlight into a plain-old overlay, so your problem is probably replaced by new ones ;-) Stefan From unknown Sun Jun 22 11:41:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dmitry Gutov Subject: bug#15618: closed (Re: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside?) Message-ID: References: <52706B4D.80400@yandex.ru> <87r4bn9okr.fsf@yandex.ru> X-Gnu-PR-Message: they-closed 15618 X-Gnu-PR-Package: emacs Reply-To: 15618@debbugs.gnu.org Date: Wed, 30 Oct 2013 02:14:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1383099243-18405-1" This is a multi-part message in MIME format... ------------=_1383099243-18405-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15618: 24.3.50; Region face takes priority over any overlay faces inside? which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15618@debbugs.gnu.org. --=20 15618: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15618 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1383099243-18405-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15618-done) by debbugs.gnu.org; 30 Oct 2013 02:13:44 +0000 Received: from localhost ([127.0.0.1]:51790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbLI0-0004m8-D0 for submit@debbugs.gnu.org; Tue, 29 Oct 2013 22:13:44 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:60612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbLHy-0004lu-Gy for 15618-done@debbugs.gnu.org; Tue, 29 Oct 2013 22:13:43 -0400 Received: by mail-lb0-f182.google.com with SMTP id w6so734526lbh.27 for <15618-done@debbugs.gnu.org>; Tue, 29 Oct 2013 19:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jAlLzw2J9vQlyl8z8D4zIrZKb/l8KIbkXIIvU6U4nz4=; b=pvryiGfa5Yx9KBlx1isudRC1bfgi0cI+sRzu+Z5Q8+brabZ9XeIXBx3IhHTZmnV4VP p1ym0LGJQf1HISz1iaD5YyriaMDh91/PIEWTCgaBXsF5DlsnG0AEceunOKP8d2vZcciS pTJt7MZAEfnTNR0rfMvk79kL456vl40/3MLIVuheW3l+FSELWcSCxFFwk7xVE0tUfUQC l6IcDQbW1cBdhDGfqqxAqES0CDxXs9E4F8u320xt9XbDU2DnF6oeTRyO5CeD8uP9PoMX 4fn/o/auYQjSmiEX5iDGsNjJrDhUqBjH8jd6CbFUpnFeauy/QYPGEJW/gOqN40W9ZvC3 y3gg== X-Received: by 10.152.22.131 with SMTP id d3mr1438419laf.35.1383099216439; Tue, 29 Oct 2013 19:13:36 -0700 (PDT) Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id vo1sm18372565lbb.1.2013.10.29.19.13.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 19:13:35 -0700 (PDT) Message-ID: <52706B4D.80400@yandex.ru> Date: Wed, 30 Oct 2013 06:13:33 +0400 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#15618: 24.3.50; Region face takes priority over any overlay faces inside? References: <87r4bn9okr.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15618-done Cc: 15618-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 29.10.2013 21:30, Stefan Monnier wrote: > I just installed a patch which makes the region's highlight into > a plain-old overlay, so your problem is probably replaced by new ones ;-) So far it seems fixed though. Thanks! ------------=_1383099243-18405-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Oct 2013 03:54:26 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) 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) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 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> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 ------------=_1383099243-18405-1--