From: Drew Adams <drew.adams@oracle.com>
To: Allen Li <darkfeline@felesatra.moe>, 43209@debbugs.gnu.org
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) [thread overview]
Message-ID: <e755f73d-d664-4275-b2d1-4c9cf219ca6c@default> (raw)
In-Reply-To: <80363w3owp.fsf@felesatra.moe>
> 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 think it's a reasonable interpretation of the docstring:
>
> Activates the region if needed. Only lasts until the region is
> deactivated.
>
> 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.
>
> 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).
next prev parent reply other threads:[~2020-09-05 14:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-05 3:04 bug#43209: 27.1; rectangle-mark-mode does not activate region if transient mark mode disabled Allen Li
2020-09-05 14:28 ` Drew Adams [this message]
2020-09-05 22:25 ` Allen Li
2021-06-12 12:29 ` Lars Ingebrigtsen
2021-06-15 23:09 ` Allen Li
2021-06-19 12:21 ` Lars Ingebrigtsen
2021-06-23 5:33 ` Allen Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e755f73d-d664-4275-b2d1-4c9cf219ca6c@default \
--to=drew.adams@oracle.com \
--cc=43209@debbugs.gnu.org \
--cc=darkfeline@felesatra.moe \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).