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: Bidirectional editing in Emacs -- main design decisions Date: Sat, 10 Oct 2009 00:41:51 +0200 Message-ID: <834oq8kx5c.fsf@gnu.org> References: <83bpkgl113.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255128217 2847 80.91.229.12 (9 Oct 2009 22:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Oct 2009 22:43:37 +0000 (UTC) To: emacs-devel@gnu.org, emacs-bidi@gnu.org Original-X-From: emacs-bidi-bounces+gnu-emacs-bidi=m.gmane.org@gnu.org Sat Oct 10 00:43:28 2009 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.50) id 1MwOBJ-0002Ai-E6 for gnu-emacs-bidi@m.gmane.org; Sat, 10 Oct 2009 00:43:25 +0200 Original-Received: from localhost ([127.0.0.1]:50995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwOBI-0001Kc-Q5 for gnu-emacs-bidi@m.gmane.org; Fri, 09 Oct 2009 18:43:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwO8s-0007V7-9w for emacs-bidi@gnu.org; Fri, 09 Oct 2009 18:40:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwO8r-0007UG-Ak for emacs-bidi@gnu.org; Fri, 09 Oct 2009 18:40:53 -0400 Original-Received: from [199.232.76.173] (port=41345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwO8r-0007Tq-36; Fri, 09 Oct 2009 18:40:53 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:46250) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwO8q-0002as-GY; Fri, 09 Oct 2009 18:40:52 -0400 Original-Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KR900300QZIFB00@i_mtaout3.012.net.il>; Sat, 10 Oct 2009 00:40:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.70.84.229]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KR9006B3R02M960@i_mtaout3.012.net.il>; Sat, 10 Oct 2009 00:40:51 +0200 (IST) In-reply-to: <83bpkgl113.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:407 gmane.emacs.devel:116038 Archived-At: > Date: Fri, 09 Oct 2009 23:18:00 +0200 > From: Eli Zaretskii > Cc: > > So I decided to use such a higher protocol -- namely, > the Emacs definition of a paragraph, as determined by the > `paragraph-start' and `paragraph-separate' regexps. A small, but significant correction to this: these two regexps are looked for anchored at line beginning. The reason for this deliberate deviation from the letter of Emacs definition of a paragraph are complicated, but the upshot is that from the user point of view, it does not make sense to change paragraph direction if the paragraph separator does not begin at the beginning of a line. As another deviation from the definition of a paragraph, text that matches `paragraph-separate' is given the same direction as the preceding paragraph. (By contrast, Emacs generally does not consider `paragraph-separate' as part of any paragraph.)