[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deffering redisplay in COMINT
From: |
Stefan Monnier |
Subject: |
Re: Deffering redisplay in COMINT |
Date: |
Tue, 08 Jan 2013 13:19:07 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> The pre hook only activates if the mode is enabled and truncate-lines
> is set. When active, it disables auto-hscroll-mode. It then appends
> the output text to a temporary buffer and then returns a window's
> width worth of characters of each line in the temp buffer to
> be written to the output buffer. The output appears to fill each
> line without the display slowdown due to long displayed lines.
> And because hscroll is turned off, the text merely flows up the
> screen quickly.
Have you tried the (presumably) simpler approach of only inserting the
text one line at a time, i.e. accumulate the output in some undisplayed
"buffer area" (can be a buffer, a string, or a list of strings, this
last choice being probably the most efficient) until you see a \n and
then insert that text (upto and including the \n, so the cursor stays in
column 0 and doesn't risk triggering auto-hscroll-mode) while keeping
the rest in the "buffer area"?
Stefan