From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#29323: kill-do-not-save-duplicate, FR Date: Sat, 18 Nov 2017 20:06:54 +0100 Message-ID: <4555a640-d432-eaad-954d-2a91078e2396@easy-emacs.de> References: <389775cc-0e7b-ec2b-37d3-176516fc0786@easy-emacs.de> <9e1d4bed-fbe9-463a-afdd-031f3b9cb041@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511031016 1994 195.159.176.226 (18 Nov 2017 18:50:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2017 18:50:16 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 To: Drew Adams , 29323@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 18 19:50:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG8Bq-0008Lm-LH for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 19:50:06 +0100 Original-Received: from localhost ([::1]:50883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG8Bx-0006O1-W5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Nov 2017 13:50:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG8Br-0006Nv-A0 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 13:50:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG8Bm-00066q-6p for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 13:50:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eG8Bm-00066f-3M for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 13:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eG8Bl-0007ay-PX for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2017 13:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2017 18:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29323-submit@debbugs.gnu.org id=B29323.151103094529131 (code B ref 29323); Sat, 18 Nov 2017 18:50:01 +0000 Original-Received: (at 29323) by debbugs.gnu.org; 18 Nov 2017 18:49:05 +0000 Original-Received: from localhost ([127.0.0.1]:46559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG8Aq-0007Zm-OD for submit@debbugs.gnu.org; Sat, 18 Nov 2017 13:49:04 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.187]:53338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eG8Ao-0007ZH-6M for 29323@debbugs.gnu.org; Sat, 18 Nov 2017 13:49:02 -0500 Original-Received: from [192.168.178.35] ([77.12.43.76]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MOG72-1eCqud01TA-005XAD; Sat, 18 Nov 2017 19:48:51 +0100 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+QEQGmg9VbuLs94hq2I 7MHMtk4V14pFZnGwbpsvKsBQrubbMEd52a0LIuK1piro+ttlLhxkE7ibPhg= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140065 Archived-At: On 16.11.2017 23:34, Drew Adams wrote: >> Currently variable kill-do-not-save-duplicates checks only the (car >> kill-ring) as docu explains: Do not add a new string to ‘kill-ring’ >> if it duplicates the last one. The comparison is done using >> ‘equal-including-properties’. AFAIU it would be trivial replace this >> check by a call of "member", thus checking > the whole kill-ring. > Why do that? Why not just prevent duplicates in the first place, which > is what the option currently does? If you for some reason get > duplicate entries somehow, in spite of using the option to prevent > them, you can always remove them. I don't understand how that would be > something that would happen normally. What is the problem that this > would try to solve/prevent? --- Currently not a check for duplicates is implemented, but for a repeat. When having alternating strings to copy, they go into the kill-ring one after one. That way it ended up having just two strings in the kill-ring, and previous content lost. BTW implementing it would be a way more complicated as thought because of text properties. > BTW - it's a pain to remove all of the formatting of your mails to > such lists. Hmm, don't you see a formatting when sending. > Please consider using plain text, or at a minimum not using a colored > (i.e. non-white) background. Switched on "Readers Default Colors", which should help. > Just a request or suggestion.