From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7004: 23.2; In fullscreen mode, the echo area takes too much vertical space Date: Wed, 15 Sep 2010 21:30:31 +0200 Message-ID: <83fwxa3iug.fsf@gnu.org> References: <4C89F3E3.6080804@swipnet.se> <4C8A3D5F.10502@swipnet.se> <4C8AC907.80102@harpegolden.net> <4C8B34C6.5060906@swipnet.se> <83r5gx4y6e.fsf@gnu.org> <4C8E748F.5040107@swipnet.se> <83aanl4fm3.fsf@gnu.org> <4C8E8E3B.7010305@swipnet.se> <831v8x49p3.fsf@gnu.org> <4C8F1E31.8030904@gmx.at> <83vd682puw.fsf@gnu.org> <4C906F09.2030809@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1284579666 16843 80.91.229.12 (15 Sep 2010 19:41:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 19:41:06 +0000 (UTC) Cc: 7004@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 15 21:41:04 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Ovxqn-0001Y3-WF for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 21:41:02 +0200 Original-Received: from localhost ([127.0.0.1]:41328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovxqn-0001bA-96 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 15:41:01 -0400 Original-Received: from [140.186.70.92] (port=60656 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvxqX-0001WL-LQ for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 15:40:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvxqP-0007Eg-M9 for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 15:40:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37936) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvxqP-0007Ec-Kk for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 15:40:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvxfC-00052Z-0Q; Wed, 15 Sep 2010 15:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Sep 2010 19:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7004 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7004-submit@debbugs.gnu.org id=B7004.128457889619367 (code B ref 7004); Wed, 15 Sep 2010 19:29:01 +0000 Original-Received: (at 7004) by debbugs.gnu.org; 15 Sep 2010 19:28:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvxeS-00052K-6A for submit@debbugs.gnu.org; Wed, 15 Sep 2010 15:28:16 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvxeP-00052F-Dp for 7004@debbugs.gnu.org; Wed, 15 Sep 2010 15:28:14 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L8S00100ZI7UU00@a-mtaout22.012.net.il> for 7004@debbugs.gnu.org; Wed, 15 Sep 2010 21:30:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.81.53]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8S00151ZISV300@a-mtaout22.012.net.il>; Wed, 15 Sep 2010 21:30:29 +0200 (IST) In-reply-to: <4C906F09.2030809@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Sep 2010 15:29:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40186 Archived-At: > Date: Wed, 15 Sep 2010 09:00:25 +0200 > From: martin rudalics > CC: jan.h.d@swipnet.se, 7004@debbugs.gnu.org > > IIUC Emacs usually [...] rounds the height to the nearest integer > multiple of the canonical line height instead. That's not really relevant, since the height includes the tool bar and the menu bar, whose sizes aren't multiples of the canonical font height. So the windows end up with non-integral number of text lines anyway. > So let's assume that we want to move this remainder to the frame root > window instead. Now coordinates_in_window from window.c has to > > "Test if the character at column *X, row *Y is within window W. > If it is not, return ON_NOTHING; > if it is in the window's text area, > set *x and *y to its location relative to the upper left corner > of the window, and > return ON_TEXT; > if it is on the window's modeline, return ON_MODE_LINE; > ..." > > but the tests it performs is currently based on things like > > WINDOW_BOTTOM_EDGE_Y > > which is defined as > > #define WINDOW_BOTTOM_EDGE_Y(W) \ > (((WINDOW_MENU_BAR_P (W) || WINDOW_TOOL_BAR_P (W)) \ > ? 0 : FRAME_INTERNAL_BORDER_WIDTH (WINDOW_XFRAME (W))) \ > + WINDOW_BOTTOM_EDGE_LINE (W) * WINDOW_FRAME_LINE_HEIGHT (W)) > > that is, an integer multiple of the canonical line height of the frame > of W. So this does not account for the remainder we want to add and the > result could be that a mouse click in the window text area is recognized > as a click on the window's modeline or even another window. Obviously, > sampling windows for mouse-autoselection might give strange results as > well. If all of this is true, then how do we succeed to display partial lines with the existing ``pixel-challenged'' display engine? What am I missing?