From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Another case which org-insert-todo-heading doesn't work Date: Thu, 26 Mar 2020 02:31:44 +0000 Message-ID: <87pnczsv73.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54807) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHIJA-0007w5-EO for emacs-orgmode@gnu.org; Wed, 25 Mar 2020 22:31:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHIJ9-00074Q-5V for emacs-orgmode@gnu.org; Wed, 25 Mar 2020 22:31:48 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:59994) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHIJ8-000737-T6 for emacs-orgmode@gnu.org; Wed, 25 Mar 2020 22:31:47 -0400 In-Reply-To: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Yasushi SHOJI , emacs-org list Hello, Yasushi SHOJI writes: > There seems to be another case where org-insert-todo-heading doesn't > work. Let's say we have the following doc. > > #+begin_src org > ,* foo > - [ ] a > - [ ] b > #+end_src > > If the list is unfolded, org-insert-todo-heading works everywhere. But > once you fold the list at "a" so that what we see is "- [ ] a...", the > function doesn't work but creates a next heading with "TODO" with it. > > Does anyone see this? No, I tried on master (5b9698870) as well as maint (685b2c441) and didn't see the behavior you describe. In both cases, an unchecked box is inserted. What Org version are you using? Can you trigger the behavior without any customization?