unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Another Emacs incompatibilty
Date: Tue, 25 Aug 2020 01:14:21 +0200	[thread overview]
Message-ID: <87o8mzmyb6.fsf@ebih.ebihd> (raw)
In-Reply-To: CAF+xKT7xK5-uOS=g+GyeG-z=WxeyUqWdHnCtyTutVoWi=8T_3g@mail.gmail.com

Alan Davis wrote:

> A mere two minutes before reading this thread,
> while writing an email in Gmail, I had maneuvered
> to select and replace a short piece of text by
> a manipulation parallel with delete-selected-text
> (if I understand correctly), though I had no idea
> about this existing in Emacs. At this time, like at
> other times when dealing with crippled input
> systems on popular software, my thoughts turned to
> Emacs. It occurred to me that this was not
> a perfect solution, unless the deleted piece is
> stashed somewhere for reuse.
>
> A good example of an Emacs sequence that is more
> nimble than other software I have encountered is
> swapping two adjacent characters, or words,
> a procedure I use often. I confess I have not
> bothered to master transcient mark mode, as opposed
> to not using it; but it seems to be so logical,
> however, that that alternative seems
> completely illogical.
>
> Emacs gives better control over my typing.
> The developers of the dreaded GUI editors seem not
> to care about this. The lack of
> delete-selection-mode (d-s-m) has not been on my
> radar. But I think in some cases it does happen.
> I have not decided whether to take advantage of
> this new feature.
>
> Perhaps more sophisticated manipulations can be
> implemented through a macro.

??????

> Is it currently possible, if d-s-m is active, to
> easily retrieve the deleted/replaced item?

Yes, it should be possible with the help of
`delete-selection-helper':

  Delete selection according to TYPE
  [...]
  ‘kill’
     ‘kill-region’ is used on the selection, rather
     than ‘delete-region’. (Text selected with the
     mouse will typically be yankable anyhow).

but how that works I don't know, putting it like this


  (add-hook 'delete-selection-pre-hook
            '(delete-selection-helper "kill") )

doesn't seem to do anything to that end.

One would think an easier way to provide
a configuration interface would just be to have
a variable. (The implemented way is more
powerful/versatile tho, if one can only figure out
how to use it...)

Also, I _still_ don't understand the use case?
You are used to this behavior from other editors?
Or you can delete and insert with a single stroke, so
it is faster? That's it? Or is there something else?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




  parent reply	other threads:[~2020-08-24 23:14 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-16 20:57 Another Emacs incompatibilty Torbjörn Granlund
2020-08-16 21:17 ` Stefan Monnier
2020-08-16 23:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17  8:12 ` On the rate of change [was: Another Emacs incompatibilty] tomas
2020-08-17 14:21   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17 15:20     ` tomas
2020-08-17 17:44       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17 15:14 ` Another Emacs incompatibilty Torbjörn Granlund
2020-08-17 15:54   ` Robert Pluim
2020-08-17 16:08   ` Eli Zaretskii
2020-08-17 20:16     ` Torbjörn Granlund
2020-08-17 20:42       ` Stefan Monnier
2020-08-17 21:22         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17 22:00         ` Gregory Heytings via Users list for the GNU Emacs text editor
2020-08-17 22:18         ` Eric Abrahamsen
2020-08-17 23:00           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-18  0:25             ` Eric Abrahamsen
2020-08-18  4:16               ` Stefan Monnier
2020-08-18  4:47               ` Eli Zaretskii
2020-08-18  5:27                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-18  5:36                   ` Eli Zaretskii
2020-08-23 20:10                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-24  6:43                       ` Alan Davis
2020-08-24  6:55                         ` Eli Zaretskii
2020-08-24 23:21                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-24 14:31                         ` Drew Adams
2020-08-24 23:24                           ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-25  0:53                             ` Alan Davis
2020-08-25  4:09                             ` Drew Adams
2020-08-25  4:14                               ` Drew Adams
2020-08-25  4:30                               ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-25  5:04                                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-25  5:46                                 ` Drew Adams
2020-08-25  6:07                                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-25  5:51                                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-24 15:31                         ` Stefan Monnier
2020-08-24 23:14                         ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2020-08-18 15:47               ` Drew Adams
2020-08-18 16:45                 ` Eric Abrahamsen
2020-08-18 16:52                   ` Drew Adams
2020-08-18 17:50                     ` Eric Abrahamsen
2020-08-18 17:10                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17 16:31   ` Gregory Heytings via Users list for the GNU Emacs text editor
2020-08-17 16:49     ` Perry Smith
2020-08-17 16:54       ` Gregory Heytings via Users list for the GNU Emacs text editor
2020-08-17 17:22         ` Eli Zaretskii
2020-08-17 17:28         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-17 17:11       ` Eli Zaretskii
2020-08-17 17:16   ` Emanuel Berg via Users list for the GNU Emacs text editor

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=87o8mzmyb6.fsf@ebih.ebihd \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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.
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).