all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Earl <jearl@xmission.com>
To: David Kastrup <dak@gnu.org>
Cc: Evans Winner <thorne@timbral.net>, emacs-devel@gnu.org
Subject: Re: Enabling Transient Mark Mode by default
Date: Wed, 20 Feb 2008 17:42:23 -0700	[thread overview]
Message-ID: <8763wjb0nk.fsf@xmission.com> (raw)
In-Reply-To: <85lk5fb3ym.fsf@lola.goethe.zz> (David Kastrup's message of "Thu,  21 Feb 2008 00:30:57 +0100")

David Kastrup <dak@gnu.org> writes:

> Jason Earl <jearl@xmission.com> writes:
>
>> Yes, I agree that transient-mark-mode works somewhat differently than
>> most text editors.  However, without transient-mark-mode Emacs is
>> *remarkably* different than other editors.  More importantly,
>> transient-mark-mode helps give the newbie clues as to how setting the
>> region works in Emacs.  Think of it as training wheels for region
>> marking.
>>
>> Without those visual clues it is easy for even the experienced Emacs
>> user to forget where the mark is.  Of course, the experienced Emacs
>> user has read the manual and knows about C-x C-x and friends.
>
> You don't need to read the manual.  The tutorial is sufficient as are
> the help sheets.  And without learning at least some basics, Emacs is
> not going to be fun.
>
>> The newbie, on the other hand, doesn't have a clue about these
>> keystrokes.  As far as they are concerned Emacs is simply too
>> old-fashioned to do something sensible like highlight the region they
>> are marking.  To make matters worse the new user is in for a surprise
>> when they try to actually use the "invisible" region that they are
>> trying to mark because, as you point out, it is likely to work
>> differently than they expect.  At least with transient-mark-mode Emacs
>> gives the user some visual clues that can help the new user figure out
>> what just happened to their text.
>
> Sorry, but you miss the fact that the highlighted region is _active_
> whereas the non-highlighted region is _inactive_.  And _active_ region
> changes the meaning of lots of commands, making them operate on the
> region instead of their normal range.  An _inactive_ region defined
> with mark and point does not have such an effect.  It merely sets mark
> somewhere but assigns no special meaning to the region.  Only commands
> explicitly working on the region between mark and point are ever
> affected.

Even an inactive region has meaning (C-w proves it).  What it doesn't
have is some sort of visible clue as to where it is.  That makes the
mark a useful bookmark for experts who have read the manual (the
TUTORIAL doesn't mention C-x C-x and friends) and useless and confusing
to anyone else.  The TUTORIAL mentions the mark one time, but it
certainly doesn't talk about potential uses for it other than cutting
regions of text.

For the new user the mark doesn't exist.  Unless, of course, they turn
on transient-mark-mode, then, when the region is active the user can see
where the mark and point happen to be.

> So transient-mark-mode does something quite different from merely
> highlighting the region.  It changes its meaning.

Yes, it changes the meaning in a way that even people that don't like
transient-mark-mode seem to like.  That's why commands behave
differently with active regions.  Or are you suggesting this feature
should go away?

A new user that highlights a region using transient-mark-mode and then
does M-x query-replace to replace some text isn't going to be surprised
that only text in the highlighted region is affected.  Or if they are
surprised they are likely to be excited by the fact that they can search
and replace in a subset of a file easily.  After all, you can always
make the region inactive and run the command again.

I know that when I stumbled across that functionality that I thought it
was pretty cool.

The whole point of marking a region is that you are going to do
something to that region.

The real tragedy is that, without transient-mark-mode, new users won't
even know that they can run commands on a region of the text because
they won't learn about making a region active unless they stumble
accross the part of the manual that talks about The Mark and the Region.
Even if you do stumble upon that section it doesn't tell you that making
the region active changes the way many commands work.

Like I mentioned before, I personally found out about this particular
feature by accident.  I assume that most of the people here found out
about the feature by reading Emacs Lisp source code.  That's fine if you
are an Emacs Lisp developer.  It's not so fine for the rest of us.

If Emacs were some sort of text adventure (and I suppose that it is)
then this sort of discovery would be worth quite a few points.
Personally, I am glad that someone has decided that the default going
forward is to give newcomers a clue by turning on transient-mark-mode
and showing people (by default) the cool things that can be done with
active regions.

Yes, transient-mark-mode screws up the bookmarking features of inactive
regions and marks (well, actually it just highlights the region, but why
get technical).

>> Marking regions in Emacs *should* be different than how it is done in
>> other editors because the way Emacs marks regions is better :).
>> However, it is not likely to *seem* better to the uninitiated if they
>> have a hard time telling what parts of the text comprise the region.
>
> But the highlighting of tmm does more than show mark and point.

Yes, it makes marking the region actually useful for a whole pile of
commands at the expense of making the mark less useful as a bookmark.

It's likely that I am missing some other magical use of the invisible
mark, I just started using it today.

Jason




  reply	other threads:[~2008-02-21  0:42 UTC|newest]

Thread overview: 274+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28  7:48 change cursor type when idle Drew Adams
2006-08-28  9:54 ` Kim F. Storm
2006-08-28 15:00   ` Drew Adams
2006-08-28 15:30     ` Lennart Borgman
2006-08-28 16:08       ` David Hansen
2006-08-28 16:09       ` Drew Adams
2006-08-28 16:21         ` Lennart Borgman
2006-08-28 16:58           ` Drew Adams
2006-08-28 21:27             ` Juri Linkov
2006-08-28 23:13               ` Drew Adams
2006-08-29 20:27                 ` Juri Linkov
2006-08-29 20:51                   ` Drew Adams
2006-08-29 13:51               ` Mathias Dahl
2006-08-29 13:59                 ` Drew Adams
2006-08-29 20:17                   ` Kevin Rodgers
2006-08-28 21:06       ` Kim F. Storm
2006-08-28 21:44   ` Kim F. Storm
2006-08-29  1:18     ` Luc Teirlinck
2006-08-29  7:44       ` Kim F. Storm
2006-08-29 13:38         ` Drew Adams
2006-08-28 22:10 ` Richard Stallman
2007-07-01 20:24   ` Drew Adams
2007-07-02 19:47     ` Richard Stallman
2008-02-11  7:48     ` Drew Adams
2008-02-11 10:11       ` Thien-Thi Nguyen
2008-02-13  0:25         ` Richard Stallman
2008-02-11 21:10       ` Richard Stallman
2008-02-12 14:30         ` Dan Nicolaescu
2008-02-12 14:43           ` Juanma Barranquero
2008-02-12 15:10             ` Dan Nicolaescu
2008-02-12 15:23               ` Juanma Barranquero
2008-02-12 16:20                 ` Dan Nicolaescu
2008-02-12 16:28                   ` Juanma Barranquero
2008-02-12 16:43                     ` Dan Nicolaescu
2008-02-12 17:12                       ` Juanma Barranquero
2008-02-12 18:07                         ` Dan Nicolaescu
2008-02-12 18:20                           ` Juanma Barranquero
2008-02-12 18:34                             ` Drew Adams
2008-02-12 19:34                               ` Juri Linkov
2008-02-12 21:45                               ` Juri Linkov
2008-02-12 18:44                             ` Dan Nicolaescu
2008-02-12 20:54                               ` Juanma Barranquero
2008-02-12 15:19           ` Drew Adams
2008-02-12 15:35             ` Juanma Barranquero
2008-02-12 16:11             ` Dan Nicolaescu
2008-02-12 16:21               ` Juanma Barranquero
2008-02-12 16:27                 ` David Kastrup
2008-02-12 16:36                   ` Juanma Barranquero
2008-02-12 16:55                 ` Dan Nicolaescu
2008-02-12 17:14                   ` Juanma Barranquero
2008-02-12 17:45             ` Richard Stallman
2008-02-13 11:52               ` Kim F. Storm
2008-02-13 15:45                 ` Stefan Monnier
2008-02-13 16:04                   ` CUA-mode features and documenation (was: Re: change cursor type when idle) Kim F. Storm
2008-02-13 16:23                     ` Dan Nicolaescu
2008-02-13 22:45                       ` CUA-mode features and documenation Juri Linkov
2008-02-13 22:59                         ` Dan Nicolaescu
2008-02-13 23:18                         ` Miles Bader
2008-02-14  0:01                           ` Juri Linkov
2008-02-14  0:50                             ` Miles Bader
2008-02-14  0:58                               ` Lennart Borgman (gmail)
2008-02-14  1:12                                 ` Miles Bader
2008-02-14 18:10                                 ` Richard Stallman
2008-02-15 17:11                                   ` Dan Nicolaescu
2008-02-17 13:22                                     ` Richard Stallman
2008-02-17 18:05                                       ` Drew Adams
2008-02-18 11:40                                         ` Richard Stallman
2008-02-18 13:44                                         ` Kim F. Storm
2008-02-18 15:52                                           ` Drew Adams
2008-02-17 19:51                                       ` Miles Bader
2008-02-17 22:24                                         ` Lennart Borgman (gmail)
2008-02-17 22:30                                           ` Miles Bader
2008-02-18 13:48                                             ` Kim F. Storm
2008-02-17 13:22                                     ` Richard Stallman
2008-02-17 16:58                                       ` Dan Nicolaescu
2008-02-17 18:06                                         ` Drew Adams
2008-02-18 11:40                                         ` Richard Stallman
2008-02-19  8:52                                         ` Enabling Transient Mark Mode by default [Re: CUA-mode features and documenation] Alan Mackenzie
2008-02-19  9:38                                           ` Dan Nicolaescu
2008-02-19 19:01                                             ` Enabling Transient Mark Mode by default Alan Mackenzie
2008-02-19 20:41                                               ` Stefan Monnier
2008-02-19 22:43                                               ` Miles Bader
2008-02-19 23:45                                                 ` Mathias Dahl
2008-02-19 23:49                                                   ` Lennart Borgman (gmail)
2008-02-20  0:12                                                     ` David Kastrup
2008-02-20  0:19                                                       ` Lennart Borgman (gmail)
2008-02-20  0:30                                                         ` David Kastrup
2008-02-20  0:49                                                           ` Lennart Borgman (gmail)
2008-02-20  7:48                                                             ` David Kastrup
2008-02-20  0:16                                                     ` Miles Bader
2008-02-20  3:49                                                     ` Stefan Monnier
2008-02-20  9:56                                                     ` Mathias Dahl
2008-02-20 16:32                                                       ` CUA-*mode (was: Enabling Transient Mark Mode by default) Stefan Monnier
2008-02-20 17:27                                                         ` Mathias Dahl
2008-02-20  8:59                                                 ` Enabling Transient Mark Mode by default Richard Stallman
2008-02-20 12:27                                                   ` Sascha Wilde
2008-02-20 12:52                                                     ` Juanma Barranquero
2008-02-20 13:09                                                       ` David Kastrup
2008-02-20 14:33                                                         ` Juanma Barranquero
2008-02-20 15:11                                                           ` David Kastrup
2008-02-20 15:43                                                             ` Juanma Barranquero
2008-02-20 15:55                                                       ` David Reitter
2008-02-20 16:04                                                         ` Juanma Barranquero
2008-02-20 16:27                                                           ` David Reitter
2008-02-21 15:34                                                             ` Dan Nicolaescu
2008-02-20 16:23                                                         ` David Kastrup
2008-02-21  3:52                                                         ` Provide different sets of .emacs [Was: Enabling Transient Mark Mode by default] William Xu
2008-02-21  4:04                                                           ` Provide different sets of .emacs William Xu
2008-02-20 16:14                                                       ` Enabling Transient Mark Mode by default Mathias Dahl
2008-02-20 16:27                                                         ` David Kastrup
2008-02-20 17:21                                                           ` Mathias Dahl
2008-02-20 17:30                                                             ` David Kastrup
2008-02-20 20:48                                                               ` Mathias Dahl
2008-02-20 21:07                                                                 ` David Kastrup
2008-02-20 16:52                                                     ` Stefan Monnier
2008-02-20 17:00                                                       ` David Kastrup
2008-02-20 17:58                                                         ` Stefan Monnier
2008-02-20 19:30                                                           ` David De La Harpe Golden
2008-02-20 20:09                                                             ` David Kastrup
2008-02-20 20:41                                                               ` David De La Harpe Golden
2008-02-21 17:45                                                                 ` Juri Linkov
2008-02-21 23:01                                                                   ` Lennart Borgman (gmail)
2008-02-21 23:24                                                                     ` Lennart Borgman (gmail)
2008-02-22  3:18                                                                   ` Miles Bader
     [not found]                                                                     ` <8e24944a0802212139r2bae3597ke49c5c6da65da445@mail.gmail.com>
2008-02-22  5:49                                                                       ` Fwd: " David De La Harpe Golden
2008-02-22 22:57                                                                     ` Richard Stallman
2008-02-23  0:09                                                                       ` Miles Bader
2008-02-23  0:31                                                                         ` Mike Mattie
2008-02-23  1:02                                                                           ` Drew Adams
2008-02-23  1:20                                                                         ` Bastien
2008-02-23  9:16                                                                           ` Sascha Wilde
2008-02-23  1:17                                                                       ` Bastien
2008-02-23  5:16                                                                         ` Stefan Monnier
2008-02-23 10:30                                                                           ` Bastien
2008-02-23 19:29                                                                         ` Richard Stallman
2008-02-20 21:44                                                           ` Lennart Borgman (gmail)
2008-02-21  9:16                                                             ` Richard Stallman
2008-02-21  9:16                                                           ` Richard Stallman
2008-02-21 14:31                                                             ` Stefan Monnier
2008-02-22 10:47                                                               ` Bastien
2008-02-22 13:11                                                                 ` Sascha Wilde
2008-02-22 14:16                                                                   ` Bastien Guerry
2008-02-22 14:48                                                                     ` David De La Harpe Golden
2008-02-22 18:06                                                                       ` Bastien
2008-02-22 15:53                                                                     ` Sascha Wilde
2008-02-22 18:12                                                                       ` Bastien
2008-02-22 22:20                                                                         ` Mike Mattie
2008-02-22 23:09                                                                         ` Mike Mattie
2008-02-23 19:28                                                                         ` Richard Stallman
2008-02-22 14:57                                                                 ` Andreas Schwab
2008-02-22 16:27                                                                 ` Leo
2008-02-22 22:57                                                                 ` Richard Stallman
2008-02-21 22:28                                                           ` Richard Stallman
2008-02-20 17:35                                                       ` Sascha Wilde
2008-02-20 18:04                                                         ` Lennart Borgman (gmail)
2008-02-20 19:02                                                         ` Evans Winner
2008-02-20 21:13                                                           ` Jason Earl
2008-02-20 21:24                                                             ` David Kastrup
2008-02-20 22:46                                                               ` David De La Harpe Golden
2008-02-21  7:30                                                                 ` martin rudalics
2008-02-21 22:29                                                                   ` scroll-restore.el Richard Stallman
2008-02-22 16:11                                                                     ` scroll-restore.el David De La Harpe Golden
2008-02-22 19:32                                                                       ` scroll-restore.el martin rudalics
2008-02-22 19:41                                                                         ` scroll-restore.el David De La Harpe Golden
2008-02-22 19:51                                                                           ` scroll-restore.el martin rudalics
2008-02-22 19:26                                                                     ` scroll-restore.el martin rudalics
2008-02-20 23:15                                                               ` Enabling Transient Mark Mode by default Jason Earl
2008-02-20 23:30                                                                 ` David Kastrup
2008-02-21  0:42                                                                   ` Jason Earl [this message]
2008-02-21  9:57                                                                     ` David Kastrup
2008-02-21 14:36                                                                       ` Stefan Monnier
2008-02-21 14:41                                                                         ` David Kastrup
2008-02-21 16:13                                                                           ` Stefan Monnier
2008-02-21 16:26                                                                             ` David Kastrup
2008-02-21 17:18                                                                               ` Stefan Monnier
2008-02-21 17:38                                                                                 ` David De La Harpe Golden
2008-02-21 17:52                                                                                   ` David De La Harpe Golden
2008-02-21 21:45                                                                                 ` David Kastrup
2008-02-21 22:24                                                                                   ` Miles Bader
2008-02-21 17:27                                                                             ` Drew Adams
2008-02-21 22:25                                                                               ` Miles Bader
2008-02-21 22:59                                                                                 ` Lennart Borgman (gmail)
2008-02-21 23:17                                                                                   ` Miles Bader
2008-02-21 23:22                                                                                     ` Lennart Borgman (gmail)
2008-02-21 23:39                                                                                       ` Mathias Dahl
2008-02-21 23:45                                                                                         ` Lennart Borgman (gmail)
2008-02-21 23:10                                                                                 ` Drew Adams
2008-02-22 10:07                                                                                 ` Andreas Schwab
2008-02-22 12:19                                                                                   ` Tassilo Horn
2008-02-22 12:28                                                                                     ` David Kastrup
2008-02-22 22:57                                                                                       ` Richard Stallman
2008-02-22 23:14                                                                                         ` Stefan Monnier
2008-02-23  0:03                                                                                           ` Miles Bader
2008-02-23  0:14                                                                                             ` Lennart Borgman (gmail)
2008-02-23  8:04                                                                                             ` Mathias Dahl
2008-02-23  0:04                                                                                         ` Miles Bader
2008-02-23 19:29                                                                                           ` Richard Stallman
2008-02-23  0:14                                                                                         ` Stephen J. Turnbull
2008-02-23  0:21                                                                                           ` Miles Bader
2008-02-23  0:46                                                                                           ` Should M-SPC respect `sentence-end-double-space'? Stephen J. Turnbull
2008-02-23  0:46                                                                                             ` Paul Pogonyshev
2008-02-23  3:23                                                                                               ` Stephen J. Turnbull
2008-02-23  0:52                                                                                             ` Miles Bader
2008-02-23  3:11                                                                                               ` Stephen J. Turnbull
2008-02-23  3:47                                                                                                 ` Miles Bader
2008-02-23  8:33                                                                                                   ` Stephen J. Turnbull
2008-02-23 15:47                                                                                                     ` Stefan Monnier
2008-02-23 17:01                                                                                               ` Juri Linkov
2008-02-21 22:28                                                                   ` Enabling Transient Mark Mode by default Richard Stallman
2008-03-01 22:15                                                                     ` Glenn Morris
2008-03-01 22:40                                                                       ` Kim F. Storm
2008-03-02  2:56                                                                       ` Juri Linkov
2008-03-02 17:25                                                                         ` Richard Stallman
2008-03-02  5:51                                                                       ` Stefan Monnier
2008-03-02 16:09                                                                         ` Juri Linkov
2008-03-02 17:25                                                                       ` Richard Stallman
2008-02-21  9:16                                                           ` Richard Stallman
2008-02-21 12:07                                                             ` Robert J. Chassell
2008-02-20 21:15                                                         ` Stephen J. Turnbull
2008-02-21  9:16                                                           ` Richard Stallman
2008-02-21 15:55                                                             ` Luc Teirlinck
2008-02-22  3:31                                                             ` Stephen J. Turnbull
2008-02-22 22:57                                                               ` Richard Stallman
2008-02-23  0:08                                                                 ` Stephen J. Turnbull
2008-02-21 22:27                                                         ` Richard Stallman
2008-02-20 19:09                                                       ` Drew Adams
2008-02-21  0:10                                                         ` Miles Bader
2008-02-21 22:28                                                           ` Richard Stallman
2008-02-23 11:00                                                           ` Alan Mackenzie
2008-02-20 20:01                                                       ` Tentative diagnosis of TMM's problem. [Re: Enabling Transient Mark Mode by default] Alan Mackenzie
2008-02-20 20:52                                                         ` Stefan Monnier
2008-02-20 22:16                                                           ` Tentative diagnosis of TMM's problem. [Re: Enabling TransientMark " Drew Adams
2008-02-20 22:32                                                             ` Lennart Borgman (gmail)
2008-02-20 22:45                                                               ` Drew Adams
2008-02-21  1:09                                                                 ` David De La Harpe Golden
2008-02-21  1:44                                                                   ` Drew Adams
2008-02-21  8:05                                                               ` Sven Joachim
2008-02-21  0:13                                                             ` Miles Bader
2008-02-21  1:44                                                               ` Drew Adams
2008-02-21  4:56                                                                 ` David De La Harpe Golden
2008-02-21 22:28                                                                 ` Richard Stallman
2008-02-21 17:46                                                               ` Juri Linkov
2008-02-21 22:28                                                               ` Tentative diagnosis of Transient Mark mode's " Richard Stallman
2008-02-21  8:19                                                             ` Tentative diagnosis of TMM's " Alan Mackenzie
2008-02-21  9:43                                                               ` Tentative diagnosis of TMM's problem. [Re: Enabling TransientMarkMode " Drew Adams
2008-02-21 10:54                                                                 ` David Kastrup
2008-02-21 17:10                                                                   ` Drew Adams
2008-02-21 19:28                                                                     ` Sascha Wilde
2008-02-21 21:42                                                                     ` David Kastrup
2008-02-22 11:58                                                                     ` Enabling Transient Mark Mode by default Robert J. Chassell
2008-02-22 14:49                                                                       ` David De La Harpe Golden
2008-02-22 16:37                                                                       ` Stefan Monnier
2008-02-21 10:59                                                                 ` Tentative diagnosis of TMM's problem. [Re: Enabling TransientMarkMode by default] Andreas Schwab
2008-02-21 16:55                                                                   ` Drew Adams
2008-02-21 22:29                                                                 ` Richard Stallman
2008-02-21  8:05                                                           ` Tentative diagnosis of TMM's problem. [Re: Enabling Transient Mark Mode " Alan Mackenzie
2008-02-21 14:54                                                             ` Stefan Monnier
2008-02-21 17:44                                                           ` Tentative diagnosis of TMM's problem Johan Bockgård
2008-02-21 19:21                                                             ` Stefan Monnier
2008-02-21 22:38                                                               ` Johan Bockgård
2008-02-22  1:51                                                                 ` Stefan Monnier
2008-02-21  9:16                                                         ` Tentative diagnosis of TMM's problem. [Re: Enabling Transient Mark Mode by default] Richard Stallman
2008-02-23 11:34                                                           ` Alan Mackenzie
2008-02-24  0:53                                                             ` Richard Stallman
2008-02-20 21:27                                                       ` Enabling Transient Mark Mode by default Juri Linkov
2008-02-19  9:48                                           ` Enabling Transient Mark Mode by default [Re: CUA-mode features and documenation] David Kastrup
2008-02-17 18:11                                     ` CUA-mode features and documenation David De La Harpe Golden
2008-02-14  1:54                               ` Leo
2008-02-13 22:00                 ` change cursor type when idle Richard Stallman
2008-02-14 13:16                   ` Kim F. Storm
2008-02-15  0:03                     ` Richard Stallman
2008-02-12 19:31           ` Juri Linkov
2008-02-12 21:23             ` Miles Bader
2008-02-12 21:42               ` Juri Linkov

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=8763wjb0nk.fsf@xmission.com \
    --to=jearl@xmission.com \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=thorne@timbral.net \
    /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.