From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: (org-insert-headline '(4)) should insert new headline before point Date: Tue, 22 Apr 2014 11:23:48 +0200 Message-ID: <87zjjdafa3.fsf@bzg.ath.cx> References: <87a9bk9guf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWvo-00088b-C0 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcWvf-0008AD-BN for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:24:00 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:37803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWvf-0008A7-4K for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 05:23:51 -0400 Received: by mail-wi0-f178.google.com with SMTP id bs8so2909253wib.11 for ; Tue, 22 Apr 2014 02:23:50 -0700 (PDT) In-Reply-To: (York Zhao's message of "Sun, 20 Apr 2014 16:46:42 -0400") 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: York Zhao Cc: emacs-orgmode Hi York, thanks for coming back to this. York Zhao writes: > What I meant was that with one prefix argument, the command > `org-insert-heading' should insert a new heading *before* the > current heading, not after. Actually, this has little to do with the prefix argument: when at the beginning of a heading or a list item, M-RET should add a new heading/item *before* the current heading/item. This is fixed now, thanks for reporting this, PS: Using C-u M-RET will force `org-insert-heading-respect-content' to `t', i.e. add the headline at the end of the subtree. As Nicolas noted, this is the same than C-RET. -- Bastien