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#20022: 24.4.90; window-body-height, window-body-width wrong value after text-scale-adjust Date: Sat, 07 Mar 2015 10:41:23 +0100 Message-ID: <54FAC7C3.5080504@gmx.at> References: <874mpx3gh2.fsf@gmail.com> 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 1425721348 19696 80.91.229.3 (7 Mar 2015 09:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Mar 2015 09:42:28 +0000 (UTC) To: Vitalie Spinu , 20022@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 07 10:42:12 2015 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 1YUBFL-00042g-QL for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 10:42:11 +0100 Original-Received: from localhost ([::1]:33875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUBFL-0001Hh-5B for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 04:42:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUBFH-0001Ed-0P for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 04:42:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUBFC-0003lo-Qg for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 04:42:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUBFC-0003lg-OG for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 04:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YUBFC-0006Qd-Ii for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 04:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2015 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20022 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20022-submit@debbugs.gnu.org id=B20022.142572130024670 (code B ref 20022); Sat, 07 Mar 2015 09:42:02 +0000 Original-Received: (at 20022) by debbugs.gnu.org; 7 Mar 2015 09:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:38113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUBEp-0006Pp-PD for submit@debbugs.gnu.org; Sat, 07 Mar 2015 04:41:40 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:55256) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUBEn-0006Pb-VI for 20022@debbugs.gnu.org; Sat, 07 Mar 2015 04:41:38 -0500 Original-Received: from [178.189.203.248] ([178.189.203.248]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lu3J4-1XUxHZ467y-011T5p; Sat, 07 Mar 2015 10:41:32 +0100 In-Reply-To: <874mpx3gh2.fsf@gmail.com> X-Provags-ID: V03:K0:viQFuh/d07RAnsa4OPoiLWgaxIJV+zeQL+Vjgiit/DIWlu0vsFt LPBTc7LLc0Ietrq5Bzbyx4/1qeNJg7J6zVjEeH061EkV+yyaomIDwyqfpZnZuq6sKhWYwWs p99epHwAnr5e2cEWRlhqNbJeq6m8N1iDrynUhcAiBbVqottJExg4eJyq3MthC4tv4oxNE+t K+WA8yqRGXg07uGqLQGtw== X-UI-Out-Filterresults: notjunk:1; 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:100227 Archived-At: > After text-scale-adjust [C-x C-] window-height and window-width return > the old (original) value. Because it did not change. > The doc says: > > This function returns the height, in lines, of the body of window > WINDOW. > > So at least the docs are imprecise or incomplete. Here the doc also says: If WINDOW's pixel height is not an integral multiple of its frame's character height, the number of lines occupied by WINDOW is rounded internally. This is done in a way such that, if WINDOW is a parent window, the sum of the total heights of all its children internally equals the total height of WINDOW. If the optional argument ROUND is `ceiling', return the smallest integer larger than WINDOW's pixel height divided by the character height of WINDOW's frame. ROUND `floor' means to return the largest integer smaller than WINDOW's pixel height divided by the character height of WINDOW's frame. Any other value of ROUND means to return the internal total height of WINDOW. > Relatedly, there seems to be no way to determine the height/width of a > character in pixels after rescaling. `frame-char-width` returns the > original size. Because IIUC the values might differ according to the window where the character is displayed. I don't know how to get the value you want. ISTR that someone is currently working on this. martin