From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: help about the display iterator. Date: Fri, 16 Jan 2009 18:38:59 +0100 Message-ID: References: <17789087.255901232126663384.JavaMail.www@wwinf4623> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232127841 7855 80.91.229.12 (16 Jan 2009 17:44:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 17:44:01 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: alinsoar@voila.fr Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 16 18:45:12 2009 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.50) id 1LNskn-0002cb-LI for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 18:45:10 +0100 Original-Received: from localhost ([127.0.0.1]:52823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNsjW-0004ga-MY for ged-emacs-devel@m.gmane.org; Fri, 16 Jan 2009 12:43:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNsjS-0004fP-9Z for emacs-devel@gnu.org; Fri, 16 Jan 2009 12:43:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNsjO-0004cR-Ow for emacs-devel@gnu.org; Fri, 16 Jan 2009 12:43:45 -0500 Original-Received: from [199.232.76.173] (port=59127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNsjO-0004cN-DC for emacs-devel@gnu.org; Fri, 16 Jan 2009 12:43:42 -0500 Original-Received: from iwfs.imcode.com ([82.115.149.64]:50494 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNsjN-00044C-Dq for emacs-devel@gnu.org; Fri, 16 Jan 2009 12:43:42 -0500 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id n0GHhWN4004413; Fri, 16 Jan 2009 18:43:33 +0100 In-Reply-To: <17789087.255901232126663384.JavaMail.www@wwinf4623> (A. Soare's message of "Fri, 16 Jan 2009 18:24:23 +0100 (CET)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:107911 Archived-At: "A. Soare" writes: > I understand that when redisplay_internal is called after direct_output_= for_insert, redisplay_internal stops here. But direct_output_for_insert is = never called on my emacs. I use GTK+ now. > > So it is almost impossible to understand what happens just looking at the= code. > > To be more specific, let us consider this simple case: suppose that I use= the console, not graphics, and that I press the key 'x'; could you make me= a brief description of the trace of the code, starting from the moment whe= n the function read_char forces redisplay, until the character is send to t= he phisical display? > > Thanks in advance for any help. I dont claim to understand how redisplay actually works, but I did manage to make a patch that modifies redisplay so its possible to insert GTK widgets inside the text of an emacs buffer. I did this by sprinkling trace code inside emacs to see what happens during redisplay. To have a clear view of what modifications I have done, I have a local bzr branch. I agree that its not possible to just read the code and understand what it does. This doesnt answer your question, but maybe you can get some ideas. > > Alin. > > > > > >>=20 >> "A. Soare" writes: >>=20 >> > However, I do not understand the mechanism from `redisplay_ineternal' >> > (I have the impression that it's this function that creates the >> > desired_matrix of glyphs) and refresh the display. >>=20 >> You'll have to be more specific in asking these sorts of questions, I'm >> afraid. Have you looked at the commentary at the beginning of xdisp.c? >>=20 >>=20 > > > ____________________________________________________Avec Voila, r=E9alise= z en toute simplicit=E9 votre videoblog ! http://video.voila.fr/mktg/?op=3D= videoblog > > > > --=20 Joakim Verona