all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi@gnus.org>, <emacs-devel@gnu.org>
Subject: Should C-x C-x activate the region? [was: C-d deleting region considered harmful]
Date: Sun, 19 Sep 2010 13:06:06 -0700	[thread overview]
Message-ID: <100157F1852148F2A192F00F49398690@us.oracle.com> (raw)
In-Reply-To: <m3bp7ty4l7.fsf@quimbies.gnus.org>

> > However I've been annoyed quite few times when it 
> > highlights the region when I don't want it.  C-x C-x being a
> > primal example (yes, I understand that it's a change in 
> > semantics).

(I think he meant "prime" rather than "primal", FWIW.)

> Perhaps `C-x C-x' is the prime annoyance factor here?  It 
> certainly was for me.  Perhaps it just shouldn't activate
> the transient mark mode?

Good question.  New thread.

If indeed most of those who are annoyed by t-m-mode (I am _not_ one, FWIW) are
_mostly_ annoyed by `C-x C-x' activating the region, there is a simple solution
for them: rebind `C-x C-x' to a similar command that never activates the mark.

Going beyond such individual remedies, are there many such annoyed users?  If so
then perhaps we should simply make that change to the default behavior: _not_
have `C-x C-x' activate the region.

`C-x C-x' currently has two independent effects that are only artificially
coupled: (a) activate the region, (b) swap point and mark.  Both effects are
useful, but they need not be coupled in the same key/command.  Personally, I
don't think I would have a problem with using two (simple) keys for those two
effects.

(We effectively already have different keys via the prefix arg, but their use is
not so convenient.  A new, separate binding for region activation would need to
be simple.)

For those who really want the current complex, DWIM behavior, we could keep it
but just not bind it to `C-x C-x' by default.

And the current behavior really does not deserve the traditional name
`exchange-point-and-mark'.  That name does not adequately describe its behavior
anymore.  Perhaps put `-dwim-' in the name somewhere, if we decide to keep such
a command at all.

---

Another possibility that just occurred to me (was this perhaps already
discussed?): Let `C-x C-x' activate the region only if repeated (i.e., `C-x C-x
C-x C-x').  But I suspect that that would still be annoying for navigational use
(bounce to see where the mark is).




  reply	other threads:[~2010-09-19 20:06 UTC|newest]

