From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: Mixed L2R and R2L paragraphs and horizontal scroll Date: Sun, 31 Jan 2010 21:01:29 +0100 Message-ID: <4B65E199.6070100@gmx.at> References: <83tyu3iu6b.fsf@gnu.org> <4B645FF4.30205@gmx.at> <83ockbil1v.fsf@gnu.org> <4B646AD3.1010102@gmx.at> <83mxzviio5.fsf@gnu.org> <4B647AE5.5090001@gmx.at> <83ljffif09.fsf@gnu.org> <4B648C6E.8080905@gmx.at> <83eil7i84h.fsf@gnu.org> <4B654F24.5020603@gmx.at> <83aavui23z.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264968685 2269 80.91.229.12 (31 Jan 2010 20:11:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Jan 2010 20:11:25 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 31 21:11:22 2010 Return-path: Envelope-to: ged-emacs-devel@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 1Nbg8e-0007et-4C for ged-emacs-devel@m.gmane.org; Sun, 31 Jan 2010 21:11:20 +0100 Original-Received: from localhost ([127.0.0.1]:39822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbg8d-0002Z4-4J for ged-emacs-devel@m.gmane.org; Sun, 31 Jan 2010 15:11:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nbg8X-0002Yx-Kr for emacs-devel@gnu.org; Sun, 31 Jan 2010 15:11:13 -0500 Original-Received: from [199.232.76.173] (port=47656 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbg8X-0002Yj-AX for emacs-devel@gnu.org; Sun, 31 Jan 2010 15:11:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nbg8V-0000b3-6X for emacs-devel@gnu.org; Sun, 31 Jan 2010 15:11:12 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:33935) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Nbg8U-0000aU-JD for emacs-devel@gnu.org; Sun, 31 Jan 2010 15:11:11 -0500 Original-Received: (qmail invoked by alias); 31 Jan 2010 20:01:36 -0000 Original-Received: from 62-47-44-24.adsl.highway.telekom.at (EHLO [62.47.44.24]) [62.47.44.24] by mail.gmx.net (mp067) with SMTP; 31 Jan 2010 21:01:36 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/efgZu/y3e8i8C+G7wvPjsrUoANk3eM5dEPE38Tz GshcZBYstFLTsl User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83aavui23z.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68000000000000005 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120756 gmane.emacs.bidi:484 Archived-At: > In a R2L line, columns should be numbered from the > right margin of the window. Technically columns are numbered by counting characters following the last newline in the buffer text. Just that for R2L text you have to jump to the end of the text first and then go back in the text. Anyway, column numbers are in the buffer text, unrelated to display or windows. So I suppose you're using the term window margin as metaphor here. > Given the fact that a window's dimensions > can be changed at will, and thus the horizontal position of characters > in R2L lines relative to L2R lines can change, there simply isn't any > other reasonable way of numbering columns of a R2L line. We will need > that anyway for supporting features like indentation and tab stops in > R2L paragraphs. There is one thing I conceptually don't understand yet: When I currently shrink the width of a window Emacs doesn't hide text at the left side of the window but text at the right side may get truncated when the window becomes too small. Will this behavior be reverted for R2L text in the sense that text at the left side is truncated? > And since the columns are numbered from the right margin, hscroll, > too, should scroll R2L lines to the right when L2R lines are hscrolled > to the left. That's the only reasonable way of generalizing the > current unidirectional hscroll, IMO. It also preserves the semantics > of window-hscroll (modulo the fact that R2L lines are scrolled from > the right margin, not the left one). > > Makes sense? Sounds simple and robust. martin