From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Mauger <mmaug@yahoo.com>
Cc: Vitalie Spinu <spinuvit@gmail.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Deffering redisplay in COMINT
Date: Tue, 08 Jan 2013 13:19:07 -0500 [thread overview]
Message-ID: <jwvlic35yqr.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1357459792.82082.YahooMailNeo@web160901.mail.bf1.yahoo.com> (Michael Mauger's message of "Sun, 6 Jan 2013 00:09:52 -0800 (PST)")
> 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
next prev parent reply other threads:[~2013-01-08 18:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-07 1:08 Deffering redisplay in COMINT Michael Mauger
2012-12-25 11:09 ` Vitalie Spinu
2013-01-06 8:09 ` Michael Mauger
2013-01-08 18:19 ` Stefan Monnier [this message]
2013-01-11 14:40 ` Michael Mauger
2013-01-11 15:55 ` Stefan Monnier
2013-01-13 8:14 ` Michael Mauger
2013-01-13 16:46 ` Eli Zaretskii
2013-01-16 14:39 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlic35yqr.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=mmaug@yahoo.com \
--cc=spinuvit@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.