unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: luangruo@yahoo.com, err291@mail.usask.ca, 60646@debbugs.gnu.org,
	drew.adams@oracle.com
Subject: bug#60646: 28.2; delete-selection-mode
Date: Sat, 14 Jan 2023 14:34:19 +0200	[thread overview]
Message-ID: <83sfgd70s4.fsf@gnu.org> (raw)
In-Reply-To: <87sfgd8hb6.fsf@gmail.com> (message from Kévin Le Gouguec on Sat, 14 Jan 2023 12:51:57 +0100)

> Cc: luangruo@yahoo.com, err291@mail.usask.ca, drew.adams@oracle.com
> From: Kévin Le Gouguec <kevin.legouguec@gmail.com>
> Date: Sat, 14 Jan 2023 12:51:57 +0100
> 
> >> +1.  I've advocated the same for decades.
> >>
> >> This should have happened when we turned on
> >> `transient-mark-mode' by default.  And both
> >> of those default-behavior changes should
> >> really have happened long before that.
> >
> > I disagree, but we've had this argument before, so please just leave
> > things as they are.
> >
> > Thanks.
> 
> Did we ever go through the length of making the sort of poll we had for
> show-paren-mode?

I think this was discussed in the past, yes.

delete-selection-mode is problematic in that it introduces behavior
that is extremely surprising and annoying to those who are used to the
old-style GUI selections and the Emacs region.  Thus, enabling it by
default is out of the question; we've enabled transient-mark-mode as a
partial nod to those who like the delete-selection-mode style of
replacing text, but other than that, people who want that will have to
enable it manually for the observable future, because we cannot
possibly surprise our veteran users with such behavior.

>  Oh hey, well, (b) might not be off the table after all:
> 
>  > The _only_ problem I personally have with delete-selection-mode is
>  > that it also replaces the region created by the likes of "C-x C-x",
>  > something that "most software out there" does not and cannot do.  If
>  > we were to change delete-selection-mode to replace only highlighted
>  > text created by mouse selections or by shift-selections, I think we
>  > could then enable it by default without much resistance, because
>  > typing a character or DEL after explicitly selecting text is many
>  > orders of magnitude less probable to be a mistake than when we make
>  > the region active by other means.
>  — <83o9d5q1bi.fsf@gnu.org>

Note that the DEL part of the above already happens by default.





  reply	other threads:[~2023-01-14 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-08  1:31 bug#60646: 28.2; delete-selection-mode Redekopp, Eric
2023-01-08 16:34 ` Drew Adams
2023-01-14  1:15   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-14 11:51     ` Kévin Le Gouguec
2023-01-14 12:34       ` Eli Zaretskii [this message]
2023-09-05 21:33         ` Stefan Kangas
2023-01-15  9:25       ` Visuwesh

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=83sfgd70s4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60646@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=err291@mail.usask.ca \
    --cc=kevin.legouguec@gmail.com \
    --cc=luangruo@yahoo.com \
    /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).