From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#43209: 27.1; rectangle-mark-mode does not activate region if transient mark mode disabled Date: Sat, 5 Sep 2020 07:28:08 -0700 (PDT) Message-ID: References: <80363w3owp.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13432"; mail-complaints-to="usenet@ciao.gmane.io" To: Allen Li , 43209@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 05 16:29:10 2020 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 1kEZBl-0003MX-Q0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 16:29:09 +0200 Original-Received: from localhost ([::1]:33506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEZBk-0003QM-RI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 10:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEZBe-0003PV-F8 for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 10:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEZBe-0004P7-5k for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEZBe-000775-0f for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 10:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43209 X-GNU-PR-Package: emacs Original-Received: via spool by 43209-submit@debbugs.gnu.org id=B43209.159931610727302 (code B ref 43209); Sat, 05 Sep 2020 14:29:01 +0000 Original-Received: (at 43209) by debbugs.gnu.org; 5 Sep 2020 14:28:27 +0000 Original-Received: from localhost ([127.0.0.1]:43751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEZB5-00076H-6k for submit@debbugs.gnu.org; Sat, 05 Sep 2020 10:28:27 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:47130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEZB2-000762-VU for 43209@debbugs.gnu.org; Sat, 05 Sep 2020 10:28:25 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 085EPahW186711; Sat, 5 Sep 2020 14:28:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=/cJkSvK5coS4rSPsoxGnjyXW5T2zKdm/cms1/2mRrNw=; b=c1WBfgd2s3hgiZHMHxrusRFnL68QJOL2kABCH6kuJX0pBXgaXmEQDWAJPbQr73z+GJmx hSrOa0jKWFUap/Ho8HeNx/+V6jX9uZDl42g/UKRSPX8Agp0UsxOyqOBVj+URy6X6FQ1+ b9vVMLlEBD19tZopwPLI878KE0PNo73+t1DnK/8c5KMaVI/YzXe38zyWz9J0nDaq+N3R 8KbtNTb7a7aNW+LOHfmZbm0+as/dTQ9Vk5u7OJCELxntrIIJbCkM735qkt5m73lx4aYY khfdTV/HegMWVPnxPYbKZGm8K1HDHgqd/+mQV+7f4Z064tfUBL11pSkKyECtwevX/SvF tA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 33c23qhbpv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 05 Sep 2020 14:28:19 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 085EPq34171256; Sat, 5 Sep 2020 14:28:18 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 33c0q93fs4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 05 Sep 2020 14:28:18 +0000 Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 085ESAH2008461; Sat, 5 Sep 2020 14:28:17 GMT In-Reply-To: <80363w3owp.fsf@felesatra.moe> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9734 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 spamscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009050140 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9734 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 clxscore=1011 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009050140 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:187247 Archived-At: > rectangle-mark-mode does not activate region if transient mark mode is > disabled. >=20 > Steps: >=20 > 1. emacs -Q > 2. M-x transient-mark-mode RET > 3. C-x SPC >=20 > Expected: >=20 > Region is activated temporarily. >=20 > Actual: >=20 > Region is not activated. Note that rectagle-mark-mode is still > partially enabled. For example, C-x C-x moves point according to the > rectangular region, but you cannot move point beyond the end of the > line. >=20 > I propose making rectangle-mark-mode activate the region even if > transient-mark-mode is disabled for a number of reasons. >=20 > I think it's a reasonable interpretation of the docstring: >=20 > Activates the region if needed. Only lasts until the region is > deactivated. >=20 > rectangle-mark-mode is transient like having an active region and unlike > having a mark. That is to say, someone who uses the mark with > transient-mark-mode off may not want to operate on the region and thus > not want to activate the region (e.g., when using the mark to jump to > later), but there is no use case for rectangle-mark-mode that does not > involve operating on the region. >=20 > Also since rectangle-mark-mode is transient, it makes sense to couple it > with region activation as the active region is also transient with the > same lifespan. I agree that `rectangle-mark-mode' requires `transient-mark-mode' to be on. But only as long as `rectangle-mark-mode' is on, i.e., only as long as the region is active. After that, the previous state of `transient-mark-mode' (on or off) should be restored. "Active region" has no meaning outside of `transient-mark-mode'. Anything, including `rectangle-mark-mode', that requires the notion (and behavior - e.g. highlighting) of the "active region" needs `transient-mark-mode' to be on (for the duration of that need).