unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: draft for DEL key poll
Date: Wed, 28 Sep 2011 07:54:30 +0000	[thread overview]
Message-ID: <20110928075430.GA2337@acm.acm> (raw)
In-Reply-To: <87r532n6wr.fsf@stupidchicken.com>

On Mon, Sep 26, 2011 at 08:52:20PM -0400, Chong Yidong wrote:
> Richard Stallman <rms@gnu.org> writes:

> > In Emacs 24, now in pretest, a change is being considered for DEL
> > (often the Backspace key) and the Delete function key.  When there is
> > an active region, they would delete the region instead of just one
> > character.  This is enabled by default in the current pretest, so
> > building and using the pretest is a way to test it.

> This description fails to explain the underlying logic behind the
> change.

> If an active region is made with the mouse, and with shift-selection,
> the DEL key deletes it.  This behavior is non-negotiable as a default,
> as it is the standard behavior of graphical applications on modern GUI
> platforms and there is no good reason for Emacs to violate it.

There are several good reasons, otherwise Richard wouldn't be initiating
a poll about it.

I sincerely hope we won't be introducing too many more behaviours which
are "standard" in modern GUIs.

> Some Emacs commands perform a certain operation on the region when it is
> active.  In general, this "act on region" behavior does not draw a
> distinction between a region made with the mouse (or shift-selection)
> and a region made "normally" (e.g. by C-SPC followed by point motion).
> In previous Emacs releases, a special exception was made for the DEL and
> delete keys.  This exception has now been dropped.

