From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Changing behavior of org-insert-todo-heading-respect-content Date: Mon, 16 Oct 2017 14:52:31 +0200 Message-ID: <87o9p7z240.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e44sn-0006H2-50 for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 08:52:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e44sm-0006bP-Ep for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 08:52:37 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:43094) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e44sm-0006b8-8q for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 08:52:36 -0400 In-Reply-To: (Allen Li's message of "Sun, 15 Oct 2017 14:50:34 -0700") 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" To: Allen Li Cc: emacs-orgmode@gnu.org Hello, Allen Li writes: > Regarding the behavior of org-insert-todo-heading-respect-content, > bound to C-S-return, consider the following .org file: > > * TODO some task > ** WAITING other task > > If point is on the TODO line, pressing C-S-return yields > > * TODO some task > ** WAITING other task > * WAITING > > When I use C-S-return, I always desire > > * TODO some task > ** WAITING other task > * TODO > > Making C-S-return do this would break backward compatibility, but I > think this behavior is more intuitive. Thoughts? I think the current behaviour is more than likely a bug. The one you propose is indeed better. Would you want to provide a fix for that? Regards, -- Nicolas Goaziou