From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Re: Fix Subtle Heading Creation Bugs Date: Sat, 18 Oct 2008 23:29:24 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrG5I-0005cF-1S for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 13:59:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrG5H-0005bU-3N for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 13:59:27 -0400 Received: from [199.232.76.173] (port=44529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrG5G-0005bM-Vh for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 13:59:27 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]:1517) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrG5G-0001Yx-AT for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 13:59:26 -0400 Received: by ti-out-0910.google.com with SMTP id u5so562779tia.10 for ; Sat, 18 Oct 2008 10:59:24 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: Carsten Dominik , emacs-orgmode@gnu.org On Sat, Oct 18, 2008 at 8:54 PM, Peter Jones wrote: > Carsten Dominik writes: >> I am not so sure about forcing headline creation even when in a plain >> list item. I can see why you would want it like this. However, the >> reason for the current behavior is that then you can use the respect- >> content function as a full replacement for M-RET, without the need to >> always switch back and force between the two commands. >> >> Any thought about this? > > My position is that I want both features, and I have two key bindings, > so it's a perfect match. > > The way I work is that I use C-RET for creating headings, and M-RET for > creating plain lists. I never use M-RET for creating headings because I > don't like how it creates the heading above the body of the current > item. > > I could set org-insert-heading-respect-content to t, but it makes more > sense in my head that M-RET is for plain lists, and C-RET is for > headings. > > Before my patch, C-RET and M-RET only differed in where the heading was > created (before or after the body). But the original behavior of > OrgMode was that M-RET in a plain list created a new plain list item, > while C-RET in a plain list would create a new heading. > > However, this could all be chalked up to me being lazy. I could just as > easily do this in a plain list instead: RET C-RET. Well, except that > with my patch, C-RET will create a new heading, even if point is in a > drawer or something like a clock line. In that case I could do C-u > C-RET. > > I just like the path of least resistance for creating new headings, > C-RET. If this isn't good for OrgMode in general, I can easily bind C-j > to do what I want as well. I liked Peter's description, tried his patch and find C-Ret and M-Ret behaviour better now. Earlier C-Ret and M-Ret had same effects (in my setup) but makes better sense (to me) after the patch. Just a humble opinion. -- Manish