From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: [emacs-bidi] Mixed L2R and R2L paragraphs and horizontal scroll Date: Sat, 6 Feb 2010 17:42:36 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <201002061542.o16Fganc006023@beta.mvs.co.il> References: <83tyu3iu6b.fsf@gnu.org> <201002011400.o11E0jMQ007420@beta.mvs.co.il> <83vdeghfqg.fsf@gnu.org> <201002012205.o11M5Sci011809@beta.mvs.co.il> <83k4uvh09o.fsf@gnu.org> <201002031310.o13DAqXd019253@beta.mvs.co.il> <40314.130.55.118.19.1265230948.squirrel@webmail.lanl.gov> <201002041621.o14GL6w5006928@beta.mvs.co.il> <833a1ghjrj.fsf@gnu.org> <201002051221.o15CLmVW016971@beta.mvs.co.il> <83ock3g5fq.fsf@gnu.org> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265470975 17312 80.91.229.12 (6 Feb 2010 15:42:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2010 15:42:55 +0000 (UTC) Cc: emacs-bidi@gnu.org, emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 06 16:42:51 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 1Ndmo6-0000nF-MW for ged-emacs-devel@m.gmane.org; Sat, 06 Feb 2010 16:42:50 +0100 Original-Received: from localhost ([127.0.0.1]:60474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndmo6-00084D-3E for ged-emacs-devel@m.gmane.org; Sat, 06 Feb 2010 10:42:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndmo1-00083d-Qf for emacs-devel@gnu.org; Sat, 06 Feb 2010 10:42:45 -0500 Original-Received: from [199.232.76.173] (port=49424 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndmo1-00083E-4Y for emacs-devel@gnu.org; Sat, 06 Feb 2010 10:42:45 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndmny-00036a-JU for emacs-devel@gnu.org; Sat, 06 Feb 2010 10:42:44 -0500 Original-Received: from [193.16.147.12] (port=51692 helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ndmnx-00034Q-T7; Sat, 06 Feb 2010 10:42:42 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.8/8.13.7) with ESMTP id o16FgaMU011138; Sat, 6 Feb 2010 17:42:37 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id o16FgaWK006027; Sat, 6 Feb 2010 17:42:36 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id o16Fganc006023; Sat, 6 Feb 2010 17:42:36 +0200 In-reply-to: <83ock3g5fq.fsf@gnu.org> (message from Eli Zaretskii on Fri, 05 Feb 2010 15:47:37 +0200) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:120985 gmane.emacs.bidi:544 Archived-At: On Fri, 05 Feb 2010 15:47:37 Eli Zaretskii wrote: > > The reordering code can do what you want if we somehow tell it at > which _buffer_position_ to stop, as if it hits a newline or a > paragraph separator. But buffer positions are not equivalent to > display positions, due to display features like: > > . variable fonts and faces > . glyphs that come from overlays, `display' properties, images, etc. > . `wrap-prefix' and `line-prefix' variables > . composite characters > . tab expansion > > (probably forgot a few). Note that the last one affects text > terminals as well, so even there you cannot simply count characters. I see your point. I don't think variable fonts, tabs or composite characters are a real problem (tabs are taken into account in fill-paragraph, and the others can be handled by setting the `right-margin' to a value below the screen width). The text overlays are a real problem when they exist. > The problem is that, for the reasons I explain above and in a previous > message in this thread, what you suggest will still end up overflowing > the margin sometimes, and we are back with the same problem. (If I > understood your suggestion, that is; if not, please point out where > I'm wrong.) I understand, but since I'm using wide screens (130 columns at work, over 180 at home), I can set the my line length for the virtual `fill-paragraph' to a lower value (say 110) and hope that it won't overflow, even if it is exceeded by some characters. Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry