From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>
Cc: rpluim@gmail.com, emacs-devel@gnu.org
Subject: Re: Question Kill-ring modify last entry.
Date: Mon, 29 Jul 2019 21:42:01 +0300 [thread overview]
Message-ID: <83ef28k7ie.fsf@gnu.org> (raw)
In-Reply-To: <20190729181043.3gycaavyeyokgevj@Ergus> (message from Ergus on Mon, 29 Jul 2019 20:10:43 +0200)
> Date: Mon, 29 Jul 2019 20:10:43 +0200
> From: Ergus <spacibba@aol.com>
> Cc: emacs-devel@gnu.org
>
> I have already seen kill-new. I was just preventing myself to reinvent
> the wheel in case there were something else already there.
>
> I was looking for something like `append-next-kill` that I could use for
> `copy-region-as-kill` (or similar), but for replace instead of
> appending and acting on regions instead of passing the string already
> manipulated.
append-next-kill just arranges the next kill to call kill-new with the
REPLACE argument non-nil, that's all. There's no magic there. the
easiest way to mimic what append-next-kill does in your commands is to
call kill-new with that argument non-nil.
You asked about the "canonical" way of doing this; that way is to call
kill-new.
prev parent reply other threads:[~2019-07-29 18:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-28 21:45 Question Kill-ring modify last entry Ergus
2019-07-29 14:18 ` Eli Zaretskii
2019-07-29 14:43 ` Robert Pluim
2019-07-29 18:10 ` Ergus
2019-07-29 18:42 ` Eli Zaretskii [this message]
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=83ef28k7ie.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rpluim@gmail.com \
--cc=spacibba@aol.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).