From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#29323: kill-do-not-save-duplicate, FR Date: Mon, 11 Nov 2019 03:14:38 +0100 Message-ID: <875zjrrwfl.fsf@marxist.se> References: <389775cc-0e7b-ec2b-37d3-176516fc0786@easy-emacs.de> <0c96aedc-36e2-2bbd-8672-0008dbbfd7d5@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118244"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 29323@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 03:15:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTzEc-000UdK-Fj for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2019 03:15:18 +0100 Original-Received: from localhost ([::1]:48564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTzEa-0005UZ-Jv for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2019 21:15:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTzEN-0005UL-Af for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 21:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTzEM-0007d0-D4 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 21:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTzEM-0007cq-8L for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 21:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTzEL-0004pJ-Ug for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2019 21:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2019 02:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29323 X-GNU-PR-Package: emacs Original-Received: via spool by 29323-submit@debbugs.gnu.org id=B29323.157343848918517 (code B ref 29323); Mon, 11 Nov 2019 02:15:01 +0000 Original-Received: (at 29323) by debbugs.gnu.org; 11 Nov 2019 02:14:49 +0000 Original-Received: from localhost ([127.0.0.1]:52933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTzE8-0004oZ-P8 for submit@debbugs.gnu.org; Sun, 10 Nov 2019 21:14:49 -0500 Original-Received: from host.gofardesign.uk ([208.79.239.190]:50989) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTzE6-0004oF-Bc for 29323@debbugs.gnu.org; Sun, 10 Nov 2019 21:14:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To: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=KZPXba0B20BI9W0y+7zt2JmM2oj+seov5QQJdfDCck4=; b=nC9vgOC5V/h1KV9LGeJn2fdnpI p8J1VnxhQz2qX0kc1MuBd06WpC4/chIGPFGFUASjCkTbTtKVHGuTrFn0sCAeUenlVmalLm1V+LiYy VafVy52bP3g9jcJbVT1OarbsaLGNKbc5r7el4Yq/yGheLuVHOeQHkP7CGR5j/SdyjNu0=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:39564 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iTzE0-0001h7-6H; Sun, 10 Nov 2019 20:14:40 -0600 In-Reply-To: <0c96aedc-36e2-2bbd-8672-0008dbbfd7d5@easy-emacs.de> ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Sun, 19 Nov 2017 19:42:27 +0100") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se 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: 209.51.188.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:171404 Archived-At: Andreas R=C3=B6hler writes: > On 16.11.2017 20:51, Andreas Rvhler wrote: > > Feature request: > > Currently variable kill-do-not-save-duplicates checks only the (car kill= -ring) as docu explains:=20 > > 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. > > Thanks, > > Andreas > > This variant of kill-new should do it. Diff basically at comment " ;; del= ete string from kill-ring"=20 I personally can't imagine when I would want the behaviour you ask for, but I think it could make sense to have it as an optional behaviour. Drew suggested that this variable should have three possible values, where 't' and 'nil' stays as they are, but we introduce a new symbol which means to have the behaviour you want. I think this is a better proposal than changing the existing default. Best regards, Stefan Kangas