From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Titus von der Malsburg Newsgroups: gmane.emacs.bugs Subject: bug#19395: 25.0.50; Setting left fringe to 0 messes up window-width Date: Sat, 20 Dec 2014 16:21:57 +0100 Message-ID: <87k31mz6qy.fsf@posteo.de> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1419089013 29979 80.91.229.3 (20 Dec 2014 15:23:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2014 15:23:33 +0000 (UTC) Cc: 19395@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 16:23: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 1Y2LsH-0000NF-Px for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 16:23:22 +0100 Original-Received: from localhost ([::1]:34661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2LsG-0004x9-H1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Dec 2014 10:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2Ls5-0004vv-PC for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 10:23:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2Lry-0003aP-96 for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 10:23:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2Lry-0003aL-4T for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 10:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y2Lrx-0000Vj-QE for bug-gnu-emacs@gnu.org; Sat, 20 Dec 2014 10:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Titus von der Malsburg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Dec 2014 15:23: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.14190889221730 (code B ref 19395); Sat, 20 Dec 2014 15:23:01 +0000 Original-Received: (at 19395) by debbugs.gnu.org; 20 Dec 2014 15:22:02 +0000 Original-Received: from localhost ([127.0.0.1]:53076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2Lqz-0000Rf-QI for submit@debbugs.gnu.org; Sat, 20 Dec 2014 10:22:02 -0500 Original-Received: from mx02.posteo.de ([89.146.194.165]:36980) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y2Lqx-0000RI-NY for 19395@debbugs.gnu.org; Sat, 20 Dec 2014 10:22:00 -0500 Original-Received: from dovecot03.posteo.de (unknown [185.67.36.28]) by mx02.posteo.de (Postfix) with ESMTPS id E608425AF516; Sat, 20 Dec 2014 16:21:58 +0100 (CET) Original-Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3k4VzV3nzWz5vN3; Sat, 20 Dec 2014 16:21:58 +0100 (CET) In-reply-to: <5495906D.7030800@gmx.at> 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:97612 Archived-At: --=-=-= Content-Type: text/plain On 2014-12-20 Sat 16:06, martin rudalics wrote: > > (defun default-font-width () > > "Return the width in pixels of the current buffer's default face font. > > I profoundly dislike the "default-" prefix here. `buffer-font-height' > and `buffer-font-width' would be much better IMHO. 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. The other problem is that `default-font-height' is already a standard Emacs function and renaming it will cause problems. > > 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. Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUlZQVAAoJEK40WfPGE2idUmMIAIVIOLnI3uwOokLc8ueyH2b/ 7/Bs0qMo3h+GLHbadxRN3CDMHLiIYxmUue9jr4KM1T9aECVE/GXcx1Nyf9xv1lhs WbmAPcCUdVK26aaD0Gs9dQylQJ1N1Z17w3KYYIaSiuropo7sbRUUyBDgWp0x/gP/ ZcpSAaumyXFQHNXV+q/o4Bh3BBFVHM0CoE8XeuplqL137wlWeyHKbF6hJs4QsEG5 xx9p7F4u7grUrE8OHS7m2DM0jtLBro34f+L1ojH5Vd+XHLdQ8Fobuilk8YmRMhP/ QTvM8oAuBlU92CVxYTDnAE2LNTWZpfsJ2ROJkBOqNWZr6jrphFDAogQD7oDljZA= =g/Y/ -----END PGP SIGNATURE----- --=-=-=--