bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27479: Buffer text not repainted after `insert'


From: npostavs
Subject: bug#27479: Buffer text not repainted after `insert'
Date: Sun, 25 Jun 2017 14:21:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)

> From: John Beck <address@hidden>
> Subject: Re: bug#27479:
> To: address@hidden, address@hidden
> Date: Sun, 25 Jun 2017 10:19:43 -0700 (49 minutes, 40 seconds ago)
>
> I would say that is a *huge* wat.
>
> For now I have resolved to use this:
>
> (sequential-insert (arg) (progn (insert arg) (redisplay)))
>
> This avoids backwards compatibility issues and and allows the user to be
> explicit about whether or not they are inserting "sequentially."
>
> I feel that something along the lines of this sequential-insert should be
> included in mainline emacs though that is entirely your call.

Apart from simulating a human typing I don't see a need for this
function.  It could go in lisp/play/animation.el perhaps.  Did you have
some other use case in mind?

By the way, `sit-for' triggers redisplay, so you might want to use that
instead of `sleep-for'.





reply via email to

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