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: Fri, 15 Apr 2016 10:42:48 +0300 Message-ID: <8360vje2rr.fsf@gnu.org> References: <83y48gdxsy.fsf@gnu.org> <83h9f4dmd1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460706267 19386 80.91.229.3 (15 Apr 2016 07:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2016 07:44:27 +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 Fri Apr 15 09:44:12 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 1aqyQF-00089j-Nd for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Apr 2016 09:44:11 +0200 Original-Received: from localhost ([::1]:56591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyQE-0005ol-Ct for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Apr 2016 03:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyQ9-0005km-Jt for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 03:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqyQ6-0005BL-CV for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 03:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyQ6-0005B4-9S for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 03:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aqyQ6-0008Ex-1r for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 03:44: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: Fri, 15 Apr 2016 07:44: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.146070620331624 (code B ref 22891); Fri, 15 Apr 2016 07:44:02 +0000 Original-Received: (at 22891) by debbugs.gnu.org; 15 Apr 2016 07:43:23 +0000 Original-Received: from localhost ([127.0.0.1]:36102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqyPT-0008Dz-4G for submit@debbugs.gnu.org; Fri, 15 Apr 2016 03:43:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqyPR-0008Do-Tu for 22891@debbugs.gnu.org; Fri, 15 Apr 2016 03:43:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqyPL-00051k-Vn for 22891@debbugs.gnu.org; Fri, 15 Apr 2016 03:43:16 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqyPG-00051I-Jo; Fri, 15 Apr 2016 03:43:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1602 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aqyPF-0003qQ-QL; Fri, 15 Apr 2016 03:43:10 -0400 In-reply-to: (message from Anders Lindgren on Fri, 15 Apr 2016 09:11:12 +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:116487 Archived-At: > Date: Fri, 15 Apr 2016 09:11:12 +0200 > From: Anders Lindgren > Cc: 22891@debbugs.gnu.org, martin rudalics > > R2L lines display the continuation glyph on the left. > > > In fact, I just tried this with the left fringe set to 0 with a bidirectional text stretching multiple lines, and > the last > > text column didn't appear to be used at all. > > Sorry, I don't understand what you tried. Please show a screenshot. > > I've attached a screenshot where I've: You did that in *scratch*, which forces all lines to be L2R (because its major mode is Emacs Lisp, a programming language mode). See the value of bidi-paragraph-direction in that buffer. So all of your lines are L2R, they just display text in R2L script. To see what I meant, create a new buffer with "C-x b", then paste the same text there, after setting the left fringe width to zero. > Also, I noticed that `window-max-chars-per-line' does not take into account the variable `left-frame-width' (and > presumably `right-frame-width'). You mean left-fringe-width, I presume? Yes, that's probably a bug. > In the short term, I would like to see a function like `(continuation-glyph-visible-p WIN)' which could be used by > functions like `window-max-chars-per-line' to get the logic correct without having to resort to replicate the > details of the display engine (which, apparently, is non-trivial). > > In the long term, it would be great to have a `continuation-glyph-visible' frame property and corresponding > buffer-local variable. That way a user could decide the layout for themselves. Why is this useful, when we already have window-max-chars-per-line? IOW, when would you like to know about the continuation glyph, and not about how many characters can be displayed on a line?