From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: word-wrap and wrapping before window-width Date: Wed, 31 Dec 2014 19:18:39 +0200 Message-ID: <83387vd9g0.fsf@gnu.org> References: <87sig6xech.fsf@ferrier.me.uk> <83fvc5ni0u.fsf@gnu.org> <87k31fwwyv.fsf@ferrier.me.uk> <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <878uhrcr5l.fsf@building.gnus.org> <83sifzjflk.fsf@gnu.org> <87egric2ki.fsf_-_@violet.siamics.net> <877fxaa49w.fsf@violet.siamics.net> <831tnicji7.fsf@gnu.org> <87vbks7bk5.fsf@violet.siamics.net> <83r3vga3g1.fsf@gnu.org> <87r3vg73bl.fsf@violet.siamics.net> <838uhndc44.fsf@gnu.org> <87387v7p2i.fsf@violet.siamics.net> Reply-To: Eli Zaretskii 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 1420046354 27697 80.91.229.3 (31 Dec 2014 17:19:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 17:19:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 18:19:09 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Y6MvM-0007DL-Mf for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2014 18:19:08 +0100 Original-Received: from localhost ([::1]:40865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6MvL-0004XF-Tv for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2014 12:19:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6Mv8-0004X4-KG for emacs-devel@gnu.org; Wed, 31 Dec 2014 12:18:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6Mv4-0004oQ-JI for emacs-devel@gnu.org; Wed, 31 Dec 2014 12:18:54 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6Mv4-0004ny-B3 for emacs-devel@gnu.org; Wed, 31 Dec 2014 12:18:50 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NHG00800IE9GT00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Wed, 31 Dec 2014 19:18:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHG00830IRAHI10@a-mtaout20.012.net.il>; Wed, 31 Dec 2014 19:18:48 +0200 (IST) In-reply-to: <87387v7p2i.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180903 Archived-At: > From: Ivan Shmakov > Date: Wed, 31 Dec 2014 16:37:41 +0000 >=20 > >>>>> Eli Zaretskii writes: > >>>>> From: Ivan Shmakov Date: Wed, 31 Dec 2014 06:15:10 +0000 >=20 > [=E2=80=A6] >=20 > >> https://www.gnu.org/software/emacs/manual/html_node/elisp/Box-D= iagrams.html >=20 > > What I see there is not what was described in this discussion. = There > > are blocks of text there that are exempt from word wrap, that's = all. >=20 > =09That=E2=80=99s also all what I=E2=80=99ve initially requested: t= o be able to > =09mark portions of text as exempt from word wrap. (Or, better > =09still, =E2=80=93 to force truncation for such lines.) No, you said: =09There=E2=80=99s an minor issue of how to display word-wrapped line= s =09while the window is scrolled horizontally. Currently, =09horizontal scrolling simply inhibits word-wrap.^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ And Firefox does that too: it inhibits word wrap when horizontal scrolling is in effect. It just doesn't unwrap what was already wrapped, that's all the difference. > > But as soon as you make the window narrow enough to have the > > horizontal scroll bar appear, and you scroll horizontally using = that > > scroll bar, the entire text is scrolled as one rigid body, >=20 > =09With lines being wrapped /past/ the window=E2=80=99s own borders= , right? No, dynamic wrapping is disabled there. Firefox simply keeps the result of the last wrapping. > =09So, you=E2=80=99d see exactly the picture Stefan has provided ea= rlier: >=20 > SM> +---------+ > SM> here is t|he example| > SM> wrapped t|ext | > SM> ^ | > SM> window border | > SM> | > SM> ^ > SM> wrap-column >=20 > =09Or perhaps even: >=20 > |=E2=86=90 window borders =E2=86=92| > He|e is the more or l|ss > th| same example text| =E2=86=96 > | | wrap-column >=20 > =09Such display is clearly possible with Firefox, while the Emacs > =09display engine so far doesn=E2=80=99t support it. Yes, but Emacs has a harder job to do: the above model is problematic with bidirectional text when a single buffer has paragraphs of different directionality (which Firefox doesn't seem to support). > > exactly as Emacs does with horizontal scrolling. >=20 > =09It isn=E2=80=99t the behavior I observe, =E2=80=93 when I scroll= a Emacs window > =09horizontally, all the lines that were wrapped are magically > =09unwrapped. I meant the scrolling part -- everything as a rigid body. The unwrapping part is a clear evidence that some feature is missing in Emacs, no argument there.