From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bidi,gmane.emacs.devel Subject: Re: Mixed L2R and R2L paragraphs and horizontal scroll Date: Sat, 30 Jan 2010 19:52:58 +0200 Message-ID: <83mxzviio5.fsf@gnu.org> References: <83tyu3iu6b.fsf@gnu.org> <4B645FF4.30205@gmx.at> <83ockbil1v.fsf@gnu.org> <4B646AD3.1010102@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1264874001 24077 80.91.229.12 (30 Jan 2010 17:53:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2010 17:53:21 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Sat Jan 30 18:53:17 2010 Return-path: Envelope-to: gnu-emacs-bidi@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NbHVV-0004gD-HE for gnu-emacs-bidi@m.gmane.org; Sat, 30 Jan 2010 18:53:17 +0100 Original-Received: from localhost ([127.0.0.1]:37635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbHVU-0004pI-Sc for gnu-emacs-bidi@m.gmane.org; Sat, 30 Jan 2010 12:53:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NbHVS-0004nQ-4Q for emacs-bidi@gnu.org; Sat, 30 Jan 2010 12:53:14 -0500 Original-Received: from [199.232.76.173] (port=42249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NbHVR-0004n9-SF for emacs-bidi@gnu.org; Sat, 30 Jan 2010 12:53:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NbHVQ-0008BF-A7 for emacs-bidi@gnu.org; Sat, 30 Jan 2010 12:53:13 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:33104) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NbHVP-0008At-Sj; Sat, 30 Jan 2010 12:53:12 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KX200800MK9EP00@a-mtaout20.012.net.il>; Sat, 30 Jan 2010 19:52:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.180.161]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KX2008BZN07G810@a-mtaout20.012.net.il>; Sat, 30 Jan 2010 19:52:56 +0200 (IST) In-reply-to: <4B646AD3.1010102@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-bidi@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of Emacs support for multi-directional text." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Errors-To: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bidi:472 gmane.emacs.devel:120710 Archived-At: > Date: Sat, 30 Jan 2010 18:22:27 +0100 > From: martin rudalics > CC: emacs-devel@gnu.org, emacs-bidi@gnu.org > > > Why should it change from what it returns now? > > Because it's no more a window but a line property, IIUC. When, after > scrolling the first line, you move `point' to show another portion of > the second line like this > > +---------+---------+-------------------+ > |$ijk |abcdefgh$|abcdefghijk | > |KJIHGFED$|$HGFEDCBA| KJIHGFEDCBA| > | | | | > +---------+---------+-------------------+ > > you get two different non-zero values of `window-hscroll'. No, you don't necessarily get two different values. The value from the second line defines a scroll from the right margin, not from the left. (Which probably means it's not a good idea to have window-hscroll return a negative value in that case.) > > Or are you saying that we should scroll the R2L lines to the right by > > as much as we scroll the L2R lines to the left? That is, are you > > saying we should display the last example as > > > > > > +---------+---------+-------------------+ > > |$ijk |abcdefgh$|abcdefghijk | > > | KJI$|$HGFEDCBA| KJIHGFEDCBA| > > | | | | > > +---------+---------+-------------------+ > > > > Is this what you are suggesting? > > This would be needlessly inconvenient. Why inconvenient? That's what would happen if the second line was displayed at the left margin, like this: +---------+---------+-------------------+ |$ijk |abcdefgh$|abcdefghijk | |$IJK |$HGFEDCBA| KJIHGFEDCBA| | | | | +---------+---------+-------------------+ The advantage is that all the lines scroll in lockstep, albeit in two different directions, and `window-hscroll' can still return a single value whose meaning is well defined. > Hence, `window-hscroll' should probably return the value for the > line `window-point' is on. That's also possible. Are the users of this function normally interested only in the amount of scroll of the current line?