Subject: bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row

From: "Basil L. Contovounesios" <[email-masked]>
Date: Mon, 22 Jul 2019 01:49:39 +0100

Lars Ingebrigtsen <[email-masked]> writes:

> 積丹尼 Dan Jacobson <[email-masked]> writes:
>
>> $ seq 99 > a
>> $ emacs a
>>  C-x h [mark-whole-buffer]
>>  C-w [kill-region]
>>  C-y [yank]
>>  C-y [yank]
>>  C-y [yank]
>>  C-y [yank]
>>  C-y [yank]
>>  C-y [yank]
>>  C-y [yank]
>>
>> So maybe print:
>>   Warning: you have already yanked the same thing 2 (3,4...) times in a row.
>> if he yanks the exact same thing more than once.
>
> Yanking the same thing several times is a perfectly normal thing to do,
> so I think it would be a disservice for Emacs to warn about this.

I agree.  See also the user option kill-do-not-save-duplicates.

-- 
Basil