all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: ndame <laszlomail@protonmail.com>, 52543@debbugs.gnu.org
Subject: bug#52543: Add option to eliminate all duplications from the kill ring
Date: Mon, 20 Dec 2021 11:01:04 +0100	[thread overview]
Message-ID: <87ee67ppcv.fsf@gnus.org> (raw)
In-Reply-To: <86o85ccrcm.fsf@mail.linkov.net> (Juri Linkov's message of "Sun,  19 Dec 2021 21:44:09 +0200")

Juri Linkov <juri@linkov.net> writes:

> But it would be strange to modify kill-ring in the transform function.
> So maybe kill-do-not-save-duplicates should support a special choice
> 'delete-duplicates' after all.

I think some people wouldn't want to remove the duplicates (and add to
the front), and some wouldn't want to add at all (I think that was the
request in the other bug report?), and some want to take text properties
into account, and some don't, so I think leaving this to the user and
the transform function is the right solution.  But we don't have to make
any pre-made functions for this.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-12-20 10:01 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
2021-12-19 18:05     ` Juri Linkov
2021-12-19 19:44     ` Juri Linkov
2021-12-20 10:01       ` Lars Ingebrigtsen [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ee67ppcv.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=52543@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --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.