unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Make <delete> save the deleted text into the killing ring
Date: Wed, 14 Dec 2022 20:58:59 +0100	[thread overview]
Message-ID: <87bko5sqnw.fsf@dataswamp.org> (raw)
In-Reply-To: 87k02tix02.fsf@johnhaman.org

John Haman wrote:

> The function `delete-forward-char' takes an optional
> argument, killflag. Maybe OP could use something like
>
> (define-key global-map (kbd "<delete>") #'(lambda ()
>                                             (interactive)
>                                             (delete-forward-char 1 t)))

Yes, but then you brake the interface, in particular the
N argument which is now hardcoded to 1, so it's better with
a wrapper function which offers a transparent interface - i.e.
the same, except it defaults to t instead for KILLFLAG ...

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2022-12-14 19:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-13 11:12 Make <delete> save the deleted text into the killing ring aitor
2022-12-14 11:23 ` aitor
2022-12-14 17:44   ` Emanuel Berg
2022-12-14 19:52     ` John Haman
2022-12-14 19:58       ` Emanuel Berg [this message]
2022-12-14 20:17 ` Gregory Heytings
2022-12-14 20:43   ` Emanuel Berg
2022-12-15  8:40   ` aitor
2022-12-15  8:48     ` Emanuel Berg
2022-12-15  6:14 ` Eli Zaretskii
2022-12-15  6:15   ` Emanuel Berg
2022-12-15  8:31   ` aitor
2022-12-15  9:04     ` Eli Zaretskii
2022-12-15 10:18       ` Thibaut Verron
2022-12-15 10:24         ` Gregory Heytings
2022-12-15 10:46           ` Emanuel Berg

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=87bko5sqnw.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@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.
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).