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#19194: 24.4.50; `window-body-width' is not dynamic relative to font size changes Date: Sat, 20 Dec 2014 20:29:29 +0200 Message-ID: <83ppbeqinq.fsf@gnu.org> References: <87h9xm6plp.fsf@gmail.com> <5476F298.5000205@gmx.at> <87ppc8rk08.fsf@gmail.com> <54776EED.9090303@gmx.at> <83y4qwmq66.fsf@gnu.org> <54778275.1090007@gmx.at> <83tx1kml24.fsf@gnu.org> <54782441.3030600@gmx.at> <83h9xjn1zz.fsf@gnu.org> <5478C11C.6050207@gmx.at> <83r3vvsa0p.fsf@gnu.org> <54954B15.7040002@gmx.at> <87r3vuedxm.fsf@gmail.com> <54958C83.8010209@gmx.at> <834msqs3ap.fsf@gnu.org> <5495A466.7040802@gmx.at> <83wq5mqne6.fsf@gnu.org> <5495B73C.6060006@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1419100227 398 80.91.229.3 (20 Dec 2014 18:30:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 18:30:27 +0000 (UTC) Cc: holtzermann17@gmail.com, 19194@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 19:30:20 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 1Y2OnB-0000EG-Vr for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 19:30:18 +0100 Original-Received: from localhost ([::1]:35470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2OnB-0006dc-4G for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 13:30:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2On3-0006dE-0Q for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 13:30:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2Omx-0008WE-9f for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 13:30:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2Omx-0008Vb-7W for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 13:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y2Omw-0005Rc-L3 for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 13:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Dec 2014 18:30:02 +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.141910018320860 (code B ref 19194); Sat, 20 Dec 2014 18:30:02 +0000 Original-Received: (at 19194) by debbugs.gnu.org; 20 Dec 2014 18:29:43 +0000 Original-Received: from localhost ([127.0.0.1]:53296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2Omc-0005QM-Ob for submit@debbugs.gnu.org; Sat, 20 Dec 2014 13:29:43 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:60474) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2Oma-0005Q6-Hg for 19194@debbugs.gnu.org; Sat, 20 Dec 2014 13:29:41 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NGW009008EWS700@a-mtaout22.012.net.il> for 19194@debbugs.gnu.org; Sat, 20 Dec 2014 20:29:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGW0097C8PEHL50@a-mtaout22.012.net.il>; Sat, 20 Dec 2014 20:29:39 +0200 (IST) In-reply-to: <5495B73C.6060006@gmx.at> X-012-Sender: halo1@inter.net.il 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:97629 Archived-At: > Date: Sat, 20 Dec 2014 18:51:56 +0100 > From: martin rudalics > CC: holtzermann17@gmail.com, 19194@debbugs.gnu.org > > >> Probably to know how many characters fit into a line. With a > >> proportional font. > > > > But for a proportional font, that question has no meaningful answer. > > Using the maximum width could yield a result that it a gross > > underestimation. I fail to see how this could be more useful than > > using the average width. > > Are we sure that all numbers fit into the average width. If not, we can > get problems with line numbers. Like I said: you will get a wrong answer either way. I think this is simply the wrong way to do it. I cannot suggest a better way without knowing more about the particular application. > BTW you probably might want to close bugs 1255, 8379 and 10960 now ;-) So can you ;-) > >> He wants the width of a default font "M" (where the default fount could > >> be proportional) filtered by the frame it appears on and the remapping > >> specified for the buffer the character appears in. > > > > Once you get the font used by a face on that frame and buffer, the > > font parameters are fixed. > > I lost you here. Does that mean that with proportional fonts an "M" and > an "I" have different fonts? I'm saying that specifying the font by a face on a frame makes any "filtering" redundant.