From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Various simple.el patches Date: Fri, 16 May 2003 14:18:13 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200305161818.h4GIIDkL028107@rum.cs.yale.edu> References: <200305132031.h4DKVp58013718@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053109125 19942 80.91.224.249 (16 May 2003 18:18:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 18:18:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 16 20:18:44 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Gjlc-00053o-00 for ; Fri, 16 May 2003 20:17:16 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Gju2-0007SE-00 for ; Fri, 16 May 2003 20:26:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Gjmt-0006yT-0C for emacs-devel@quimby.gnus.org; Fri, 16 May 2003 14:18:35 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Gjma-0006yJ-00 for emacs-devel@gnu.org; Fri, 16 May 2003 14:18:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19GjmY-0006y4-00 for emacs-devel@gnu.org; Fri, 16 May 2003 14:18:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GjmX-0006xg-00; Fri, 16 May 2003 14:18:13 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h4GIIDx6028109; Fri, 16 May 2003 14:18:13 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h4GIIDkL028107; Fri, 16 May 2003 14:18:13 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13936 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13936 > 1 - When killing the same thing over and over again, don't fill > the kill-ring unnecessarily. > > ... > No, this is handled somewhere else. The only negative effect > it has (AFAIK) is if you do C-k C-y C-k C-k C-k C-k on the above > example: The second C-k overwrites the data from the first > so if you do C-y M-y you won't get "foo" but you'll get > whatever was on the kill-ring before. > > That problem could be solved by having a flag that says there > are notionally two copies of the string on the kill ring. > If you append more killed text when the flag is set, it should > copy the string first, so that the original string remains in the > kill ring. I could try something like that if the minor loss turns out to be a problem. > 2a - When yanking with an active region, do `delete-selection'. > This would be worth trying out, with a variable to control it > and disabled by default. I think it's too minor to deserve a config var. If it can't be enabled by default, it might as well not exist. What about the `2b' part (i.e. if the kill-ring says "foo" and the region is active and contains "foo", delete the region and replace it with the second element of the kill-ring) ? Stefan