From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#22891: 25.0.92; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS (again) Date: Thu, 14 Apr 2016 07:33:15 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d0aa02b571705306b3b53 X-Trace: ger.gmane.org 1460612063 12374 80.91.229.3 (14 Apr 2016 05:34:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 05:34:23 +0000 (UTC) To: 22891@debbugs.gnu.org, martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 14 07:34:13 2016 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 1aqZuu-00013t-AC for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Apr 2016 07:34:12 +0200 Original-Received: from localhost ([::1]:59502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqZut-0000TL-L2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Apr 2016 01:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqZup-0000R7-Bv for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 01:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqZuk-0007c4-C4 for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 01:34:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqZuk-0007c0-8q for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 01:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aqZuk-0004ea-4a for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 01:34:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Apr 2016 05:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22891-submit@debbugs.gnu.org id=B22891.146061200317835 (code B ref 22891); Thu, 14 Apr 2016 05:34:02 +0000 Original-Received: (at 22891) by debbugs.gnu.org; 14 Apr 2016 05:33:23 +0000 Original-Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqZu7-0004da-8y for submit@debbugs.gnu.org; Thu, 14 Apr 2016 01:33:23 -0400 Original-Received: from mail-vk0-f51.google.com ([209.85.213.51]:35261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqZu5-0004dO-9N for 22891@debbugs.gnu.org; Thu, 14 Apr 2016 01:33:21 -0400 Original-Received: by mail-vk0-f51.google.com with SMTP id t129so97407614vkg.2 for <22891@debbugs.gnu.org>; Wed, 13 Apr 2016 22:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=z1Hoc1JXbK6nB1jpCSTVJnHZ2jDRXgoVSvnIf0xwPB4=; b=QVPO8Qx9USx5ricMog/aSyu9ECPSsKzjHbf7M+GZNUZr+YGy26tSNYTqSZBG3yGLJY CPoat4FR5lkSpOOQa2yOXF2L3HzjQ6WcKZCbmPPzgwVZjl/lTJgHn92fAfUGp0AFuyYG rSFCZn3ZkH1EvFbWQZU40wUHzjJHNAQuMWA7cQCVqT/fUM11AipqEAu0ujJqjcqBFcAZ 5V1jpxE6cJGJDNSnUASd3V1MtFc2bNM/f0TTDOgfhDwWGU8Go3UZuQZNRMYXZHcYsGe1 tvacen8Pj8u38QgaFPF+ii/PiuqWCW7wIr2Fp2xLfbUo0AWeuT6u1b/xxZY7weJpF6MR Aejw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=z1Hoc1JXbK6nB1jpCSTVJnHZ2jDRXgoVSvnIf0xwPB4=; b=XtqPRTY9ZCBlYP0mCG6wZahYnAjaABYQ3RJQ21ErzU4jcBEgw1smrJKFY9hn+ngcbE cMtrshcO4iXFXhY9lgitvSxzafKOFDhtDYYaTrsAO6MJNfJn2hevZQBGbiUMqDbao9nB esYRJm4fyaPDKRCMhaJ23vaxkDV0e+AiZh60eY0yyvEGD234w389LZoIcLvVs44xGYSf 1zMd65eU2yuu79eNSraKomKf/Pv8te5Is0OoppXlAuaMbzqYNcZtXAkJA0dW3BvbeXgq 5QzWeHQczXBtqsE86QvDklT8IwumEMcp5qQFbM+uO6oGL1acaBHWb4OIKwFdnNGVUHsX bK7Q== X-Gm-Message-State: AOPr4FUWwbYmaxXol9fEQOOfPb6xHxnKwKDrCBeS8dd07/eVSa7Pg5rj8MzA4oMFB9bk+t38UCyZjOOfFE1G+g== X-Received: by 10.159.37.137 with SMTP id 9mr5891105uaf.25.1460611995880; Wed, 13 Apr 2016 22:33:15 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Wed, 13 Apr 2016 22:33:15 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116448 Archived-At: --001a113d0aa02b571705306b3b53 Content-Type: text/plain; charset=UTF-8 Hi! I took a look at this from the NS port point of view. Setting the `left-frame' frame parameter to any from 1 and up change the width of the fringe, while retaining the width of the text area (80 characters). However, setting it to 0 makes the text area wrap on 79 characters (despite there being space for the 80:th character) while `window-width' still returns 80. Presumably, this is the root cause of the ansi-term problem. However, to check if this was a NS specific problem, I tested this on a freshly built GTK+ emacs on LinuxMint. It turned out that it, too, suffers from the same problem, so I'm handing over this to you, Martin. Steps to repeat: emacs -Q C-u 8 0 x RET ;; This inserts a line wide enough to reach the right side of the screen without wrapping) (set-frame-parameter (selected-frame) 'left-fringe 50) ;; This makes the left fringe wide, the text area still holds the 80 x:s nicely. (window-width) ;; 80 (set-frame-parameter (selected-frame) 'left-fringe 1) ;; Narrow left fringe. Text area still holds the x:s (window-width) ;; 80 (set-frame-parameter (selected-frame) 'left-fringe 0) ;; The line of x:s wrap (window-width) ;; 80 -- inconsistent with what is displayed on screen. -- Anders --001a113d0aa02b571705306b3b53 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I took a look at this from the NS p= ort point of view.

Setting the `left-frame' fr= ame parameter to any from 1 and up change the width of the fringe, while re= taining the width of the text area (80 characters). However, setting it to = 0 makes the text area wrap on 79 characters (despite there being space for = the 80:th character) while `window-width' still returns 80.
<= br>
Presumably, this is the root cause of the ansi-term problem.<= /div>

However, to check if this was a NS specific proble= m, I tested this on a freshly built GTK+ emacs on LinuxMint. It turned out = that it, too, suffers from the same problem, so I'm handing over this t= o you, Martin.

Steps to repeat:

=C2=A0 =C2=A0emacs -Q
=C2=A0 =C2=A0C-u 8 0 x RET
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; This inserts a line wide enough to reach th= e right side of the screen without wrapping)
=C2=A0 =C2=A0(set-fr= ame-parameter (selected-frame) 'left-fringe 50)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 ;; This makes the left fringe wide, the text area still hold= s the 80 x:s nicely.
=C2=A0 =C2=A0(window-width)
=C2=A0= =C2=A0 =C2=A0 =C2=A0 ;; 80
=C2=A0 =C2=A0(set-frame-parameter (se= lected-frame) 'left-fringe 1)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= ;; Narrow left fringe. Text area still holds the x:s
=C2=A0= =C2=A0(window-width)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; 80
=C2=A0 =C2=A0(set-frame-parameter (selected-frame) 'left-fringe 0)
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; The line of x:s wrap
<= div>
=C2=A0 =C2=A0(window-width)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = ;; 80 -- inconsistent with what is displayed on screen.
=C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
=C2=A0 =C2=A0 -- Anders
<= div>
--001a113d0aa02b571705306b3b53--