From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: redisplay system of emacs Date: Fri, 12 Feb 2010 19:55:02 +0100 Organization: Organization?!? Message-ID: <87wryi2sjd.fsf@lola.goethe.zz> References: <27349166.post@talk.nabble.com> <27560255.post@talk.nabble.com> <4B754E74.8060705@swipnet.se> <27563610.post@talk.nabble.com> <4B7564C7.1010309@swipnet.se> <27564728.post@talk.nabble.com> <4B756FB7.3050202@swipnet.se> <87k4ui4gik.fsf@lola.goethe.zz> <27566385.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266000937 29493 80.91.229.12 (12 Feb 2010 18:55:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2010 18:55:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 12 19:55:35 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng0fu-0002J0-OW for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2010 19:55:35 +0100 Original-Received: from localhost ([127.0.0.1]:36705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng0fu-0007ZE-4B for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2010 13:55:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ng0fn-0007XP-5h for emacs-devel@gnu.org; Fri, 12 Feb 2010 13:55:27 -0500 Original-Received: from [140.186.70.92] (port=57801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng0fm-0007W3-0l for emacs-devel@gnu.org; Fri, 12 Feb 2010 13:55:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ng0fl-0006z5-8M for emacs-devel@gnu.org; Fri, 12 Feb 2010 13:55:26 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59981) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ng0fk-0006yw-Rz for emacs-devel@gnu.org; Fri, 12 Feb 2010 13:55:25 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ng0fj-0002C6-LT for emacs-devel@gnu.org; Fri, 12 Feb 2010 19:55:23 +0100 Original-Received: from p5b2c2462.dip.t-dialin.net ([91.44.36.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2010 19:55:23 +0100 Original-Received: from dak by p5b2c2462.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2010 19:55:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c2462.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:rCW2LGn08dNy0Bv+XDs6Q2KQJyA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121083 Archived-At: "alin.s" writes: > I did not want to state categorically that such or such solution is the good > one. > > For example, if every emacs-window would be composed of lots of subwindows > on server side, that lots of sub-windows could be completely hidden. Never > use them to write something in them. They just report exactly the part of > the buffer that should be redisplayed. They only catch and report events. > They are invisible. > > Redisplay_internal does lots and lots of computations to detect which > part of the buffer should be redisplayed at a given moment. By checking which on-screen parts have changed how. > All these computations can be avoided using a system of subwindows (1 > for every char). That is nonsense. One then has to check which subwindows need to be moved/replaced as a result of buffer changes. The X server has no clue about buffers and the display matrix and its relative arrangement. > That was my idea: to replace redisplay_internal with something simple > and efficient. Something simple and efficient is to keep in the emacs > a vector of little windows, and to register in the server all these > windows. And the server works by magic? Unlikely. Even if the scheme were not unfeasible. > The structure of windows is changed only when configure event is > caught or when one changes the font, or split windows, etc. So very > rarely. Every insertion of a single character of a proportional font will change the "windows" layout. > 95% of the operations of redisplay can be covered with the system of > little windows registered in the server. No more need of > redisplay_internal for X. I think you have the wrong idea about what redisplay_internal does, and what an X server can do on its own. -- David Kastrup