From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16822: 24.3.50; show-paren-mode adds confusion to active region Date: Thu, 20 Feb 2014 09:44:29 -0800 (PST) Message-ID: <0da65346-23b7-4b99-967d-1a25c5877175@default> References: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392918324 27585 80.91.229.3 (20 Feb 2014 17:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 17:45:24 +0000 (UTC) To: yynyygy@gmail.com, 16822@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 20 18:45:32 2014 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 1WGXgf-0006bW-4Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 18:45:29 +0100 Original-Received: from localhost ([::1]:39937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXge-0001kn-QB for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 12:45:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXgS-0001bX-FE for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:45:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGXgL-0008BM-Az for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:45:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGXgL-0008BI-8F for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:45:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGXgF-00030i-Km for bug-gnu-emacs@gnu.org; Thu, 20 Feb 2014 12:45:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Feb 2014 17:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16822-submit@debbugs.gnu.org id=B16822.139291828011505 (code B ref 16822); Thu, 20 Feb 2014 17:45:03 +0000 Original-Received: (at 16822) by debbugs.gnu.org; 20 Feb 2014 17:44:40 +0000 Original-Received: from localhost ([127.0.0.1]:33890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGXfr-0002zV-QE for submit@debbugs.gnu.org; Thu, 20 Feb 2014 12:44:40 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:37958) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGXfq-0002zI-0l for 16822@debbugs.gnu.org; Thu, 20 Feb 2014 12:44:38 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1KHiVpv014689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Feb 2014 17:44:32 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1KHiULj003255 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 20 Feb 2014 17:44:31 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1KHiUQF003243; Thu, 20 Feb 2014 17:44:30 GMT In-Reply-To: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:85953 Archived-At: > When show-paren-mode is on, it adds confusion to the active > region. Suppose I have some text which is (hello), >=20 > 1. I set the region to (hello and place the cursor on the left paren. > 2. I set the region to (hello) and place the cursor on the left paren. >=20 > Note that in Case 1, the right paren is not part of the region while in > Case 2 it is. In the two cases above, I get exactly the same color on > the screen, then how can I distinguish between these two different > cases? >=20 > Compared to the more rational behavior of Emacs 24.3, I think the paren > which is part of the region should have the same color with the region > while the paren which is not part of the region can has matching paren > color. In this way, the user can tell which part is selected and which > part is not. Well put. Yes, it used to be the case that the region highlighting was used to show clearly what text is in the region (each char), as specified by the doc: http://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Faces.h= tml That policy was changed recently, introducing the behavior change that you report. Now, other highlighting can take precedence visually over region highlighting for various chars of the region. Some people like the change. Some don't. Regression or improvement - take your pick. (No, you cannot take your pick in practice, e.g., via customization. But you can at least make up your own mind.) If you are interested, see bugs #15899, #16192, #15618, and this very long emacs-devel thread: http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01272.html 15899: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15899 16192: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16192 15618: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15618