all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: 42663@debbugs.gnu.org
Subject: bug#42663: 28.0.50; rectangle-mark-mode does not behave as documented when transient-mark-mode is off
Date: Sat, 25 Dec 2021 09:55:36 +0200	[thread overview]
Message-ID: <83r1a1qft3.fsf@gnu.org> (raw)
In-Reply-To: <87sfuh1y3h.fsf@melete.silentflame.com> (message from Sean Whitton on Fri, 24 Dec 2021 14:39:46 -0700)

> From: Sean Whitton <spwhitton@spwhitton.name>
> Date: Fri, 24 Dec 2021 14:39:46 -0700
> 
> Apologies, it was not my intention to suggest that I'm sure the
> behaviour should change.  I reported a bug because I found what seemed
> like inconsistencies between the documentation and the behaviour of the
> command.  From my point of view, improving the documentation without
> changing the behaviour of the command would resolve the issue.
> 
> Thus, I'm attaching a documentation patch.  Hope it can be installed.

Thanks.  I have a couple of comments:

> --- a/doc/emacs/killing.texi
> +++ b/doc/emacs/killing.texi
> @@ -923,11 +923,11 @@ Rectangles
>  @findex rectangle-mark-mode
>    The command @kbd{C-x @key{SPC}} (@code{rectangle-mark-mode}) toggles
>  whether the region-rectangle or the standard region is highlighted
> -(first activating the region if necessary).  When this mode is enabled,
> -commands that resize the region (@kbd{C-f}, @kbd{C-n} etc.)@: do
> -so in a rectangular fashion, and killing and yanking operate on the
> -rectangle.  @xref{Killing}.  The mode persists only as long as the
> -region is active.
> +(first activating the region if necessary, unless Transient Mark mode
> +is off).  When this mode is enabled, commands that resize the region
> +(@kbd{C-f}, @kbd{C-n} etc.)@: do so in a rectangular fashion, and
> +killing and yanking operate on the rectangle.  @xref{Killing}.  The
> +mode persists until the next time the region becomes inactive.

The new text is IMO not accurate, because toggling the mode doesn't
depend on Transient Mark mode.  It's the "active mark" state that
depends on Transient Mark mode, in the sense that the mark doesn't
automatically become active when Transient Mark mode is off and
set-mark-command or push-mark is called.

So I think a better documentation change would be to say that
rectangle mark mode only works when the mark is active, and point to
"Disabled Transient Mark" node of the manual for how to do that when
Transient Mark mode is off.  This should probably be a separate
paragraph, after the current text.

> +When the region is active and in rectangle-mark-mode, @kbd{C-x C-x}

After "when the region is active", I would add a cross-reference to
"Mark", where this is described.





       reply	other threads:[~2021-12-25  7:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87sfuh1y3h.fsf@melete.silentflame.com>
2021-12-25  7:55 ` Eli Zaretskii [this message]
2021-12-27 20:04   ` bug#42663: 28.0.50; rectangle-mark-mode does not behave as documented when transient-mark-mode is off Sean Whitton
2021-12-28 17:40     ` Eli Zaretskii
2020-08-02  4:19 Sean Whitton
2020-08-02 14:12 ` Eli Zaretskii
2020-09-22 15:46   ` Lars Ingebrigtsen
2021-12-24 21:41   ` Sean Whitton

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83r1a1qft3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=42663@debbugs.gnu.org \
    --cc=spwhitton@spwhitton.name \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.