Thread overview: 128+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-18  1:49 C-d deleting region considered harmful Miles Bader
2010-09-18  3:06 ` Miles Bader
2010-09-18 14:53   ` Drew Adams
2010-09-18  8:34 ` Stefan Monnier
2010-09-18 15:00   ` Drew Adams
2010-09-18 19:22   ` Chong Yidong
2010-09-20 16:11     ` Chong Yidong
2010-09-18  9:24 ` Eli Zaretskii
2010-09-18  9:45   ` David Kastrup
2010-09-18 10:06     ` Eli Zaretskii
2010-09-18 10:15       ` Eli Zaretskii
2010-09-18 12:02         ` Sebastian Rose
2010-09-18 15:26           ` Drew Adams
2010-09-18 16:14           ` Christoph
2010-09-18 16:20             ` Eli Zaretskii
2010-09-18 16:25               ` Christoph
2010-09-18 19:41                 ` Sebastian Rose
2010-09-18 19:45                   ` Christoph
2010-09-19 14:17                     ` Sebastian Rose
2010-09-19 14:23                       ` Christoph
2010-09-19 14:46                         ` Sebastian Rose
2010-09-19 21:02                           ` Christoph
2010-09-19 21:28                             ` Eli Zaretskii
2010-09-19 23:26                               ` Christoph
2010-09-20  6:52                                 ` David Kastrup
2010-09-19 21:39                             ` Sebastian Rose
2010-09-19 23:39                               ` David De La Harpe Golden
2010-09-19 23:46                               ` Christoph
2010-09-18 15:15       ` Drew Adams
2010-09-18 14:21   ` Miles Bader
2010-09-18 15:05   ` Drew Adams
2010-09-18 16:04     ` Stefan Monnier
2010-09-18 18:44       ` Drew Adams
2010-09-18 18:53         ` Miles Bader
2010-09-18 19:11         ` Drew Adams
2010-09-20  0:16       ` Richard Stallman
2010-09-20  0:22         ` Lennart Borgman
2010-09-20  3:10           ` Drew Adams
2010-09-20 11:51             ` Lennart Borgman
2010-09-20  7:56           ` Bastien
2010-09-20 10:43             ` Eli Zaretskii
2010-09-20 11:21               ` Bastien
2010-09-20 11:34                 ` Eli Zaretskii
2010-09-20 12:07                   ` David Kastrup
2010-09-20 12:35                     ` Deniz Dogan
2010-09-20 12:37                       ` David Kastrup
2010-09-20 12:56                         ` Eli Zaretskii
2010-09-20 12:55                     ` Eli Zaretskii
2010-09-22  0:56             ` Richard Stallman
2010-09-22  5:11               ` Miles Bader
2010-09-23  0:58                 ` Richard Stallman
2010-09-20  1:24         ` Miles Bader
2010-09-21  0:56           ` Richard Stallman
2010-09-21  1:01             ` Lennart Borgman
2010-09-21  7:51               ` David Kastrup
2010-09-21  8:19                 ` PJ Weisberg
2010-09-21  1:30             ` Miles Bader
2010-09-21  1:47               ` Leo
2010-09-21  2:42                 ` Miles Bader
2010-09-18 16:47     ` Christoph
2010-09-18 18:44       ` Drew Adams
2010-09-18 18:50         ` Lars Magne Ingebrigtsen
2010-09-18 19:13           ` Drew Adams
2010-09-18 19:16             ` Lars Magne Ingebrigtsen
2010-09-18 19:39               ` Drew Adams
2010-09-19  6:31               ` David Kastrup
2010-09-19 11:07                 ` Lars Magne Ingebrigtsen
2010-09-19 11:23                   ` David Kastrup
2010-09-18 20:42             ` Sebastian Rose
2010-09-18 20:22       ` Sebastian Rose
2010-09-18 14:29 ` Drew Adams
2010-09-18 15:07   ` Bastien
2010-09-18 15:52 ` Christoph
2010-09-18 18:40   ` Miles Bader
2010-09-18 18:47     ` Lars Magne Ingebrigtsen
2010-09-18 19:09       ` Miles Bader
2010-09-18 21:18       ` Eli Zaretskii
2010-09-19 14:00         ` Christoph
2010-09-19 14:07           ` Lars Magne Ingebrigtsen
2010-09-19 18:00             ` Chad Brown
2010-09-19 18:21               ` Wojciech Meyer
2010-09-19 18:24                 ` Lars Magne Ingebrigtsen
2010-09-19 20:06                   ` Drew Adams [this message]
2010-09-19 20:37                     ` Should C-x C-x activate the region? [was: C-d deleting region considered harmful] David Reitter
2010-09-21  0:55                       ` Richard Stallman
2010-09-20  1:21                   ` C-d deleting region considered harmful Miles Bader
2010-09-20  6:59                     ` David Kastrup
2010-09-20 13:43                       ` Drew Adams
2010-09-20 16:02                       ` Miles Bader
2010-09-20  7:12                     ` Lars Magne Ingebrigtsen
2010-09-20  7:20                       ` David Kastrup
2010-09-20 16:34                     ` Chad Brown
2010-09-20 22:09                       ` C-x C-x (was: C-d deleting region considered harmful) Stefan Monnier
2010-09-20 22:46                         ` Chad Brown
2010-09-21  0:17                         ` C-x C-x Chong Yidong
2010-09-21 20:52                           ` Johan Bockgård
2010-09-21  0:28                         ` C-x C-x (was: C-d deleting region considered harmful) Andrew W. Nosenko
2010-09-21  1:06                           ` Andrew W. Nosenko
2010-09-21  7:49                           ` C-x C-x David Kastrup
2010-09-21  9:22                             ` Andrew W. Nosenko
2010-09-21  9:40                               ` David Kastrup
2010-09-24 23:59                                 ` Andrew W. Nosenko
2010-09-21  7:25                         ` C-x C-x (was: C-d deleting region considered harmful) Thierry Volpiatto
2010-09-21  1:03                       ` C-d deleting region considered harmful Miles Bader
2010-09-21 19:12                         ` Chad Brown
2010-09-19 18:59               ` Eli Zaretskii
2010-09-19 19:14               ` Alan Mackenzie
2010-09-19 21:27               ` Sebastian Rose
2010-09-19 14:12           ` Eli Zaretskii
2010-09-19 21:11             ` Christoph
2010-09-21  6:29           ` Stephen J. Turnbull
2010-09-21  8:04             ` David Kastrup
2010-09-21  8:23             ` Leo
2010-09-21  8:52               ` Deniz Dogan
2010-09-21  9:20                 ` Leo
2010-09-21  9:56                 ` Stephen J. Turnbull
2010-09-18 20:23     ` Christoph
2010-09-19  6:28       ` David Kastrup
2010-09-19 12:40         ` Drew Adams
2010-09-19 13:38           ` Christoph
2010-09-19 14:06           ` Eli Zaretskii
2010-09-19 19:18             ` David Kastrup
2010-09-19 19:58               ` Eli Zaretskii
2010-09-22  9:31                 ` Eli Zaretskii
2010-09-19 13:55       ` Sebastian Rose
2010-09-19 14:23         ` Christoph
2010-09-18 18:44   ` Drew Adams
2010-09-19  1:05 ` Richard Stallman

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=100157F1852148F2A192F00F49398690@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.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.