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#19395: 25.0.50; Setting left fringe to 0 messes up window-width Date: Sat, 20 Dec 2014 17:03:33 +0100 Message-ID: <54959DD5.3070009@gmx.at> References: <87vblbnz2u.fsf@posteo.de> <83k31rwe55.fsf@gnu.org> <87lhm772o2.fsf@posteo.de> <83h9wvwbux.fsf@gnu.org> <87bnn39cpe.fsf@posteo.de> <83a92mwau9.fsf@gnu.org> <874msu9out.fsf@posteo.de> <83vblauoh6.fsf@gnu.org> <87wq5q864m.fsf@posteo.de> <83tx0uum88.fsf@gnu.org> <87a92lmxy3.fsf@posteo.de> <837fxpue6v.fsf@gnu.org> <87oaqyz85s.fsf@posteo.de> <5495906D.7030800@gmx.at> <87k31mz6qy.fsf@posteo.de> 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 1419091469 390 80.91.229.3 (20 Dec 2014 16:04:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 16:04:29 +0000 (UTC) Cc: 19395@debbugs.gnu.org To: Titus von der Malsburg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 17:04:21 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 1Y2MVx-0005QV-K0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 17:04:21 +0100 Original-Received: from localhost ([::1]:34709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2MVw-0001xe-Ib for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 11:04:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2MVl-0001xR-RJ for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:04:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2MVe-0001xQ-B4 for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:04:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2MVe-0001xK-7V for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y2MVd-0001gO-Nf for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 11:04:01 -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, 20 Dec 2014 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19395-submit@debbugs.gnu.org id=B19395.14190914286444 (code B ref 19395); Sat, 20 Dec 2014 16:04:01 +0000 Original-Received: (at 19395) by debbugs.gnu.org; 20 Dec 2014 16:03:48 +0000 Original-Received: from localhost ([127.0.0.1]:53085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2MVQ-0001fr-9E for submit@debbugs.gnu.org; Sat, 20 Dec 2014 11:03:48 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:59607) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2MVN-0001fi-RY for 19395@debbugs.gnu.org; Sat, 20 Dec 2014 11:03:46 -0500 Original-Received: from [188.23.121.89] ([188.23.121.89]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MLOMM-1Y2ujd0eYc-000fQ4; Sat, 20 Dec 2014 17:03:43 +0100 In-Reply-To: <87k31mz6qy.fsf@posteo.de> X-Provags-ID: V03:K0:pdQktBe6lwbUePUVpLHhFJH85CXz48QqxNjhGJgGRMWMVKQ9giP tOBitoUnr00PcNORaBmHPnn2k8ATI+aONtrmD/aYmA8dth0BeBNi2HDqMLZ8KUXDT+7PolV LlRts/SkIJ9SDWfqzCZrR0PQoEP1IiLIjYiJ39yFPaEdHCIRFPy9867kqKMLuTdp/gkeohs jE8riCoik72889ySIAP6Q== 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:97613 Archived-At: > The thing is that the value is not fully determined by the buffer, so I > think the name buffer-font-width is a little > misleading. `frame-buffer-font-width' is more precise but also a little > unwieldy. I've been confused enough already. It would be nice to get this right once and for all. > The other problem is that `default-font-height' is already a > standard Emacs function and renaming it will cause problems. We would add an alias, obviously. >> > I also added the bonus feature which lets you specify a specific face >> > that should be used for the calculations. >> >> So are you now sure that we don't need a specific character ("M") any >> more? > > If I understand correctly, the returned value is based on the width of a > space. In proportional fonts that will of course differ from the width > of other characters. But I think this is not a big problem because the > notion of characters per line doesn't make sense for proportional fonts > and using proportional fonts in Emacs is a terrible idea > anyway. But perhaps this issue should be mentioned in the doc string. I forgot that it was Joe Corneli who asked for this in another thread. But once we have a function like `window-max-characters-per-line' it would make sense to have it consider the maximum width of a proportional font character as well and we'd fix his problem as well BTW, do we have some character or letter spacing which we should consider as well? IIRC somone asked here for an orthogonal function that would consider line spacing. martin