From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Dallas Gray Newsgroups: gmane.emacs.bugs Subject: bug#15886: 24.3.50; Incorrect window-text-height with non-zero line-spacing Date: Wed, 13 Nov 2013 20:55:20 +0000 Message-ID: References: <8D614196-65E4-4F20-AAFE-CCFDC32D9898@robertdallasgray.com> <83a9h811r7.fsf@gnu.org> <4D2C9983-9E63-44F6-83A6-3D306B9EC79C@robertdallasgray.com> <837gcc116m.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384376177 14801 80.91.229.3 (13 Nov 2013 20:56:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Nov 2013 20:56:17 +0000 (UTC) Cc: 15886@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 13 21:56:22 2013 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 1VghU3-0007Yn-SL for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 21:56:20 +0100 Original-Received: from localhost ([::1]:50773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VghU3-0004LG-6h for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Nov 2013 15:56:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VghTu-0004Jh-BG for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 15:56:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VghTm-0004By-R3 for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 15:56:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VghTm-0004Bs-Nb for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 15:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VghTl-0001tn-Tw for bug-gnu-emacs@gnu.org; Wed, 13 Nov 2013 15:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Dallas Gray Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2013 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15886-submit@debbugs.gnu.org id=B15886.13843761317261 (code B ref 15886); Wed, 13 Nov 2013 20:56:01 +0000 Original-Received: (at 15886) by debbugs.gnu.org; 13 Nov 2013 20:55:31 +0000 Original-Received: from localhost ([127.0.0.1]:50613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VghTG-0001t2-Ft for submit@debbugs.gnu.org; Wed, 13 Nov 2013 15:55:31 -0500 Original-Received: from mail-ea0-f170.google.com ([209.85.215.170]:36223) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VghTE-0001sp-Cv for 15886@debbugs.gnu.org; Wed, 13 Nov 2013 15:55:29 -0500 Original-Received: by mail-ea0-f170.google.com with SMTP id q10so445225eaj.29 for <15886@debbugs.gnu.org>; Wed, 13 Nov 2013 12:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=robertdallasgray.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GzvYPAyrdunictjtkvKTkqDUn7PhtOI0uDQUW7NrLek=; b=iZ21HP4EGDX2spdEEO4SF+Gm3jXwBX+6LBdWPA0eB1Lwjh3QvcGWmpC0Hp3m0sqIit 6mnOuGAX6bphm/gjH8ZEyPuTa1WJw1gwQ9wDPSwDgSg/we6j8XwJxzV3F5JfqB0knwCd cZaKJcPuFGPR6JAF5iMLhMm6NUWwEiHmOt6fY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=GzvYPAyrdunictjtkvKTkqDUn7PhtOI0uDQUW7NrLek=; b=NzniW1Cws26wkLkAGcvKQAlkeUuYXJSAiJkqXRfNJ4lQ7xz6Tlbs5CPx2TvUuzU857 c+/lXL2npucgFYzjGVYB+s4AINQ0EdDmX5Uw2SZzqYG0lPoXfbyqQ6lhlI5e5l0KGoHq PMnQ7/WssbLG9AfiHNEnrCVjfxsKPtAOdW2RTEJ8d34lGVNnH0QXF52zmv4NmvV4endr 09uw7AwFn1OZ/zZJxL9XndoAcnyMoX9BwuLdxOgcdvZBlDbuWXVY+ncG9+XfUaQGHx1r 5hF1whiCyYTAgg5vlwVm37ypOW+fKBSP735QCaqFIPKqrd9pI2Nd5r7E03+MfUyHFHmN tlWw== X-Gm-Message-State: ALoCoQm94YN8NYEUeI72l3TacblP8VeOjVjyEwdXuGUQ72wnHI/esWZvMJ24m5v1xMqsApCV2qYw X-Received: by 10.15.54.199 with SMTP id t47mr24658485eew.46.1384376122338; Wed, 13 Nov 2013 12:55:22 -0800 (PST) Original-Received: from [192.168.1.203] ([2.28.52.80]) by mx.google.com with ESMTPSA id i1sm91650941eeg.0.2013.11.13.12.55.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Nov 2013 12:55:21 -0800 (PST) In-Reply-To: <837gcc116m.fsf@gnu.org> X-Mailer: Apple Mail (2.1822) 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:80385 Archived-At: On 13 Nov 2013, at 20:44, Eli Zaretskii wrote: >> From: Robert Dallas Gray >> Date: Wed, 13 Nov 2013 20:36:14 +0000 >> Cc: 15886@debbugs.gnu.org >>=20 >>=20 >> On 13 Nov 2013, at 20:32, Eli Zaretskii wrote: >>=20 >>>> From: Robert Dallas Gray >>>> Date: Wed, 13 Nov 2013 19:23:19 +0000 >>>>=20 >>>> On a graphical display, when `line-spacing' is non-zero, >>>> `window-text-height' reports an incorrect number; equally, >>>> `set-window-text-height' can't be used properly. This impacts on >>>> libraries which use `set-window-text-height' e.g. to attempt to = size a >>>> window accurately. >>>=20 >>> Those libraries should use 'window-screen-lines' instead. >>>=20 >>> I think 'window-text-height' should continue doing what it does, as >>> many packages, and Emacs itself, depend on its current behavior. >>=20 >> OK, but is there a parallel setter method, or some way to set the = height of a window in pixels, so that a window could be correctly sized = taking into account line-spacing? >=20 > I don't understand: if you need to get a window's height and then use > it to change the height, then why isn't 'window-text-height' and > set-window-text-height' what you want? They are consistent with one > another. >=20 > Perhaps it would help if you explain more about what you want to > accomplish, and why. Well, it's not my library, but the reason it fails (in my setup, where I = have line-spacing set to 2), is that it tries to set the height of the = minibuffer using 'set-window-text-height' -- which, in my setup, sets = the height incorrectly (the bottom of the minibuffer is obscured). I = note that 'set-window-text-height' uses 'window-text-height'=20 If there's a setter equivalent of 'window-screen-lines' (which there = doesn't seem to be), then I can raise that with the maintainer. = Otherwise, is there a way to set window height in pixels (which can be = easily worked out from the number of lines of text)? If not, then = there's no way (that I can see) to accomplish the intended function of = 'set-window-text-height' in gui Emacs.