From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu 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 22:46:52 +0200 Message-ID: <87oao41qo3.fsf@gmail.com> References: <874mpx3gh2.fsf@gmail.com> <83a8zpm92q.fsf@gnu.org> <87vbic23j5.fsf@gmail.com> <83pp8kllrh.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425761305 9918 80.91.229.3 (7 Mar 2015 20:48:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Mar 2015 20:48:25 +0000 (UTC) Cc: 20022@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 07 21:48: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 1YULdq-0003uK-Od for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 21:48:11 +0100 Original-Received: from localhost ([::1]:36391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YULdp-00086e-PW for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 15:48:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YULdm-00086W-MS for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 15:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YULdj-0001V3-Fs for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 15:48:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YULdj-0001Uz-Ci for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 15:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YULdi-0000Uf-Kb for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2015 15:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vitalie Spinu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2015 20:48: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.14257612281821 (code B ref 20022); Sat, 07 Mar 2015 20:48:02 +0000 Original-Received: (at 20022) by debbugs.gnu.org; 7 Mar 2015 20:47:08 +0000 Original-Received: from localhost ([127.0.0.1]:38904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YULcp-0000TI-0K for submit@debbugs.gnu.org; Sat, 07 Mar 2015 15:47:07 -0500 Original-Received: from mail-wi0-f178.google.com ([209.85.212.178]:38740) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YULci-0000Se-1D for 20022@debbugs.gnu.org; Sat, 07 Mar 2015 15:47:00 -0500 Original-Received: by widex7 with SMTP id ex7so10454663wid.3 for <20022@debbugs.gnu.org>; Sat, 07 Mar 2015 12:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=fNIMw49R+tF+YhLhZ/c5AoMsdgs8HHpX1sE/OUwBDRY=; b=dVO2p9Os5fux1DnaFPmRxoSD8l3o1ASKVhpZ4gI/p0TAvJkB6ek///rR7CeeozfhtV C+wH2PL3iCRQMZ8itIH1nrTF+pYBihH15o8RbRWiCr9lx+R39RH8vHr7Y3YwoMk4iuQ9 HoQzhxEnUpZlBYf332qFwhiB5iRVAknmcULDjmcv6Zp3djXMQS3ulJFEk/Th/dxWvYk+ wnB98vlR+1QzFOAkeP3LyBpQJPU7/F0cku8TRDYlnVuuSO3AAx4GXr3ve3iRW0Sf2vUq QVn/pSqlWVZwprF+QcDs1/cMQIjlsydPrbIVyOL6pp08tmYZMP9mcxXqnm+QceDVizZm rK6Q== X-Received: by 10.180.210.228 with SMTP id mx4mr77953312wic.71.1425761214396; Sat, 07 Mar 2015 12:46:54 -0800 (PST) Original-Received: from localhost (host-static-86-106-238-197.moldtelecom.md. [86.106.238.197]) by mx.google.com with ESMTPSA id y14sm20791797wjr.39.2015.03.07.12.46.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Mar 2015 12:46:53 -0800 (PST) In-Reply-To: <83pp8kllrh.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Mar 2015 20:12:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.90 (gnu/linux) 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:100246 Archived-At: >>> Eli Zaretskii on Sat, 07 Mar 2015 20:12:34 +0200 wrote: > having a term that needs to be explained by telling how to compute it > sends a confusing message. It gives an operational definition of "lines", which is a valid definition. It's confusing to see 100 lines in a buffer and to be told that there are 25 "lines". >> I simply need the number of characters that can be fit in a single line >> in order to set the sub-process output width. > This can only be meaningfully computed if the text emitted by the > subprocess will be rendered in its entirety using the default face. Sure, but that's the case of window-height as well. It's based on the size of a particular font regardless of what's contained in the buffer. > Not that I know of. We could provide a function for that, if this > functionality is deemed important enough. I guess the core of the problem is that having a width/height computed using default buffer font is more useful than using frame default font. Given that the docs were never clear maybe the behavior of existing functions could be changed. Or an additional font-toggling argument added to those. Vitalie