all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Christoph <cschol2112@googlemail.com>
Cc: drew.adams@oracle.com, emacs-devel@gnu.org
Subject: Re: C-d deleting region considered harmful
Date: Sat, 18 Sep 2010 22:22:10 +0200	[thread overview]
Message-ID: <87ocbudcp9.fsf@gmx.de> (raw)
In-Reply-To: <4C94ED16.8010100@gmail.com> (Christoph's message of "Sat, 18 Sep 2010 10:47:18 -0600")

Christoph <cschol2112@googlemail.com> writes:
> On 9/18/2010 9:05 AM, Drew Adams wrote:
>
>> No.  Both<delete>  and C-d, whether mapped together or not, should do what they
>> have always done in Emacs: delete the next char. Whether the region is active or
>> not.
>
> As for C-d and its command delete-forward-char, the documentation states:
>
> To disable this, set `delete-active-region' to nil.
>
> Imho, the default behavior is more consistent than the old behavior. C-d 
> without an active region deletes the character, with an active region deletes
> the region. Makes sense to me.

Consistent with what???

The old behaviour was _clever_ !



Imagine you have created an active region. Once you have done that, you
need to be really carefull how to proceed (slow down).



If you now decide to keep the region, you cannot go on with the next
natural editing command.  Instead, you must deactivate the region first,
or the text is gone (not for good, but see below).  (extra key press,
extra slot for remembering the region => slow down)

In those oh soo good "normal" applications you want Emacs to be
consistent with, any editing command will now replace the region.  Wich
is the course Emacs is going, obviously.  C-d does this already and the
rest will follow, since the newbies seem to tell Emacs what to do (to
find new users... bad intention --- this will make Emacs more "normal",
not better).

Note, that deliting just one character is a simple editing command, just
as adding one character.

Any of these simple editing commands can delete a whole bunch of text in
"normal" applications.  You might be used to that behaviour because it's
"normal", but I'm sure it caused you some headache from time to time :)


In Emacs, if you decide to delete the region, it's just pressing a `w'
instead of a `d' (or any other simple editing command).

In neither case, the region will be lost --- in Emacs.

Simple, isn't it?



Now imagine, for some reason, you have deleted the region.  A few
minutes later you recognize, it was a mistake.

Now, in "normal" apps, you press "UNDO" many many times, until you get
your region back.  You lose all the work done from deleting the region
onwards until this point in time.  This slows down editing again.  This
is stupid.  This is anoying even.


That's why we need to distinguish between commands that act on region
(e.g. `C-w') and ALL other simple editing commands, including `C-d'.




As most people here, I rarely use backspace or delete.  They're awkward
to type.  But defining them differently is a surprise, true enough.
This means the decision made was a mistake.





Sebastian



  parent reply	other threads:[~2010-09-18 20:22 UTC|newest]

Thread overview: 133+ 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 [this message]
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                   ` Should C-x C-x activate the region? [was: C-d deleting region considered harmful] Drew Adams
2010-09-19 20:37                     ` 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
  -- strict thread matches above, loose matches on Subject: below --
2010-09-18 11:55 dhruva
2010-09-18 14:22 ` Miles Bader
2010-09-18 15:18 ` Drew Adams
2010-09-18 17:48 ` David Kastrup
2010-09-18 19:24   ` Drew Adams

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=87ocbudcp9.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=cschol2112@googlemail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@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.