From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16691: 24.3.50; emacs_backtrace.txt Date: Mon, 10 Feb 2014 09:14:33 +0100 Message-ID: <52F88A69.3060104@gmx.at> References: <83a9e1wg93.fsf@gnu.org> <52F68E36.7070204@gmx.at> <83zjm1uz1g.fsf@gnu.org> <52F760B0.6050003@gmx.at> <83lhxkuu3x.fsf@gnu.org> <52F7CFC4.2030905@gmx.at> <83fvnsujgc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392020116 30132 80.91.229.3 (10 Feb 2014 08:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 08:15:16 +0000 (UTC) Cc: 16691@debbugs.gnu.org, lekktu@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 10 09:15:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WCm1S-00082l-Ty for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 09:15:23 +0100 Original-Received: from localhost ([::1]:54064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCm1S-0001RA-Ai for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 03:15:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCm1I-0001QL-K0 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 03:15:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCm1B-0002QF-62 for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 03:15:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCm1B-0002Q5-3b for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 03:15:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCm19-00087f-Uq for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 03:15:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 08:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16691-submit@debbugs.gnu.org id=B16691.139202009031182 (code B ref 16691); Mon, 10 Feb 2014 08:15:03 +0000 Original-Received: (at 16691) by debbugs.gnu.org; 10 Feb 2014 08:14:50 +0000 Original-Received: from localhost ([127.0.0.1]:33977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm0v-00086r-G8 for submit@debbugs.gnu.org; Mon, 10 Feb 2014 03:14:50 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:53530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm0o-00086Z-I9 for 16691@debbugs.gnu.org; Mon, 10 Feb 2014 03:14:44 -0500 Original-Received: from [62.47.34.220] ([62.47.34.220]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LlleO-1VdRGD11Mm-00ZSub for <16691@debbugs.gnu.org>; Mon, 10 Feb 2014 09:14:41 +0100 In-Reply-To: <83fvnsujgc.fsf@gnu.org> X-Provags-ID: V03:K0:i5KqHOUeSJK23ggeeDZNMqpLQLKFOvg3yhkj1VUh9U1XzzewRck DuqFcQOKjH7oAv+DmP/56OdF3+7gornH4MWvknxDyD/odmAxH5s/g7neRo0AKl9+QWGrlGB u7LxwklUqlrBZvFjV5TCtsoLiESoNCswFsXbWzmmoZC5YKxFlmua2eOocV1GO1VrdeZdYwn XGc2S8+/pDPirErVA1xDQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85247 Archived-At: >> - int x, y: Where and how are these set for a particular row (including >> header- and mode-line) and when and how are these eventually consumed? >> This is the greatest mystery for me so far. > > They are assigned in display_line and display_string. Examples from > display_line: > > row->y = it->current_y; Does the value set here account for extra_line_spacing or is the latter (as I presume) handled separately? > [...] > if (it->current_x - it->pixel_width < it->first_visible_x) > row->x = x - it->first_visible_x; > > Mode line and header line are generated from strings, so look in > display_mode_line and display_string. I tried that but never found anything useful there. I suppose the header line has current_y always set to 0. But the mode line? My confusion comes partly from window_text_bottom_y which returns a position above the mode line, so apparently the mode line is handled separately. But the header line is included in the height returned. And window_box_height does not include the header line in the return value. I understand that most of these are handled by some kind of internal magic but I can't locate that magic yet. > Not sure what you mean by "consumed". Consumed by whom and for what > purposes? I suppose when exposing the window (another part of Emacs display which I don't understand yet). What would current_y else be used for? >> - int visible_height: "Partially visible rows may be found at the top >> and bottom of a window." Is it true that we can draw partially >> visible rows at the top of the window? > > I think this is only possible when a single row is too large to fit a > window. I see. So this is not about having the top of a line only partially visible. martin