unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row
@ 2017-07-17 23:49 積丹尼 Dan Jacobson
  2019-07-21 14:49 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-07-17 23:49 UTC (permalink / raw)
  To: 27745

Unless the user pays attention to the L number in the modeline, and the
shrinking scrollbar, there is no other clues that the user's C-y isn't
stuck or slow, and he is actually probably mistakenly yanking twice...
repeating paragraphs, or even doubling the size of a file.

$ 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.

(This problem is similar to
http://debbugs.gnu.org/25433
but that is harder to reproduce, so I'll close it.)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row
  2017-07-17 23:49 bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row 積丹尼 Dan Jacobson
@ 2019-07-21 14:49 ` Lars Ingebrigtsen
  2019-07-22  0:49   ` Basil L. Contovounesios
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-21 14:49 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 27745

積丹尼 Dan Jacobson <jidanni@jidanni.org> 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.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row
  2019-07-21 14:49 ` Lars Ingebrigtsen
@ 2019-07-22  0:49   ` Basil L. Contovounesios
  0 siblings, 0 replies; 3+ messages in thread
From: Basil L. Contovounesios @ 2019-07-22  0:49 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 27745, 積丹尼 Dan Jacobson

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 積丹尼 Dan Jacobson <jidanni@jidanni.org> 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-22  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-17 23:49 bug#27745: Warn: you have already yanked the same thing 2 (3, 4...) times in a row 積丹尼 Dan Jacobson
2019-07-21 14:49 ` Lars Ingebrigtsen
2019-07-22  0:49   ` Basil L. Contovounesios

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).