From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: hitting tab on last number item in list hides next paragraph Date: Fri, 15 Jan 2010 08:13:34 +0100 Message-ID: References: <874omrtnfw.wl%ucecesf@ucl.ac.uk> <80ACDDE1-6CD2-4F75-8208-525646D77F63@gmail.com> <871vhut9hq.wl%ucecesf@ucl.ac.uk> <877hrmm6w2.fsf@mundaneum.com> <873a2am34b.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVh7n-0001UG-OT for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 03:01:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVh7h-0001Sc-8F for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 03:01:42 -0500 Received: from [199.232.76.173] (port=60993 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVh7e-0001SL-Bu for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 03:01:36 -0500 Received: from mx20.gnu.org ([199.232.41.8]:3379) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVh7d-00065R-OZ for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 03:01:33 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NVh7b-0002hr-Ne for emacs-orgmode@gnu.org; Fri, 15 Jan 2010 03:01:32 -0500 Received: by ewy1 with SMTP id 1so414278ewy.8 for ; Fri, 15 Jan 2010 00:01:29 -0800 (PST) In-Reply-To: <873a2am34b.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org On Jan 13, 2010, at 4:33 PM, S=E9bastien Vauban wrote: > Hi Carsten, > > Carsten Dominik wrote: >> On Jan 13, 2010, at 3:11 PM, S=E9bastien Vauban wrote: >>> Eric S Fraga wrote: >>>> Carsten Dominik wrote: >>>>> On Jan 12, 2010, at 3:20 PM, Eric S Fraga wrote: >>>>>> >>>>>> with the attached file, if I position the cursor on the 3rd =20 >>>>>> numbered >>>>>> entry in the first list and hit tab, the following single =20 >>>>>> sentence >>>>>> paragraph is hidden. This seems somewhat non-intuitive to me or =20= >>>>>> have I >>>>>> misunderstood something. My impression was that indentation was =20= >>>>>> used to >>>>>> identify continuing elements in a list or paragraph. Even =20 >>>>>> adding more >>>>>> blank lines between that 3rd entry and the sentence doesn't =20 >>>>>> make any >>>>>> difference. >>>>>> >>>>>> This is not critical by any means! Just a curious behaviour. >>>>> >>>>> Yes, this is a shortcoming of list cycling which I cannot fix. =20 >>>>> Folding a >>>>> list item will always fold to the next item and not recognize =20 >>>>> the end of >>>>> the item as given by indentation. >>>>> >>>>> If you find it too confusing, turn off `org-cycle-include-plain- >>>>> lists'. >>>> >>>> I may just do that as I don't often want to hide list entries =20 >>>> actually. >>> >>> I'll do that as well, as I'm always caught when trying to indent =20 >>> correctly >>> a list item... >>> >>> But, indeed, this is a very tiny detail. >> >> Well, we could consider changing the defualt value for that =20 >> variable...... > > I guess it could make sense, yes. > > BTW, having updated that var for me (right now, in my `.emacs' =20 > file), it's OK > for properly indenting the first list item, but the others don't =20 > move when > TABbing. Any reason? Yes. You might be sitting in a deeply indented list structure, and changing the indentation of an item that has less indentation than the item above it would change the structure. Mind that this is inherently tricky, and it has to be heuristic. I think there is no really good solution to this in the sense that it would allow you to re-indent an entire buffer using TAB just like with a programming language. Indentation has syntactic meaning in Org. I myself am using promotion/demotion commands to change the indentation of list items, and I have trained myself to make list items as much as possible with M-RET. Best wishes - Carsten