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#18601: 24.3.94; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS Date: Sat, 04 Oct 2014 10:08:44 +0300 Message-ID: <83vbo0gvlv.fsf@gnu.org> References: <542D9D0F.5020002@gmx.at> <542E482D.6040001@gmx.at> <83y4sxgfv1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1412406563 2267 80.91.229.3 (4 Oct 2014 07:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2014 07:09:23 +0000 (UTC) Cc: 18601@debbugs.gnu.org To: Constantine Vetoshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 09:09:16 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 1XaJSt-0004WP-Ua for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 09:09:16 +0200 Original-Received: from localhost ([::1]:42795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaJSt-0005Nr-FY for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 03:09:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaJSl-0005Nk-M4 for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 03:09:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaJSg-0003Fi-GI for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 03:09:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaJSg-0003Fe-Dk for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 03:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XaJSf-0002zC-SE for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 03:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Oct 2014 07:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18601-submit@debbugs.gnu.org id=B18601.141240652711450 (code B ref 18601); Sat, 04 Oct 2014 07:09:01 +0000 Original-Received: (at 18601) by debbugs.gnu.org; 4 Oct 2014 07:08:47 +0000 Original-Received: from localhost ([127.0.0.1]:60719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaJSR-0002yc-6g for submit@debbugs.gnu.org; Sat, 04 Oct 2014 03:08:47 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:59551) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaJSN-0002yR-S2 for 18601@debbugs.gnu.org; Sat, 04 Oct 2014 03:08:45 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NCW00J00R8MFT00@a-mtaout21.012.net.il> for 18601@debbugs.gnu.org; Sat, 04 Oct 2014 10:08:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCW00JT6RUHCF70@a-mtaout21.012.net.il>; Sat, 04 Oct 2014 10:08:42 +0300 (IDT) In-reply-to: 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:94112 Archived-At: > From: Constantine Vetoshev > Date: Fri, 3 Oct 2014 13:53:03 -0700 > Cc: martin rudalics , 18601@debbugs.gnu.org > > On Fri, Oct 3, 2014 at 11:36 AM, Eli Zaretskii wrote: > > I think you should correct term-window-width to subtract 1 from the > > width when any fringe has zero width, not just the right fringe. > > I think I understand. How about this? > > (defun term-window-width () > (if (and (not (featurep ‘xemacs)) > (display-graphic-p) > overflow-newline-into-fringe > (/= (frame-parameter nil ‘right-fringe) 0) > (/= (frame-parameter nil ‘left-fringe) 0)) > (window-body-width) > (1- (window-body-width)))) > > That does make the problem go away. That's what I meant, yes.