From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: kill-new may replace the wrong item Date: Wed, 02 Jun 2010 22:53:17 +0300 Organization: JURTA Message-ID: <87y6exp5zi.fsf@mail.jurta.org> References: <87d3wasfpf.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275508740 7968 80.91.229.12 (2 Jun 2010 19:59:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Jun 2010 19:59:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 02 21:58:59 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJu5O-0001DZ-Mn for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 21:58:52 +0200 Original-Received: from localhost ([127.0.0.1]:53864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJu5M-0005PR-8m for ged-emacs-devel@m.gmane.org; Wed, 02 Jun 2010 15:58:44 -0400 Original-Received: from [140.186.70.92] (port=45655 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJu4v-0004zf-K4 for emacs-devel@gnu.org; Wed, 02 Jun 2010 15:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJu4n-0008Dq-Ro for emacs-devel@gnu.org; Wed, 02 Jun 2010 15:58:13 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:41962 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJu4n-0008DK-MZ for emacs-devel@gnu.org; Wed, 02 Jun 2010 15:58:09 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.32.82.cable.starman.ee [82.131.32.82]) by mx1.starman.ee (Postfix) with ESMTP id 796893F40E9; Wed, 2 Jun 2010 22:58:05 +0300 (EEST) In-Reply-To: (Leo's message of "Wed, 2 Jun 2010 04:36:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125462 Archived-At: > When this happens duplicate entries will end up in the kill ring. The > old CAR now get pushed down the kill-ring, and the NEW CAR, that was > originally from the clipboard but get replaced with the 'STRING' arg. Do you think `kill-do-not-save-duplicates' should take into account clipboard strings too and don't allow duplicates from clipboard? Maybe. But should the same logic apply to the menu items of yank-menu? Should `menu-bar-update-yank-menu' use the value of `(car kill-ring)' that was *before* pushing clipboard into kill-ring, but the value of `replace' that is *after* pushing clipboard into kill-ring and comparing it with the new value of `(car kill-ring)'? -- Juri Linkov http://www.jurta.org/emacs/