[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Various simple.el patches

From: Stefan Monnier
Subject: Re: Various simple.el patches
Date: Fri, 16 May 2003 14:18:13 -0400

>     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) ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]