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#22891: 25.0.92; set-fringe-mode with left fringe 0 breaks window width calculations on Mac OS (again) Date: Thu, 14 Apr 2016 18:17:49 +0300 Message-ID: <83y48gdxsy.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460647171 2002 80.91.229.3 (14 Apr 2016 15:19:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 15:19:31 +0000 (UTC) Cc: 22891@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 14 17:19:16 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 1aqj34-0005RS-OU for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Apr 2016 17:19:14 +0200 Original-Received: from localhost ([::1]:41587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqj34-0001KM-6E for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Apr 2016 11:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqj2u-0001C8-Ri for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 11:19:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqj2s-0008G7-6a for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 11:19:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqj2s-0008Fs-3L for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aqj2r-0005Xt-TU for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2016 11:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Apr 2016 15:19:01 +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.146064711021274 (code B ref 22891); Thu, 14 Apr 2016 15:19:01 +0000 Original-Received: (at 22891) by debbugs.gnu.org; 14 Apr 2016 15:18:30 +0000 Original-Received: from localhost ([127.0.0.1]:35461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqj2L-0005X3-WD for submit@debbugs.gnu.org; Thu, 14 Apr 2016 11:18:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqj2K-0005Wi-Lu for 22891@debbugs.gnu.org; Thu, 14 Apr 2016 11:18:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqj2B-0007x0-Cy for 22891@debbugs.gnu.org; Thu, 14 Apr 2016 11:18:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqj26-0007v6-SA; Thu, 14 Apr 2016 11:18:14 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1138 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aqj26-0000nG-6y; Thu, 14 Apr 2016 11:18:14 -0400 In-reply-to: (message from Anders Lindgren on Thu, 14 Apr 2016 07:33:15 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:116457 Archived-At: > Date: Thu, 14 Apr 2016 07:33:15 +0200 > From: Anders Lindgren > > 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. This is all as expected: setting any of the fringes to zero requires displaying a continuation glyph in the text area, and since Emacs supports bidirectional display, we need to usurp one character cell from the other edge of the window as well, to make the geometry of L2R and R2L screen lines symmetrical. > Presumably, this is the root cause of the ansi-term problem. If this causes trouble in ansi-term, then ansi-term should be fixed to take this into consideration. (Presumably, ansi-term uses wrong interfaces to get at the width of the text area.) > 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. This is not Martin's problem, this is a problem in ansi-term (AFAIU).