From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alin Soare Newsgroups: gmane.emacs.devel Subject: Efficient debugging of the redisplay. Date: Tue, 8 Dec 2009 15:08:59 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502ca80f6c19a047a374635 X-Trace: ger.gmane.org 1260298401 4715 80.91.229.12 (8 Dec 2009 18:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2009 18:53:21 +0000 (UTC) To: "Emacs Dev [emacs-devel]" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 08 19:53:14 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 1NI5BR-0006DM-Sd for ged-emacs-devel@m.gmane.org; Tue, 08 Dec 2009 19:53:14 +0100 Original-Received: from localhost ([127.0.0.1]:51449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI5BR-0003gj-MU for ged-emacs-devel@m.gmane.org; Tue, 08 Dec 2009 13:53:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHzoQ-0005bN-PS for emacs-devel@gnu.org; Tue, 08 Dec 2009 08:09:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHzoL-0005Vc-D1 for emacs-devel@gnu.org; Tue, 08 Dec 2009 08:09:05 -0500 Original-Received: from [199.232.76.173] (port=38372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHzoL-0005VF-7e for emacs-devel@gnu.org; Tue, 08 Dec 2009 08:09:01 -0500 Original-Received: from mail-ew0-f209.google.com ([209.85.219.209]:57247) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHzoK-0004gO-Ru for emacs-devel@gnu.org; Tue, 08 Dec 2009 08:09:01 -0500 Original-Received: by ewy1 with SMTP id 1so2682957ewy.8 for ; Tue, 08 Dec 2009 05:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=sjMKjt14G7kTv0+Xv+2d69j+EK6Yt0XXe1SzygXq5bw=; b=EbKMn76B4kZQ7XFVXVsUNV0Y/wg1fdpuVCZZ6OCrBhVi/HuZKoJJ3aWsXkdTMVA/dk QE6DRIjApPBfoCAzmylmo982ZMDthWBTE812zOzASKLadCfZmT1L4NnMe89Vc0MwS2XT 5QAjCqGlXLrxMqH/bKngwcvEQ2sc3nw6Ex6Q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eeDmE2ePNt1naWczYsc3O1sG3fB/ncxHTfJh5Dc8Qu9kJ8D3RmUHiNf8UzceJ0W1LV zVoDCpMP6k7V2IfKlsRFkpFBMuCEbtBmSgMp36avhWSk5/VRz/1PbQBm1TrMoZ0wkB3r xrhPgd+oB8lBHXxdUQMCS7VyjXHUUqeNuS6fE= Original-Received: by 10.213.102.202 with SMTP id h10mr7405955ebo.76.1260277739208; Tue, 08 Dec 2009 05:08:59 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 08 Dec 2009 13:46:36 -0500 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:118392 Archived-At: --00504502ca80f6c19a047a374635 Content-Type: text/plain; charset=ISO-8859-1 The only documentation about debugging the redisplay of emacs I did find in ./etc/DEBUG ** Debugging Emacs Redisplay problems The src/.gdbinit file defines many useful commands for dumping redisplay related data structures in a terse and user-friendly format: `ppt' prints value of PT, narrowing, and gap in current buffer. `pit' dumps the current display iterator `it'. `pwin' dumps the current window 'win'. `prow' dumps the current glyph_row `row'. `pg' dumps the current glyph `glyph'. `pgi' dumps the next glyph. `pgrow' dumps all glyphs in current glyph_row `row'. `pcursor' dumps current output_cursor. However, this tells me nothing about an efficient debugging of redisplay_internal, and about display in general. Could you suggest me something efficient, please? Alin --00504502ca80f6c19a047a374635 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The only documentation about debugging the redisplay of emacs I did find in= ./etc/DEBUG

** Debugging Emacs Redisplay problems

The src/.g= dbinit file defines many useful commands for dumping redisplay
related d= ata structures in a terse and user-friendly format:

=A0`ppt' prints value of PT, narrowing, and gap in current buffer.<= br>=A0`pit' dumps the current display iterator `it'.
=A0`pwin= 9; dumps the current window 'win'.
=A0`prow' dumps the curre= nt glyph_row `row'.
=A0`pg' dumps the current glyph `glyph'.
=A0`pgi' dumps the = next glyph.
=A0`pgrow' dumps all glyphs in current glyph_row `row= 9;.
=A0`pcursor' dumps current output_cursor.

However, this t= ells me nothing about an efficient debugging of redisplay_internal, and abo= ut display in general.

Could you suggest me something efficient, please?




Al= in

--00504502ca80f6c19a047a374635--