From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Deffering redisplay in COMINT Date: Tue, 08 Jan 2013 13:19:07 -0500 Message-ID: References: <1354842513.76326.YahooMailNeo@web160901.mail.bf1.yahoo.com> <87obhi1j85.fsf@gmail.com> <1357459792.82082.YahooMailNeo@web160901.mail.bf1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357669159 23672 80.91.229.3 (8 Jan 2013 18:19:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2013 18:19:19 +0000 (UTC) Cc: Vitalie Spinu , Emacs Devel To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 08 19:19:35 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tsdlo-0001P9-8Q for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2013 19:19:28 +0100 Original-Received: from localhost ([::1]:50626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsdlY-0003gS-Ik for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2013 13:19:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsdlW-0003gB-00 for emacs-devel@gnu.org; Tue, 08 Jan 2013 13:19:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsdlV-0000u1-0K for emacs-devel@gnu.org; Tue, 08 Jan 2013 13:19:09 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsdlU-0000tw-SP for emacs-devel@gnu.org; Tue, 08 Jan 2013 13:19:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09FxIzd/2dsb2JhbABEgXuyFoEIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOIQppxgViDB4E4Gg X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212071941" Original-Received: from 69-196-140-221.dsl.teksavvy.com (HELO pastel.home) ([69.196.140.221]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Jan 2013 13:19:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id DDFB459230; Tue, 8 Jan 2013 13:19:07 -0500 (EST) 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)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156156 Archived-At: > The pre hook only activates if the mode is enabled and truncate-lines > is set. =A0When active, it disables auto-hscroll-mode. =A0It then appends= =A0 > the output text to a temporary buffer=A0and then returns=A0a=A0window's > width worth of characters of each line in the temp buffer to=A0 > be written to the=A0output buffer. =A0The output appears to fill each=A0 > 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