From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Yanking wrong text Date: Sun, 24 Jun 2007 10:40:50 -0400 Message-ID: References: <87d4znvh7h.fsf@jurta.org> <87y7ibvwrn.fsf@jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1182696212 18987 80.91.229.12 (24 Jun 2007 14:43:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2007 14:43:32 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 24 16:43:27 2007 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.50) id 1I2TJC-00087Q-LW for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2007 16:43:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2TJC-0002is-1q for ged-emacs-devel@m.gmane.org; Sun, 24 Jun 2007 10:43:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2TGn-00012m-0D for emacs-devel@gnu.org; Sun, 24 Jun 2007 10:40:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2TGl-000126-CZ for emacs-devel@gnu.org; Sun, 24 Jun 2007 10:40:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2TGl-00011n-2v for emacs-devel@gnu.org; Sun, 24 Jun 2007 10:40:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I2TGk-0003RA-ON for emacs-devel@gnu.org; Sun, 24 Jun 2007 10:40:50 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I2TGk-0001di-B1; Sun, 24 Jun 2007 10:40:50 -0400 In-reply-to: (message from Stefan Monnier on Sat, 23 Jun 2007 15:00:05 -0400) X-detected-kernel: 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:73753 Archived-At: I think the key is to check not just whether the two strings are equal, but also whether the head of the kill-ring really comes from the currently active region. E.g. check that last-command is one that uses copy-region-as-kill. It might work. Would you like to try implementing that?