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: Fri, 15 Apr 2016 10:05:19 +0200 Message-ID: References: <83y48gdxsy.fsf@gnu.org> <83h9f4dmd1.fsf@gnu.org> <8360vje2rr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114389d4d5025105308178d9 X-Trace: ger.gmane.org 1460707581 7992 80.91.229.3 (15 Apr 2016 08:06:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2016 08:06:21 +0000 (UTC) Cc: 22891@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 15 10:06: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 1aqylY-00021R-KJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Apr 2016 10:06:12 +0200 Original-Received: from localhost ([::1]:56910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqylY-0001YH-0H for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Apr 2016 04:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqylU-0001WC-03 for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 04:06:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqylO-0002rH-Ux for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 04:06:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqylO-0002rD-R8 for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aqylO-0000Jh-HF for bug-gnu-emacs@gnu.org; Fri, 15 Apr 2016 04:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Apr 2016 08:06: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.14607075261174 (code B ref 22891); Fri, 15 Apr 2016 08:06:02 +0000 Original-Received: (at 22891) by debbugs.gnu.org; 15 Apr 2016 08:05:26 +0000 Original-Received: from localhost ([127.0.0.1]:36135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqyko-0000Is-Hv for submit@debbugs.gnu.org; Fri, 15 Apr 2016 04:05:26 -0400 Original-Received: from mail-vk0-f44.google.com ([209.85.213.44]:33816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqykn-0000Ig-1j for 22891@debbugs.gnu.org; Fri, 15 Apr 2016 04:05:25 -0400 Original-Received: by mail-vk0-f44.google.com with SMTP id e185so138385222vkb.1 for <22891@debbugs.gnu.org>; Fri, 15 Apr 2016 01:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=/Z+/KaO9PjIH35UrCj/7fRDnJy5FBNYc2maUaqK+8Z4=; b=goJIzOtApmAVYFUXMXddsLRWk8BY/coXM27XKizRCJKYQE6zqPY8BgMPQSlwho7HAy hUBHyry9aSXJcpvViubbSMqEOTcnJ5zFbPxNEuzLLCawDr1qjKF9aSIAOien11Iwjxu4 SXtnMJkhpeTE7zwZK8NRGuCs1g8tRl+ow5NyqqQXJ2O/5RrtBu0izZNE+l4oYi8Gw6Wz ms8GQiUDWKae3YgBUVQYd8/c6LgRe/xt5rbq1UP1/Mt4hoLpx7CEqGT4OUMmKMLrNayI wXEJOO37f6YUyTPVbAiExko3VyvptU+9yAfWxTWcoX2P+gPVOYpbTE3yPihHCJw/A3K0 xnSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=/Z+/KaO9PjIH35UrCj/7fRDnJy5FBNYc2maUaqK+8Z4=; b=dCYW91eZIQurDp55+NlB8d/PaBWldwm9ERM1sfmktsBLFtRalB2Wxni7e77ZL0FQMD PDlJ4uqw8Dwq+2KdGwFE+lIFh0BvM7M8ZKAmVF+SwvVFIaf+vVVGw7cwK9RzV+f0iSMg uX5U/PV7BoROWPyhnXCGoWKaa3k/saqLyxmyKQw3r3QBluuCT7bgsULFNUb9FIvVrDsH LZwbg2gBZf8KwZ6fz2CcavWtOuYzJWGczezSKQ8qQJ/BEaBSY71FTHGGXWeDypZDM6C/ gykfifRDrK5iq8BRQmyMgQhjRnBgZGr5PJBCLnwnRq0nV9IESi0qDOCvRyh24OYWrn01 TJag== X-Gm-Message-State: AOPr4FVG3XVC1FipFAsvlOGYEJa2S5NZCcucnwTx2ToOLKUFkFSynuElCg5SuDXAhPBYp25lQ6T7hiOtLiUntA== X-Received: by 10.31.58.83 with SMTP id h80mr9787790vka.149.1460707519691; Fri, 15 Apr 2016 01:05:19 -0700 (PDT) Original-Received: by 10.31.214.131 with HTTP; Fri, 15 Apr 2016 01:05:19 -0700 (PDT) In-Reply-To: <8360vje2rr.fsf@gnu.org> 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:116491 Archived-At: --001a114389d4d5025105308178d9 Content-Type: text/plain; charset=UTF-8 Hi! 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. > Yes, now I see it. (However, the continuation characters disappeared when L2R text was entered on the line before the R2L text.) > 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. > Yes, I mean `left-fringe-width'. > 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? > I intended it as a way to implement `window-max-chars-per-line' in a more robust way than today. In addition, I can think of a use case. If you want to create a window of a specific width, excluding the continuation glyph, this can be used: (split-window-right (if (continuation-glyph-visible-p (selected-window)) (+ width 1) width)) -- Anders --001a114389d4d5025105308178d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

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.

Yes, now I see it. (However, the continuation charac= ters disappeared when L2R text was entered on the line before the R2L text.= )
=C2=A0

&g= t; 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?=C2=A0 Yes, that's probabl= y a bug.

Yes, I mean `left-fringe-width= '.

=C2=A0
Why is this us= eful, 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?
=
I intended it as a way to implement `window-max-chars-per-li= ne' in a more robust way than today.

In additi= on, I can think of a use case. If you want to create a window of a specific= width, excluding the continuation glyph, this can be used:
=C2= =A0 =C2=A0
=C2=A0 =C2=A0(split-window-right (if (continuation-gly= ph-visible-p (selected-window))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (+ width 1)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 w= idth))

=C2=A0 =C2=A0 -- Anders

--001a114389d4d5025105308178d9--