GNU bug report logs - #16822
24.3.50; show-paren-mode adds confusion to active region

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: yynyygy@HIDDEN; dated Thu, 20 Feb 2014 07:45:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 16822 <at> debbugs.gnu.org:


Received: (at 16822) by debbugs.gnu.org; 20 Feb 2014 21:44:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 16:44:17 2014
Received: from localhost ([127.0.0.1]:33988 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WGbPk-0001Ap-Qg
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 16:44:17 -0500
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:58028)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WGbPi-0001Ag-46
 for 16822 <at> debbugs.gnu.org; Thu, 20 Feb 2014 16:44:14 -0500
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id A6AA884DCC;
 Thu, 20 Feb 2014 16:44:12 -0500 (EST)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 730231E5913;
 Thu, 20 Feb 2014 16:43:48 -0500 (EST)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id 4D555B40E2; Thu, 20 Feb 2014 16:43:48 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#16822: 24.3.50;
 show-paren-mode adds confusion to active region
Message-ID: <jwvlhx5h355.fsf-monnier+emacsbugs@HIDDEN>
References: <874n3utenw.fsf@HIDDEN>
 <0da65346-23b7-4b99-967d-1a25c5877175@default>
Date: Thu, 20 Feb 2014 16:43:48 -0500
In-Reply-To: <0da65346-23b7-4b99-967d-1a25c5877175@default> (Drew Adams's
 message of "Thu, 20 Feb 2014 09:44:29 -0800 (PST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 16822
Cc: yynyygy@HIDDEN, 16822 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

> 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.)

Maybe not via M-x customize, indeed, but since it's now written in
Elisp, you definitely can change it in your ~/.emacs.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16822; Package emacs. Full text available.

Message received at 16822 <at> debbugs.gnu.org:


Received: (at 16822) by debbugs.gnu.org; 20 Feb 2014 17:44:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 12:44:40 2014
Received: from localhost ([127.0.0.1]:33890 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WGXfr-0002zV-QE
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 12:44:40 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:37958)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1WGXfq-0002zI-0l
 for 16822 <at> debbugs.gnu.org; Thu, 20 Feb 2014 12:44:38 -0500
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
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
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
MIME-Version: 1.0
Message-ID: <0da65346-23b7-4b99-967d-1a25c5877175@default>
Date: Thu, 20 Feb 2014 09:44:29 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: yynyygy@HIDDEN, 16822 <at> debbugs.gnu.org
Subject: RE: bug#16822: 24.3.50; show-paren-mode adds confusion to active
 region
References: <874n3utenw.fsf@HIDDEN>
In-Reply-To: <874n3utenw.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8  (707110) [OL
 12.0.6680.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-Spam-Score: -2.9 (--)
X-Debbugs-Envelope-To: 16822
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.9 (--)

> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#16822; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Feb 2014 07:44:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 02:44:15 2014
Received: from localhost ([127.0.0.1]:32989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WGOIo-0001pY-7M
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 02:44:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42902)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOIk-0001pH-7T
 for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 02:44:11 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOId-0007G6-VF
 for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 02:44:04 -0500
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]:37654)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOId-0007G0-SG
 for submit <at> debbugs.gnu.org; Thu, 20 Feb 2014 02:44:03 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44612)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOIc-0000is-Gt
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2014 02:44:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOIa-0007FM-43
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2014 02:44:02 -0500
Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:41249)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <yynyygy@HIDDEN>) id 1WGOIZ-0007FF-S0
 for bug-gnu-emacs@HIDDEN; Thu, 20 Feb 2014 02:44:00 -0500
Received: by mail-pa0-f51.google.com with SMTP id ld10so1559212pab.24
 for <bug-gnu-emacs@HIDDEN>; Wed, 19 Feb 2014 23:43:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=+qCVnX6TgRVAlGK5G0BGWG/rByFcuzVKlLa3b063jI4=;
 b=dv62D039zex1S0I3M4pago7TZdpPNURCNActUFlTE65txH0YzXlLQe6S7aDtT4KlOu
 11AVpl5FsG1RzSMyqU9n21NU72e+8o+8UuVOlhi+X8mDwDQNtBe5uVvva98SteJtf5yT
 OY+1b3SMH3vxMifS9jimO5wbnv0uO5HHdIoqepIoDQzIkI33v+98RWoO/CqodbItddr8
 9uIzg0D+6eqgbQQW3vff2z+yqnXrCMgnXxT8RKTJQEOd35JqZE2MfPy83if/XfjMFdT2
 siWr5G8T48hBONwUmYDqIhvWqmrk73bYIglMPPEr3IdvZSLK+0m4nknx9f7cRvIil/Nf
 rqeA==
X-Received: by 10.67.3.68 with SMTP id bu4mr402628pad.144.1392882238160;
 Wed, 19 Feb 2014 23:43:58 -0800 (PST)
Received: from gentoo ([2001:250:401:1172:9a4b:e1ff:feb8:30d8])
 by mx.google.com with ESMTPSA id u6sm7970313pbu.16.2014.02.19.23.42.11
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
 Wed, 19 Feb 2014 23:42:14 -0800 (PST)
From: yynyygy@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; show-paren-mode adds confusion to active region
Date: Thu, 20 Feb 2014 15:40:51 +0800
Message-ID: <874n3utenw.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


When show-paren-mode is on, it adds confusion to the active
region. Suppose I have some text which is (hello),

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.

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?

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.



In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.8.7)
 of 2014-02-19 on gentoo
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
Configured using:
 `configure --prefix=/usr/local/emacs/'

Important settings:
  value of $LC_COLLATE: C
  value of $LC_CTYPE: zh_CN.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Messages

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e p o <tab> r <tab> <return> M <backspace> s 
h o w - p a r e n - m o d e SPC a d d SPC c o n f <backspace> 
<backspace> <backspace> <backspace> <backspace> s SPC 
c o n f u s i o C-g C-h f t r a n <tab> s <backspace> 
i <tab> <return> C-x o C-n C-n C-n C-n C-n C-n C-n 
C-l C-n C-n C-n C-n C-n C-n C-l C-n C-n C-n C-n C-l 
C-n C-n C-n C-l C-n C-n C-n C-l q M-x r e C-g C-x b 
<tab> <return> M-x r e p o <tab> r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit
Type C-x 1 to delete the help window, C-M-v to scroll help.
Quit
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode easymenu time-date china-util
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)




Acknowledgement sent to yynyygy@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#16822; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.