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: Wed, 17 Dec 2014 10:48:25 -0800 Message-ID: <87wq5q864m.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> 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 1418842168 32324 80.91.229.3 (17 Dec 2014 18:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2014 18:49:28 +0000 (UTC) Cc: 19395@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 19:49:19 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 1Y1Jew-0005oL-FB for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 19:49:18 +0100 Original-Received: from localhost ([::1]:51138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Jev-0001xF-EC for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 13:49:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Jen-0001wu-I7 for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 13:49:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1Jeh-0003Vm-1y for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 13:49:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Jeg-0003Uc-Vj for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 13:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y1Jeg-0002lX-HD for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 13:49:02 -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: Wed, 17 Dec 2014 18:49:02 +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.141884211810598 (code B ref 19395); Wed, 17 Dec 2014 18:49:02 +0000 Original-Received: (at 19395) by debbugs.gnu.org; 17 Dec 2014 18:48:38 +0000 Original-Received: from localhost ([127.0.0.1]:49250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1JeI-0002kr-6R for submit@debbugs.gnu.org; Wed, 17 Dec 2014 13:48:38 -0500 Original-Received: from mx02.posteo.de ([89.146.194.165]:59711) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1JeF-0002kh-3e for 19395@debbugs.gnu.org; Wed, 17 Dec 2014 13:48:36 -0500 Original-Received: from dovecot03.posteo.de (unknown [185.67.36.28]) by mx02.posteo.de (Postfix) with ESMTPS id E937E25A2107; Wed, 17 Dec 2014 19:48:33 +0100 (CET) Original-Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3k2ljD0WSgz5vN5; Wed, 17 Dec 2014 19:48:31 +0100 (CET) In-reply-to: <83vblauoh6.fsf@gnu.org> 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:97462 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-12-17 Wed 10:21, Eli Zaretskii wrote: >> From: Titus von der Malsburg >> Cc: 19395@debbugs.gnu.org >> Date: Wed, 17 Dec 2014 09:18:34 -0800 >>=20 >> I want to use the full number of available columns for displaying data >> but avoid line breaks at all cost because they would mess up the table >> layout. That's why I need a robust way to determine the maximal number >> of characters that I can put on a line. `term-window-width' is better >> at doing that then `window-width' because it corrects (window-width) in >> a number of special cases. (It's not perfect, though, because like >> `window-width' it ignores the size of the font in the window and >> pretends the window is using the default size.) > > Exactly. So perhaps we need a different function, one that returns > exactly the result that you want here. The problem is that there may not be a clean solution to that problem. A buffer can contain text is several font sizes and as far as I know there is no notion of a default size for a buffer, or is there? In my special case, I have the font size under control and `term-window-width' would be good enough. Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUkc/6AAoJEK40WfPGE2id+/MH/33e6NpesrUyRzzfLuaomBXa Ph453OKGFxy31L2y9Y1CkhL9lFjSPWWxsDTxj2QJSVsE1hr60quN7rEqrNR3osCK qtwpxm/xJ+yFe/dOrWRBkZG7DSUw2Ba3tU7bu6N6jz5AJV6ZdpBRPoM16t0XKmkm ueBOmOtYmXvRTgloRmqhVSYdSW6w6RdX6h0G1NP8kv4MNkA6J87F4uh+I5Ll4T1h kTnfzRORrUmceoB0v8rJx7cHTNWse+s12BQY1XVDWSlXMk5MwdylxLdlP2SA2+74 DRz4UNo2sJuwUrAn/LBdWCbr04jmLe+Uz5ZE8x3dbZT+FQszb3QSHbqaH61AfQ8= =ZGX2 -----END PGP SIGNATURE----- --=-=-=--