From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#43209: 27.1; rectangle-mark-mode does not activate region if transient mark mode disabled Date: Tue, 15 Jun 2021 23:09:49 +0000 Message-ID: References: <80363w3owp.fsf@felesatra.moe> <87tum36zca.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bfb5a505c4d61228" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43209@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 16 01:11:13 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 1ltIDA-000AVt-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Jun 2021 01:11:12 +0200 Original-Received: from localhost ([::1]:59318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltID9-0001q3-SR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Jun 2021 19:11:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltID0-0001pT-3b for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 19:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltICz-0002ON-SA for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 19:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltICz-0006Ym-NY for bug-gnu-emacs@gnu.org; Tue, 15 Jun 2021 19:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jun 2021 23:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43209 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 43209-submit@debbugs.gnu.org id=B43209.162379860825151 (code B ref 43209); Tue, 15 Jun 2021 23:11:01 +0000 Original-Received: (at 43209) by debbugs.gnu.org; 15 Jun 2021 23:10:08 +0000 Original-Received: from localhost ([127.0.0.1]:51040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltIC8-0006Xb-6a for submit@debbugs.gnu.org; Tue, 15 Jun 2021 19:10:08 -0400 Original-Received: from mail-ot1-f44.google.com ([209.85.210.44]:42766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltIC5-0006Wz-Mv for 43209@debbugs.gnu.org; Tue, 15 Jun 2021 19:10:06 -0400 Original-Received: by mail-ot1-f44.google.com with SMTP id w23-20020a9d5a970000b02903d0ef989477so578424oth.9 for <43209@debbugs.gnu.org>; Tue, 15 Jun 2021 16:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r/roOh/P04oogVtnuqqSj/qgj5/Pdi7eYW7ByrMmgc8=; b=Z/X14l6+auciLUkfEkS+9noo+CWTsFOioKCC6qNIcTSDnMmMs80FItl+ajblrKh0qF 4sHeKqTKWSoEBakU6WO09TYQaYqUiC/Nu4lRUjrJHAZdJkSRVC2YKiPwpjlCtzP7kvnP RsJOKmkgNbvjqywytBFZGyhkNjElJDEmgoyg71Tmle34ioATLoGdobHZoa5y/7UNpTfD ohgrAKq4EiRb438SaTXYWsxvokhZYD6YUtQ7XlIXUgtyaMhvaDeNQPJ27QC/5xM9QL9W wjKN8thTcdVjzobfgHxL2f8fmfWzGgHo4UahJ5wtcHbYZMR+ZYW/XVfPmn4jzB3nmCCS h6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r/roOh/P04oogVtnuqqSj/qgj5/Pdi7eYW7ByrMmgc8=; b=LZqjQHjs8sgCzNvsdG3QCwVUvuv9WA4su8XYrZ7Ahy+Ci5M0PKIxgIK92i5mYQNtiV BkbjzUS1r61sGjcTWwQgtinuPXLFK20lrur62UkrxItndEbOuk2a0bF1hPHvSagF/d1z 0G6VZ/bL8ZnG6j61JQxPZylj/zqJwjJ7qzGbcZrqJm54Zu322z7yUECr2LN0M4TeXP/o N0iz7ibR0SMb+/X/BPac/KjMuwTSH7zfVo5yiVTsFyxNj0N8gPOofiihtnDPFFn8NrKj emt4fFYlr6w00UpJwsX90LF1DMQU9x31d0MfwtR55n+tDwrsnKsTnlH4eox2E+//BzZ/ 1JTg== X-Gm-Message-State: AOAM533si35jDBrQNvDWUWp6wBlqT88pJsjgYbPQxsl16WMZUgDYGGoU 8GRf8/wotRugYOIiu9aPvVqv+cYrvQnnBJNU2n2aUVQxdSg= X-Google-Smtp-Source: ABdhPJyIJ+ACMA1nKlAHRey+LK5m8z7jYu9cBDopR7/C5quUGwEwvJn2uH5Ely3iqEC1BjThDovkUgs6ThpfTWFl3aw= X-Received: by 2002:a05:6830:821:: with SMTP id t1mr1286400ots.227.1623798600146; Tue, 15 Jun 2021 16:10:00 -0700 (PDT) In-Reply-To: <87tum36zca.fsf@gnus.org> 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:208608 Archived-At: --000000000000bfb5a505c4d61228 Content-Type: text/plain; charset="UTF-8" On Sat, Jun 12, 2021 at 12:29 PM Lars Ingebrigtsen wrote: > Allen Li writes: > > > rectangle-mark-mode does not activate region if transient mark mode is > > disabled. > > > > Steps: > > > > 1. emacs -Q > > 2. M-x transient-mark-mode RET > > 3. C-x SPC > > > > Expected: > > > > Region is activated temporarily. > > > > Actual: > > > > 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. > > > > I propose making rectangle-mark-mode activate the region even if > > transient-mark-mode is disabled for a number of reasons. > > I'm not quite sure I fully understand the suggestion -- do you mean that > `C-x SPC' should switch transient-mark-mode on if it isn't already? > (And then switch it off again in `deactivate-mark-hook'?) > Behavior-wise, it should work the same as `C-SPC C-SPC` when transient-mark-mode is off, (temporarily enable transient-mark-mode and active region). I don't remember how that is implemented off the top of my head. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --000000000000bfb5a505c4d61228 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sat, Jun 12, 2021 at 12:29 PM Lars= Ingebrigtsen <larsi@gnus.org> = wrote:
Allen Li = <darkfeline@felesatra.moe> writes:

> rectangle-mark-mode does not activate region if transient mark mode is=
> disabled.
>
> Steps:
>
> 1. emacs -Q
> 2. M-x transient-mark-mode RET
> 3. C-x SPC
>
> Expected:
>
> Region is activated temporarily.
>
> Actual:
>
> Region is not activated.=C2=A0 Note that rectagle-mark-mode is still > partially enabled.=C2=A0 For example, C-x C-x moves point according to= the
> rectangular region, but you cannot move point beyond the end of the > line.
>
> I propose making rectangle-mark-mode activate the region even if
> transient-mark-mode is disabled for a number of reasons.

I'm not quite sure I fully understand the suggestion -- do you mean tha= t
`C-x SPC' should switch transient-mark-mode on if it isn't already?=
(And then switch it off again in `deactivate-mark-hook'?)

Behavior-wise, it should work the same as `C-SPC C-S= PC` when transient-mark-mode is off,
(temporarily enable=C2=A0tra= nsient-mark-mode and active region).
I don't remember how tha= t is implemented off the top of my head.
=C2=A0

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--000000000000bfb5a505c4d61228--