From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16822: 24.3.50; show-paren-mode adds confusion to active region Date: Thu, 15 Jul 2021 06:59:21 +0200 Message-ID: <87tukwqija.fsf@gnus.org> References: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22831"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 16822@debbugs.gnu.org To: yynyygy@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 15 07:00:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m3tTq-0005i1-QT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 07:00:14 +0200 Original-Received: from localhost ([::1]:32924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3tTp-0007IG-Of for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jul 2021 01:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3tTe-0007Ep-TM for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 01:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3tTe-00040S-JL for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 01:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3tTe-0008MS-DP for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2021 01:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874n3utenw.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jul 2021 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16822 X-GNU-PR-Package: emacs Original-Received: via spool by 16822-submit@debbugs.gnu.org id=B16822.162632517332066 (code B ref 16822); Thu, 15 Jul 2021 05:00:02 +0000 Original-Received: (at 16822) by debbugs.gnu.org; 15 Jul 2021 04:59:33 +0000 Original-Received: from localhost ([127.0.0.1]:46248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3tTA-0008L7-On for submit@debbugs.gnu.org; Thu, 15 Jul 2021 00:59:33 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:51914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3tT8-0008Kq-G7 for 16822@debbugs.gnu.org; Thu, 15 Jul 2021 00:59:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:Subject: Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LJyP24OzWohlsRXDmj7lXb7JEqT7yVFpefghnK0e00Q=; b=iFtyxgbrVdFhguc/nFpQNZwYsw CLLSb8athoXd8FfrGR+W03pT2qBeECin/8IvOk+rvBGFWL3uKjK1RSvXO49KpAXqIZkEaxiRcB4sH YiwIGHRGsRaukENuufsYOHLbVek54UqaYjZ5DVI5WO/uofuVzQYNzT9c4DVbqk6E4zek=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3tT0-0003vy-AE; Thu, 15 Jul 2021 06:59:24 +0200 X-Now-Playing: Squarepusher's _Be Up A Hello_: "Detroit People Mover" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209978 Archived-At: --=-=-= Content-Type: text/plain yynyygy@gmail.com writes: > 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? This is still the case in Emacs 28. Whether I put the mark after the "o" or after the ")", and then go to the start of the line (in *scratch*), I get this displayed: --=-=-= Content-Type: image/png Content-Disposition: inline Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAFUAAAAkCAIAAAB36eFpAAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAA EGNhTnYAAAeAAAAEsAAAA/YAAAD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B2dgHscfNbMGkWgFqtM9JBpR56JNLr9QMfDxwO B3j5MGPvxb+HBU1HrUn4mVYsApB3v5LS3TK5DmCxrA3VvSo1AJoVk4r/CTuGLSCVagCKZx+FQgFY 0rrEZWXd+G9MrVLqAZJDAu0DjRwuSQOUyh5DtVYqAwiGw2ixNzz/PdmzCLTUDR9uLGsVi6WAz7wg zlhKpVIJWDGZlAW6ekkjwPP0GBLP9Bke0wFlvaTDUN1T/RxwZ8+kU+Ln2vC9oPtT9pSydx4XCBr0 1gsTNwTaDK5FBMttYfSiVzcTRWOjDJYzZ80wdjY1Kqi+K2oBY35UtEf/3NCd3l+7xA7doruP9QZa ifyRFHZBtl6gEv8AOzKclXqyq1iMYG9K/LqqrMNn/b9NWHEwfVZJcdlzGWHj4hM4b66zJv+ry3fq higf5eXVr4j5eP8huztP2lV6tfhWdmkzxiHQV/124saivZFxR477FN2v653iFxLiZS1/+GNmyUuA MXSItpLOKjCiFnMJivyYHe3sd6rmqqA7yZtDaQLwsvLX5K3VUTEfhb+9aFUwUytrbX4uupQjvFFl MFP/ZO0/Qm6LD49Y48cgILteYcBvXCAXHd35TX1iXCQ/fGUATdVWU3zhWEZWUbOh99XXBdJenkts 6Ohf+ERf/ZvL5Q6tf2hyk0p2VDhnX/fiWwAQugdMtPqPpG7lh7W0rcFXPx26ig+v/4w8O4zV291m tzalXdO8+dAjWa/wlOSpo/PX68bcwowcc2gz3A7tR6FepQSDNeHwdWqVq0vKgakhTLwmP0D3X+Xu P+HI+71nvWyT+/ikg/z/4yLn2Px6vX4SwsNc/zXzm/nN/GZ+M//ktH8BBPpALIPs7Y8AAAAASUVO RK5CYII= --=-=-= Content-Type: text/plain Perhaps the solution here is just to introduce a new face for parens that are part of the region? Any opinions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-=--