From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ndame <laszlomail@protonmail.com>, 52543@debbugs.gnu.org
Subject: bug#52543: Add option to eliminate all duplications from the kill ring
Date: Sun, 19 Dec 2021 19:03:49 +0200 [thread overview]
Message-ID: <86pmpskb6q.fsf@mail.linkov.net> (raw)
In-Reply-To: <87zgowu7fp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Dec 2021 13:04:42 +0100")
>> There is kill-do-not-save-duplicates, but it deletes
>> only subsequent duplicates.
>>
>> There should be an other variable which prevents any duplicates
>> even if there are, say, 10 or 20 items between them.
>>
>> I expected kill-do-not-save-duplicates to do that, that variable
>> seems misnamed. It should be kill-do-not-save-subsequent-duplicates
>> instead.
>
> This has previously been discussed, and we decided to not alter how this
> works, because it'd be too surprising. (And there are options to filter
> the kill ring that users that want that can use.) So I'm closing this
> bug report.
Indeed:
(setq kill-transform-function (lambda (s) (unless (member s kill-ring) s)))
next prev parent reply other threads:[~2021-12-19 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-16 9:49 bug#52543: Add option to eliminate all duplications from the kill ring ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-19 12:04 ` Lars Ingebrigtsen
2021-12-19 17:03 ` Juri Linkov [this message]
2021-12-19 18:05 ` Juri Linkov
2021-12-19 19:44 ` Juri Linkov
2021-12-20 10:01 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86pmpskb6q.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=52543@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=laszlomail@protonmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.