From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.bugs Subject: bug#19194: 24.4.50; `window-body-width' is not dynamic relative to font size changes Date: Wed, 26 Nov 2014 16:34:21 +0000 Message-ID: <87tx1lrkdu.fsf@gmail.com> References: <87h9xm6plp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417019732 6234 80.91.229.3 (26 Nov 2014 16:35:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 16:35:32 +0000 (UTC) Cc: 19194@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 17:35:24 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 1XtfYn-00059c-G5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 17:35:21 +0100 Original-Received: from localhost ([::1]:34718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtfYn-0007Te-3Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 11:35:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtfYb-0007RK-M9 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 11:35:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtfYU-0006I8-4M for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 11:35:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtfYT-0006HU-VG for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 11:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XtfYT-0002MS-JT for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 11:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Joe Corneli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Nov 2014 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19194-submit@debbugs.gnu.org id=B19194.14170196709023 (code B ref 19194); Wed, 26 Nov 2014 16:35:01 +0000 Original-Received: (at 19194) by debbugs.gnu.org; 26 Nov 2014 16:34:30 +0000 Original-Received: from localhost ([127.0.0.1]:46406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtfXx-0002LT-Hx for submit@debbugs.gnu.org; Wed, 26 Nov 2014 11:34:29 -0500 Original-Received: from mail-wi0-f179.google.com ([209.85.212.179]:45039) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtfXu-0002LK-Kt for 19194@debbugs.gnu.org; Wed, 26 Nov 2014 11:34:27 -0500 Original-Received: by mail-wi0-f179.google.com with SMTP id ex7so5592411wid.6 for <19194@debbugs.gnu.org>; Wed, 26 Nov 2014 08:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; bh=VGP2+R1ymU5G5OA8xbV/stryTUszRd7kN5AlV6lKghg=; b=AxDL1hmTQPQuFDJ04ipA+/aNAkrjh07fcafQ72OY/cbXrqGvdeKbqebLmnksoW84PJ DDx4FrcBM9nndacDRq488+XJKn5OnCtBNmVqb0OvK5+p2QIQUIKRUNCJEpha2UaVS7az OggphyC1P389z+w3IiZawLx3tx7FY94ElVYzo4hmphaAzaALV4zkeObKM/ssTpZnDLTk ARe5UsfVqF1zhVc8hP0V/IFp5NR45ILorSe8iETDywjeL2Fdbxt3CY3ZqN5VK4KA4r0L kpF/UZm2zd5HBIBgtW9BjwrtcvfuEGjp72j1q5iDnlq3oUc6JNeBmdwkP4x0IIUOfojT JI8A== X-Received: by 10.180.211.196 with SMTP id ne4mr7174727wic.71.1417019665682; Wed, 26 Nov 2014 08:34:25 -0800 (PST) Original-Received: from Teacup (cpc2-flit3-2-0-cust79.9-1.cable.virginm.net. [213.105.32.80]) by mx.google.com with ESMTPSA id qg11sm1087711wic.17.2014.11.26.08.34.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 08:34:24 -0800 (PST) In-reply-to: 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:96626 Archived-At: On Wed, Nov 26 2014, Eli Zaretskii wrote: > One simple technique is to measure everything in pixels, but I don't > know at this point whether this will solve your use case. That would probably do it for me, yes. On Wed, Nov 26 2014, Stefan Monnier wrote: >> function to return the "actual" number of columns. > > How do you define "actual number of columns" in the presence of > proportional fonts, images, and text of variable size? I hadn't considered anything but fixed width fonts with uniform size -- but, for instance, the width could be reported in em-length units. If people switch fonts mid-line, that's clearly a pain - but "ems" could be defined relative to point-size-at-point, and would accordingly return an accurate *length*. In the general not the same as the "actual number of columns" - but possibly still of use.