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 09:18:34 -0800 Message-ID: <874msu9out.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> 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 1418836764 576 80.91.229.3 (17 Dec 2014 17:19:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2014 17:19:24 +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 18:19:18 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 1Y1IFp-0001iv-D0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 18:19:17 +0100 Original-Received: from localhost ([::1]:50825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1IFo-0004Ut-Je for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2014 12:19:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1IFg-0004Um-PU for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 12:19:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1IFa-0005Ti-Nu for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 12:19:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1IFa-0005Tc-KH for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 12:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y1IFa-0004ms-1G for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2014 12:19: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 17:19: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.141883672218374 (code B ref 19395); Wed, 17 Dec 2014 17:19:01 +0000 Original-Received: (at 19395) by debbugs.gnu.org; 17 Dec 2014 17:18:42 +0000 Original-Received: from localhost ([127.0.0.1]:49137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1IFG-0004mI-JF for submit@debbugs.gnu.org; Wed, 17 Dec 2014 12:18:42 -0500 Original-Received: from mx02.posteo.de ([89.146.194.165]:57371) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y1IFE-0004m8-JK for 19395@debbugs.gnu.org; Wed, 17 Dec 2014 12:18:41 -0500 Original-Received: from dovecot03.posteo.de (unknown [185.67.36.28]) by mx02.posteo.de (Postfix) with ESMTPS id 659B525A3DD8; Wed, 17 Dec 2014 18:18:39 +0100 (CET) Original-Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3k2jjT46xtz5vN7; Wed, 17 Dec 2014 18:18:37 +0100 (CET) In-reply-to: <83a92mwau9.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:97459 Archived-At: --=-=-= Content-Type: text/plain On 2014-12-17 Wed 07:32, Eli Zaretskii wrote: >> In term.el, I found a function that does what I want >> (`term-window-width') but requiring term.el only to use this >> function seems inappropriate. Duplicating this function is not >> perfect either. > > That function is in term.el because term.el is its only user. We > might consider moving it to a more general place, but please describe > the use case where you needed it. I'm the author of a number of extensions for Helm (helm-bibtex, helm-dictionary, helm-mu). These extensions display the results of a search in the form of tables. See here for an example: https://github.com/tmalsburg/helm-bibtex/raw/master/screenshot.png 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.) Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUkbrqAAoJEK40WfPGE2idyFYH/Ro4Rnb413F0bNBpiJKNizQ+ 21GGJtuyHnJ4RLUVVz3F7JgVAFDNOSYRZ8EfOmOoHV0pn6jFQasTFofYWt9ZeNhM xjHTnZfbNK0Luz+mw+xqgVzQ89XAZz5SeFoDz3cc+MMJEPPIT1RbCoa+tJuP2l+H wKXgy+s8Y3y6ODKTZMPT58ZJyYfbQtOFIS4FFfuzUMF55tfCjNhZc0jx/bxAefVl ZjlorSoyCyjiOwvNGX8ZcGOBhnyRpcSt5FtK76Kk16CfrrU3yXc+XqLjhpBHTfGH l7CF7fN09XmusKXVcgwGCmX8i7obJizNfyGFNrEWPmfNwqzdLDH0LEMOi2axb7c= =St/t -----END PGP SIGNATURE----- --=-=-=--