From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantine Vetoshev 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: Fri, 3 Oct 2014 13:53:03 -0700 Message-ID: References: <542D9D0F.5020002@gmx.at> <542E482D.6040001@gmx.at> <83y4sxgfv1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412370188 28688 80.91.229.3 (3 Oct 2014 21:03:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2014 21:03:08 +0000 (UTC) Cc: 18601@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 23:03:01 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 1XaA0D-0007iJ-7Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 23:03:01 +0200 Original-Received: from localhost ([::1]:41339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaA0C-0003bN-Sp for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 17:03:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa9rb-0006Zp-JJ for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 16:54:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xa9rW-0008JS-PS for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 16:54:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xa9rW-0008JN-Lr for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 16:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xa9rW-0001ED-1Y for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Constantine Vetoshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 20:54: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.14123696084667 (code B ref 18601); Fri, 03 Oct 2014 20:54:01 +0000 Original-Received: (at 18601) by debbugs.gnu.org; 3 Oct 2014 20:53:28 +0000 Original-Received: from localhost ([127.0.0.1]:60563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa9qx-0001DD-VM for submit@debbugs.gnu.org; Fri, 03 Oct 2014 16:53:28 -0400 Original-Received: from mail-la0-f50.google.com ([209.85.215.50]:34012) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xa9qu-0001D0-Bu for 18601@debbugs.gnu.org; Fri, 03 Oct 2014 16:53:26 -0400 Original-Received: by mail-la0-f50.google.com with SMTP id s18so1728926lam.37 for <18601@debbugs.gnu.org>; Fri, 03 Oct 2014 13:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=tWfN6ygZELOJsAcg11J7Op4u5/BLrk3kKuua/onm9jA=; b=PIUXs9stOLcNMWtx0FNPuyHmGf+a8uUE0WKR+IP/qLxKwvfemsUucmnuUYs2lsEVRf zoL/CYS/G0KYGMNH3RyGCCHQ6m8sKcDmEbBeU3IX+oq9Jk0OTVvDfr1svxUsI+wiQVCX b24zYjiqKNL15YuEe4Vq/7rXMxvNWD4JWkZVvQDix5EHw1OrAnXQVLTJnF/xev5QALqO 85lDMrQMpl/+UWKcuJnCmmeMDcQKQiJg57UPvtP4a1rQWDX5lbwzex/5R9I+XDMDF6+V cJMXV0KDyXDldP/UbqrafFQ+yvsOMHrfFeTib4DwxRPaK4GWMIUiacRZKNA7oPQPePcy 2xhg== X-Received: by 10.152.197.2 with SMTP id iq2mr8232422lac.87.1412369603102; Fri, 03 Oct 2014 13:53:23 -0700 (PDT) Original-Received: by 10.112.13.34 with HTTP; Fri, 3 Oct 2014 13:53:03 -0700 (PDT) In-Reply-To: <83y4sxgfv1.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:94107 Archived-At: 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 =E2=80=98xemacs)) (display-graphic-p) overflow-newline-into-fringe (/=3D (frame-parameter nil =E2=80=98right-fringe) 0) (/=3D (frame-parameter nil =E2=80=98left-fringe) 0)) (window-body-width) (1- (window-body-width)))) That does make the problem go away.