all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 50950@debbugs.gnu.org
Subject: bug#50950: "(emacs) Mark" should contrast to "selecting" text in other editors
Date: Sat, 2 Oct 2021 01:01:21 +0200	[thread overview]
Message-ID: <CADwFkmmLH_k16iTHv4bchDpB557sbTz=jtfFqaQSLK3u9hZ6mA@mail.gmail.com> (raw)
In-Reply-To: <83pmsocyze.fsf@gnu.org>

Den fre 1 okt. 2021 kl 21:44 skrev Eli Zaretskii <eliz@gnu.org>:
>
> > From: Stefan Kangas <stefan@marxist.se>
> > Date: Fri, 1 Oct 2021 21:31:22 +0200
> >
> > Severity: wishlist
> >
> > The section '(emacs) Mark' starts with saying:
> >
> > "Many Emacs commands operate on an arbitrary contiguous part of the
> > current buffer."
> >
> > This makes it sound like this is an unusual, super advanced feature,
> > when in the rest of the world this is just known as "selecting text".
> > We should avoid the words "arbitrary" and "contiguous" which, while
> > accurate, comes off as extremely highbrow for such an extremely basic
> > feature.
>
> I disagree that the region is a basic feature.  It may look
> deceptively similar to text selections, but it isn't.  We have the
> region, the active region, and the shift- and mouse-selected text,
> which all look similar, and sometimes behave similarly, but they are
> not identical.

IMO, it is not an advanced feature, and on the most basic level it
really is just selecting text.  You want to copy it, make it bold,
indent it, or what have you.

It is of course precisely what makes it different that needs to be
explained.  But this can and IMO should be done by starting out from
what is already known.  For example, where we now have:

  Many Emacs commands operate on an arbitrary contiguous part of the
  current buffer.  To specify the text for such a command to operate on,
  you set “the mark” at one end of it, and move point to the other end.

it would be better to put something along these lines:

  In other text editors, you can select text to perform various
  operations on, such as copying or deleting it.  In Emacs, we say
  that such commands operate on the "region".

  The region starts at point, and ends at what in Emacs is known
  as "the mark" ...

  [Note: this a very quick write-up, and not a proposal.]

We don't need to talk about "arbitrary contiguous parts" or anything
like that.  There is no need to pretend as if the user don't already
have a very strong concept of what exactly is a text selection and how
it works: our job is to help the user see exactly where that intuition
fails.

> > We should re-work this section to contrast the unusual parts of point,
> > mark and region to the types of text selection that exists in other
> > editors.  We can safely assume that the latter is well known.
>
> The region and selected text are not identical.  The differences are
> subtle and not easy to explain, but saying that they are the same is
> worse than that, because it will trip users.

See above, this is not about saying that these things are the same.

In any case, AFAICT, the manual doesn't make much of an attempt to
explain this difference as it is, so I'm not sure it is very
important.  I could be wrong, but in that case I think the manual
should try to do a better job at explaining it.  (The only match I can
find for variations of "select" in the index is "mouse, selecting text
using" and that section is talking about the region.)





  reply	other threads:[~2021-10-01 23:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-01 19:31 bug#50950: "(emacs) Mark" should contrast to "selecting" text in other editors Stefan Kangas
2021-10-01 19:43 ` Eli Zaretskii
2021-10-01 23:01   ` Stefan Kangas [this message]
2021-10-02  6:22     ` Eli Zaretskii
2021-10-16 13:04       ` Stefan Kangas
2021-10-16 14:11         ` Eli Zaretskii
2021-10-16 18:14           ` bug#50950: [External] : " Drew Adams
2021-10-16 18:21             ` Eli Zaretskii
2021-10-16 18:33               ` Drew Adams
2021-10-16 18:55                 ` Eli Zaretskii
2021-10-16 19:26                   ` Drew Adams
2021-10-17  6:27           ` Eli Zaretskii
2021-10-17  8:34             ` martin rudalics
2021-10-17 10:05               ` Eli Zaretskii
2021-10-17 11:15                 ` martin rudalics
2021-10-17 11:35                   ` Eli Zaretskii
2021-10-17 17:44                     ` martin rudalics
2022-09-04 20:59           ` Lars Ingebrigtsen

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='CADwFkmmLH_k16iTHv4bchDpB557sbTz=jtfFqaQSLK3u9hZ6mA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=50950@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.