From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.bidi Subject: Re: Bidirectional editing in Emacs -- main design decisions Date: Mon, 12 Oct 2009 06:11:42 -0400 Message-ID: References: <83bpkgl113.fsf@gnu.org> <834oq8kx5c.fsf@gnu.org> <83tyy7jx7c.fsf@gnu.org> <838wfhk7uh.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1255342399 10879 80.91.229.12 (12 Oct 2009 10:13:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 10:13:19 +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 Mon Oct 12 12:13:09 2009 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.50) id 1MxHts-0001uX-5L for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2009 12:13:08 +0200 Original-Received: from localhost ([127.0.0.1]:60161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxHtr-0006aU-Db for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2009 06:13:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxHsc-000611-Sj for emacs-devel@gnu.org; Mon, 12 Oct 2009 06:11:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxHsX-0005yV-16 for emacs-devel@gnu.org; Mon, 12 Oct 2009 06:11:49 -0400 Original-Received: from [199.232.76.173] (port=34899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxHsV-0005yJ-WF; Mon, 12 Oct 2009 06:11:44 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44545) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxHsV-00068v-7d; Mon, 12 Oct 2009 06:11:43 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MxHsU-00036r-AO; Mon, 12 Oct 2009 06:11:42 -0400 In-reply-to: <838wfhk7uh.fsf@gnu.org> (message from Eli Zaretskii on Sun, 11 Oct 2009 22:12:54 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:116098 gmane.emacs.bidi:427 Archived-At: Would it be sufficient to account for any arbitrary amount of horizontal whitespace between the beginning of the line and the paragraph regexps? No, that's not correct. You need to skip whitespace whose width is the value of `left-margin' and then match the regexp. (More precisely, you need to skip the amount of space specified by the value that the function `current-left-margin' would return.) Looking at the code, I think I was mistaken in what I said about "less than `left-margin' indentation starts a paragraph". I think that if the line doesn't have `left-margin' worth of indentation, then the paragaph regexps match at the end of the indentation. Look at the code of `forward-paragraph' to see the paragraph criteria in full detail. It is very important to support the full set of features that Emacs offers for controlling paragraphs. At least, it is important to support the full set when this is released. I won't say it has to be the very next job you work on.