From unknown Sun Jun 22 00:32:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52543 <52543@debbugs.gnu.org> To: bug#52543 <52543@debbugs.gnu.org> Subject: Status: Add option to eliminate all duplications from the kill ring Reply-To: bug#52543 <52543@debbugs.gnu.org> Date: Sun, 22 Jun 2025 07:32:18 +0000 retitle 52543 Add option to eliminate all duplications from the kill ring reassign 52543 emacs submitter 52543 ndame severity 52543 normal tag 52543 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 16 04:49:57 2021 Received: (at submit) by debbugs.gnu.org; 16 Dec 2021 09:49:57 +0000 Received: from localhost ([127.0.0.1]:34613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxnOf-000742-B5 for submit@debbugs.gnu.org; Thu, 16 Dec 2021 04:49:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:43996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxnOc-00073t-Lv for submit@debbugs.gnu.org; Thu, 16 Dec 2021 04:49:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxnOb-0004Yi-FP for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 04:49:54 -0500 Received: from mail-4319.protonmail.ch ([185.70.43.19]:12053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxnOZ-0002Sw-B9 for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 04:49:53 -0500 Date: Thu, 16 Dec 2021 09:49:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1639648187; bh=n8I7YNgT+eTTim0jxP665L0xEP7RlOrRPqBNLb/zjDc=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=XTJcG3ok6rW5igBug4uYMJ1e5abLic8wwpxVFDZX9SgRpDHhA7B8ER819DL2rr9Rc qUcr7Me2ZwO4ZUxR+mvIuepqRSWqkUmK3h9RX+c8YxzNZrYau9HKwLJIajdcwTvq8m 3Af4qdsvV1IeRBt48aeCfwAhPwB54aue+sN1eo0bCChZqpjgngSl32QusVBf/xA0hs jkLTAsbD3S92uD7eAJy4YOgl4bgGlqVsWrJph2qzwyTfPJ/RyKhDweWdcOgEZ2hP4S etvNo1vahUTF0oaG5H8+vwlYcYHj/Y9zx9hPJ1o2jI30RZOtL5l4wqz6KInk1Fgpw0 7fN//xqEuhcBA== To: "Bug reports for GNU Emacs, the Swiss army knife of text editors" From: ndame Subject: Add option to eliminate all duplications from the kill ring Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.43.19; envelope-from=laszlomail@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ndame Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) There is=C2=A0 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 07:04:53 2021 Received: (at 52543) by debbugs.gnu.org; 19 Dec 2021 12:04:53 +0000 Received: from localhost ([127.0.0.1]:45025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myuvs-0005as-WF for submit@debbugs.gnu.org; Sun, 19 Dec 2021 07:04:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myuvr-0005af-NM for 52543@debbugs.gnu.org; Sun, 19 Dec 2021 07:04:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CUdD0g9fSUJLUBWH2xsx7nq4KUxntYsmk4lW1EvwXWQ=; b=frR45F+N52Rm7KvB1+Hwsxcpm1 FEmCHfI+zJmKdIlPQN8EKLTeofzmXm8Ehsj1MFTCDItcTJodlJLhw9zeFAQ0ZA/cSmVjBohjwhtAt V6lTSadXCNYaObddxBrUmyrlFWnGukV1mmap3F/iYWvvJZq2/3/fjNEf1ga2dCjNXmRo=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1myuvj-0003Pq-G1; Sun, 19 Dec 2021 13:04:45 +0100 From: Lars Ingebrigtsen To: ndame Subject: Re: bug#52543: Add option to eliminate all duplications from the kill ring References: X-Now-Playing: John Martyn's _Bless the Weather_: "Go Easy (Take 1)" Date: Sun, 19 Dec 2021 13:04:42 +0100 In-Reply-To: (ndame's message of "Thu, 16 Dec 2021 09:49:45 +0000") Message-ID: <87zgowu7fp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: ndame writes: > 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 betw [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52543 Cc: 52543@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) ndame writes: > There is=C2=A0 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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 07:05:02 2021 Received: (at control) by debbugs.gnu.org; 19 Dec 2021 12:05:02 +0000 Received: from localhost ([127.0.0.1]:45028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myuvy-0005bC-7Z for submit@debbugs.gnu.org; Sun, 19 Dec 2021 07:05:02 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myuvw-0005ak-Gz for control@debbugs.gnu.org; Sun, 19 Dec 2021 07:04:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Jufwgq+OcKSRSVhkNUzG5UgChg2H7FYwQRWGH7gErto=; b=p8Su3WIcZC3j5ZdgNhcVIqMMmv XOHbRscUqCbKNHzXQuguQfVDymgYvZhN03ufHss0WM+LE2Af0K8IQ3pCAcCrJJcBm6lcX3EheWDG2 Cy+4HveDlkxBSwIWl5Hql4wxB8bc7DWN2pspUoCzSewepFfcKLge0Rj4btOyJk8APaB4=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1myuvo-0003Px-QC for control@debbugs.gnu.org; Sun, 19 Dec 2021 13:04:50 +0100 Date: Sun, 19 Dec 2021 13:04:48 +0100 Message-Id: <87y24gu7fj.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52543 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 52543 wontfix close 52543 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 52543 wontfix close 52543 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 12:20:16 2021 Received: (at 52543) by debbugs.gnu.org; 19 Dec 2021 17:20:16 +0000 Received: from localhost ([127.0.0.1]:47946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myzr6-00079j-6u for submit@debbugs.gnu.org; Sun, 19 Dec 2021 12:20:16 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:43759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myzr4-00079D-QZ for 52543@debbugs.gnu.org; Sun, 19 Dec 2021 12:20:15 -0500 Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 28DDD100002; Sun, 19 Dec 2021 17:20:06 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#52543: Add option to eliminate all duplications from the kill ring Organization: LINKOV.NET References: <87zgowu7fp.fsf@gnus.org> Date: Sun, 19 Dec 2021 19:03:49 +0200 In-Reply-To: <87zgowu7fp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Dec 2021 13:04:42 +0100") Message-ID: <86pmpskb6q.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52543 Cc: ndame , 52543@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 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))) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 13:08:50 2021 Received: (at 52543) by debbugs.gnu.org; 19 Dec 2021 18:08:51 +0000 Received: from localhost ([127.0.0.1]:48080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz0c6-0002Cm-OS for submit@debbugs.gnu.org; Sun, 19 Dec 2021 13:08:50 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:52319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz0c4-0002CV-4d for 52543@debbugs.gnu.org; Sun, 19 Dec 2021 13:08:49 -0500 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9FEF2E0005; Sun, 19 Dec 2021 18:08:40 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#52543: Add option to eliminate all duplications from the kill ring In-Reply-To: <86pmpskb6q.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Dec 2021 19:03:49 +0200") Organization: LINKOV.NET References: <87zgowu7fp.fsf@gnus.org> <86pmpskb6q.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Sun, 19 Dec 2021 20:05:00 +0200 Message-ID: <86mtkweaib.fsf@mail.linkov.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52543 Cc: ndame , 52543@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>> 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))) Here is the same as a choice to make it easier for everyone to satisfy this frequent need - like history-delete-duplicates and comint-input-ignoredups in Emacs, and ignoredups in shell. If this is ok, more documentation could be added: diff --git a/lisp/simple.el b/lisp/simple.el index 959e7ea94c..466bc9c12d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -5118,6 +5118,8 @@ kill-transform-function be put on the kill ring). It should return a string or nil. If the latter, the string is not put on the kill ring." :type '(choice (const :tag "No transform" nil) + (const :tag "Ignore duplicates" + (lambda (s) (unless (member s kill-ring) s))) function) :group 'killing :version "28.1") -- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 14:45:52 2021 Received: (at 52543) by debbugs.gnu.org; 19 Dec 2021 19:45:53 +0000 Received: from localhost ([127.0.0.1]:48206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz280-0004dw-MU for submit@debbugs.gnu.org; Sun, 19 Dec 2021 14:45:52 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:39603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz27u-0004dd-7V for 52543@debbugs.gnu.org; Sun, 19 Dec 2021 14:45:51 -0500 Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 07531C0002; Sun, 19 Dec 2021 19:45:37 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#52543: Add option to eliminate all duplications from the kill ring Organization: LINKOV.NET References: <87zgowu7fp.fsf@gnus.org> <86pmpskb6q.fsf@mail.linkov.net> Date: Sun, 19 Dec 2021 21:44:09 +0200 In-Reply-To: <86pmpskb6q.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Dec 2021 19:03:49 +0200") Message-ID: <86o85ccrcm.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52543 Cc: ndame , 52543@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>> 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))) Sorry, this was wrong. It should delete all previous strings, and add a new to the top of the kill-ring: (setq kill-transform-function (lambda (s) (setq kill-ring (delete s kill-ring)) s)) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 20 23:09:07 2021 Received: (at 52543) by debbugs.gnu.org; 21 Dec 2021 04:09:07 +0000 Received: from localhost ([127.0.0.1]:51985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzWSZ-0000TN-8K for submit@debbugs.gnu.org; Mon, 20 Dec 2021 23:09:07 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzWSW-0000SG-Ud for 52543@debbugs.gnu.org; Mon, 20 Dec 2021 23:09:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Resent-Message-ID:Resent-Date:Resent-From: Resent-To:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Sender:Resent-Cc:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=232HlFTEkX6fj14y/W+HVfzAyqrspYRzk56MMBhLbLA=; b=tHWbOFjFDUsukIulRtbeADduMa yQXjH25w7z5gTOJDOIlaxfQ0UvgpX5CYcQGQ5TsSnzodqGlaGNSanJ1hWZxkQ90LpMk1kLgkWt01/ XJ+6Aldq9N4o9UiamKZOx6+E9qxIxRTRGkAJncYIa120LzJJwsgAupbEhZKFf3Qnwp2Q=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzWSO-0002nN-M6 for 52543@debbugs.gnu.org; Tue, 21 Dec 2021 05:08:59 +0100 Resent-X-Now-Playing: Heidi Berry's _Love_: "Gloria" Resent-To: 52543@debbugs.gnu.org Resent-From: Lars Ingebrigtsen Resent-Date: Tue, 21 Dec 2021 05:08:56 +0100 Resent-Message-ID: <87mtkulhuv.fsf@gnus.org> X-From-Line: nobody Mon Dec 20 11:01:08 2021 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#52543: Add option to eliminate all duplications from the kill ring References: <87zgowu7fp.fsf@gnus.org> <86pmpskb6q.fsf@mail.linkov.net> <86o85ccrcm.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEWOoVlMZDn///9k 6/PIAAAAAWJLR0QCZgt8ZAAAAAd0SU1FB+UMFAkxCrmP2HsAAAFESURBVCjPRVFBDuQwCDNSuKdS +A+RmjuR4P9fWdMd7ebSOAZsXIBnYMx4+yaJwFCYF1xLHJgVFkBV34HFqvhAQJdpg5KA8N1gBLvu hChbiE7VADzZTxJKPpsi5lTJU2BJ1fW20c+ZJBKmG/1uFbRDvUFRspcjEl7q99btVpSr63cl6DW0 fiBi/gf3vp/L5iGie44pY9LBddHRJw73L31YMrjsYAZ7TpGXlYKzG4BgDepsVfEnpy+cDorlPInn S7LjqPjikr+aDHH/qrT4fhw/N9zH//UUZt7AuxSHJcnUOhjoFrIJPQd4juEpH0+q49HLELGYVFXr VI6VztC6hy0fEebajE2qs06Qiz1ZVLj0PXzFsqAx/tNB49PcMKzLqMjkocYPg5DqZV6UTs4+QiOL FsM5zSlEvz73sAeRjEq5txqTnbA/cGxYvOKgEBwAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTIt MjBUMDk6NDk6MTArMDA6MDDZqP18AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTEyLTIwVDA5OjQ5 OjEwKzAwOjAwqPVFwAAAAABJRU5ErkJggg== X-Now-Playing: Espers's _Strange Folk_: "Flowery Noontide" Date: Mon, 20 Dec 2021 11:01:04 +0100 In-Reply-To: <86o85ccrcm.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Dec 2021 21:44:09 +0200") Message-ID: <87ee67ppcv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Lines: 16 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52543 Cc: ndame , 52543@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov 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 From unknown Sun Jun 22 00:32:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Jan 2022 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator