From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [html] non-lists showing up as lists Date: Mon, 3 Jun 2013 09:52:06 +0200 Message-ID: References: <874ndj13u5.fsf@gmail.com> <51A90A6A.5090105@gmail.com> <87a9na1gi9.fsf@gmail.com> <87d2s58w0g.fsf@breezy.my.home> <87ppw5vtb2.fsf@gmail.com> <87fvx0clbx.fsf@breezy.my.home> <87r4gkjio7.fsf@pierrot.dokosmarshall.org> <51ABCFD5.7040208@gmail.com> <87mwr8j5tn.fsf@pierrot.dokosmarshall.org> <51AC1B9D.7040701@gmail.com> <51AC2D68.7080106@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjPYu-00069D-JK for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 03:52:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjPYo-0001hS-MQ for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 03:52:16 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:40401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjPYo-0001hB-Ck for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 03:52:10 -0400 In-Reply-To: <51AC2D68.7080106@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan L Tyree Cc: emacs-orgmode@gnu.org Hi everyone. As far as I can see, the filling code is already pretty smart about this = issue. The question is then: What else can we do about it. Possibilities: 1. We could change the parser to ignore lists where the first item does not start with `1.' or `a)'. But this would be a pretty serious change. 2. We could implement a good function that could find problematic cases, so that they can be fixed by hand. This is basically what Nick proposed - only it would be implemented in Lisp. 3. We could implement a function that finds and fixes such issues. It would basically scan the buffer and find lists that have only a single item, not starting with 1, and change the wrapping to fix it. In any case, some hand work would be involved. I think we cannot fix this problem in full generality. The reason is simply that Org is a plain text format and has to be heuristic about parsing. There will always be edge cases like this. Anyone volunteering to write a command that will check the buffer and warn about it? Maybe it could be implemented as org-find-next-funny-list-start, so that it could be used to search through the whole buffer. - Carsten On 3 jun. 2013, at 07:45, Alan L Tyree wrote: > On 03/06/13 15:40, Samuel Wales wrote: >> I don't recall whether I said I had a filling problem. >>=20 >> Filling is a red herring for my use case. >>=20 >> My point is that regardless of filling, it would be a good idea to be >> stricter about what a list is, for the reasons I listed. In my use >> case. >>=20 >> Samuel >>=20 > You're right - you said "filling and yanking" in your first post. >=20 > As I said to Nick, I don't know if my problems stem from filling or = not. Just know there are problems and I will track them down when I have = a little time. >=20 > Cheers, > Alan >=20 > --=20 > Alan L Tyree http://www2.austlii.edu.au/~alan > Tel: 04 2748 6206 sip:172385@iptel.org >=20 >=20