I cannot let you get away with this epistemological conflation.  These
other commands do not act _ON_ the region.  They act _IN_ the region.
I.e., they do their normal thing in a portion of the buffer.  You've
utterly changed the meaning of `delete-character-forward', making it act
ON a region rather than on a character.  The behaviour of DEL and delete
was not previously an exception - they did their normal thing at the
boundary of the region.

> Anyone who argues that DEL ought not to delete a "normal" active region
> should provide a convincing explanation of why DEL should be treated
> differently from other Emacs commands that act on active regions.

See above.  DEL should keep its normal meaning in the presence of a
region, just like most other commands do.

As a matter of interest, in the proposed default configuration, how does
one delete a single character at a boundary of an "active" region?

-- 
Alan Mackenzie (Nuremberg, Germany).



  parent reply	other threads:[~2011-09-28  7:54 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26  3:57 Emacs pretest 24.0.90 Chong Yidong
2011-09-26  4:46 ` Leo
2011-09-26 18:43   ` Chong Yidong
2011-09-26 23:21     ` Leo
2011-09-26  7:43 ` Eli Zaretskii
2011-09-26  8:23   ` Glenn Morris
2011-09-26 23:05   ` Juanma Barranquero
2011-09-26 11:12 ` Neal Becker
2011-09-26 11:36   ` Eli Zaretskii
2011-10-13  4:50     ` Kevin Rodgers
2011-10-13  8:58       ` Eli Zaretskii
2011-09-26 16:53 ` Lars Magne Ingebrigtsen
2011-09-26 17:14   ` Eli Zaretskii
2011-09-26 17:39     ` Lars Magne Ingebrigtsen
2011-09-26 18:50       ` Chong Yidong
2011-09-26 17:07 ` Bastien
2011-09-26 17:26 ` Rasmus
2011-09-26 21:12 ` draft for DEL key poll Richard Stallman
2011-09-26 21:38   ` Karl Fogel
2011-09-26 22:02     ` Kim F. Storm
2011-09-27  6:30       ` Stefan Reichör
2011-09-27 16:34       ` Richard Stallman
2011-09-28 22:48         ` Kim F. Storm
2011-09-29  2:53           ` Stefan Monnier
2011-09-30  3:42             ` Richard Stallman
2011-09-27 16:34     ` Richard Stallman
2011-09-26 22:38   ` disable delete-selection-mode? (was: Re: draft for DEL key poll) chad
2011-09-26 23:10     ` disable delete-selection-mode? Glenn Morris
2011-09-27 16:34     ` disable delete-selection-mode? (was: Re: draft for DEL key poll) Richard Stallman
2011-09-27  0:08   ` draft for DEL key poll Juri Linkov
2011-09-27 16:34     ` Richard Stallman
2011-09-27  0:52   ` Chong Yidong
2011-09-27 16:34     ` Richard Stallman
2011-09-27 18:49     ` James Cloos
2011-09-28  7:54     ` Alan Mackenzie [this message]
2011-09-28  8:26       ` Tassilo Horn
2011-09-28  9:53         ` Lennart Borgman
2011-09-28 17:44       ` chad
2011-09-29 10:49         ` Richard Stallman
2011-09-29 17:56           ` chad
2011-09-29 23:17             ` Andrew W. Nosenko
2011-09-30  0:04               ` chad
2011-09-30 21:03             ` Richard Stallman
2011-09-30 21:22               ` Eli Zaretskii
2011-10-01  6:03                 ` Andreas Röhler
2011-09-27  0:59   ` Chong Yidong
2011-09-27 16:34     ` Richard Stallman
2011-09-26 23:00 ` Emacs pretest 24.0.90 Ota, Takaaki
2011-09-26 23:58   ` Glenn Morris
2011-09-27  0:30     ` Ota, Takaaki
2011-10-01  0:22 ` Drew Adams
2011-10-03 16:11   ` Drew Adams
2011-10-03 22:56     ` Christoph Scholtes
2011-10-03 23:42       ` Drew Adams
2011-10-03 23:43         ` Christoph Scholtes
2011-10-12 10:18     ` Dani Moncayo
2011-10-12 10:25       ` Eli Zaretskii
2011-10-12 11:28         ` Dani Moncayo
2011-10-12 11:37           ` Juanma Barranquero
2011-10-12 12:07             ` Dani Moncayo
2011-10-12 12:18               ` Juanma Barranquero
2011-10-12 12:27                 ` Dani Moncayo
2011-10-12 12:29                   ` Juanma Barranquero
2011-10-12 12:31                     ` Dani Moncayo
2011-10-12 13:19                     ` Eli Zaretskii
2011-10-12 19:46                       ` Juanma Barranquero
2011-10-12 12:20               ` Eli Zaretskii
2011-10-12 12:46                 ` Stefan Monnier
2011-10-12 13:16                   ` Eli Zaretskii
2011-10-12 12:17           ` Eli Zaretskii
2011-10-12 12:52         ` Christoph Scholtes
2011-10-12 13:20           ` Eli Zaretskii
2011-10-12 14:21         ` Dave Abrahams
2011-10-12 14:48           ` Eli Zaretskii
2011-10-12 11:27       ` Dani Moncayo
2011-10-12 13:48       ` Drew Adams
2011-10-12 14:02         ` Dani Moncayo
2011-10-13  1:54         ` Christoph Scholtes
2011-10-13  3:33           ` Stefan Monnier
2011-10-13  4:04             ` Christoph Scholtes
2011-10-13 16:15             ` Chong Yidong
2011-10-13 22:54               ` Christoph Scholtes
2011-10-15  1:32                 ` Christoph Scholtes
2011-10-13 14:17           ` Drew Adams
2011-10-18 17:15             ` Drew Adams
2011-10-18 23:34               ` Christoph Scholtes
2011-10-18 23:55                 ` Drew Adams
2011-10-13 14:28           ` Dani Moncayo
2011-10-13 14:49             ` Juanma Barranquero
2011-10-07 19:25 ` nabil-82
2011-10-08  6:20   ` Eli Zaretskii
2011-10-08 16:38     ` nabil-82
2011-10-09  4:00       ` Eli Zaretskii
2011-10-09 13:02         ` nabil-82
2011-10-09 17:04           ` Eli Zaretskii
2011-10-11  1:39       ` Kenichi Handa
2011-10-12 13:04         ` nabil-82
2011-10-12 15:54           ` Eli Zaretskii
2011-10-12 16:58             ` nabil-82
2011-10-13  8:55               ` Eli Zaretskii
2011-10-08 21:01     ` Glenn Morris

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20110928075430.GA2337@acm.acm \
    --to=acm@muc.de \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).