From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wL72OW11gGTK6gAASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 14:17:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kJfpOW11gGRr8wAA9RJhRA (envelope-from ) for ; Wed, 07 Jun 2023 14:17:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 646912EB4F for ; Wed, 7 Jun 2023 14:17:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6s5n-0000jw-4S; Wed, 07 Jun 2023 08:16:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6s5k-0000jY-US for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:16:45 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6s5i-0003dl-OR for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 08:16:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 42039240028 for ; Wed, 7 Jun 2023 14:16:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686140199; bh=iSG62nqltktahLQJoBRdG0gL4F1/2LQxyaQnXvjN7lA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Fnt8hzq+dSskzlPFqmIHiARjGJWtEo2NavsYS1/uFfnA1hKKzelm6SjIMoxxZaxM3 Sh693NOIKk7uAjkXx83U3Pom/Sj8yF8cULGcCiJ9zwFBHDsWsIGO0E3ReGVeEGSxPE QXCrG8VBD9wc5HGb3Yn97wLXuKRhHZSvN1ib3pFz3pdangKJI0et/wbzsmlaWyi1Lc CGOquJ91uLkivyomRJ5T3JHV3dftonlMXTXiKN1QBQ2kODIxJMRTQSAo81erMWn+FT 00gTjsofGzmgk90B9+48CYqjjiFV5nLcHMa9+hS1uZTA5HqodXB64SxpBcqxEVdAs8 omx6u/nV+ih6w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QbmY23481z6txF; Wed, 7 Jun 2023 14:16:38 +0200 (CEST) From: Ihor Radchenko To: Xuan Wang Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-insert-todo-heading-respect-content and org-insert-todo-heading have different behaviors [9.6.1 ( @ /home/username/.chemacs/spacemacs/elpa/28.2/develop/org-9.6.1/)] In-Reply-To: References: Date: Wed, 07 Jun 2023 12:21:23 +0000 Message-ID: <87mt1bcvjw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686140269; a=rsa-sha256; cv=none; b=HwCJGCZXL1XlkQRZ+OZE4nIv/oN0RTgWpGzYRQAV/NMa+StNV1rbeFMF0JJijDRi3cJUJX zvjCBMAUpsfeHHa8C6q2Ihx3vOqxoZItrs3dhPw1hehejR+7r9TmmcX5Uv/UW3AZYx1dwb cKI8KUcYYyh//zpT7VeVeYDvWWPkAy/ACQONT/H1WkeIadqD59VmtOIoIW3S+UtmwZKO6M XmUspxkN1Z+bkZtYaOnHNjTU/ISz22ZTiljN4Tm7TDkF+xpZLVuT44jNPMhOnEgL0/9Vzp /mDsnLmVdRah4cOBoiW5wl5V2SYZUI23hqy05jEyewe6WvP1Ow7bDoUfbOE56A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fnt8hzq+; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686140269; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fAL1ya4unwA8XEHnBdr+v6NbiKed11jV+K+jsna/HO8=; b=rQMfKDcrcCFv5A+hEj2BK7Zabowz4rfpRhBtcUyLBGUJsrx8j+DWHS52ntWqt4ITjJUnUo iJ9HaZDCEH6XZly0PUg4oQ3hhYJ68zil+f6UnEFfuQ4go8T/buRzBEj8aEO/moknZcIrLW ZLze6VIwZWmV/EO0uGiNr7IgNCVBJmCTTgMxFZ1DXd/pZ51rmE+8OXBr/jJtYOUXipPz2G LAZyRyEVTJXBGnu8iLG1tn39B6E7604LWGN+NvSdfs16dH7dHRRNlUGVnqFDS65qI2oxpE Gvt+tvnlv5spjazGMkoHHYny8myxz/J2N2LEM/GFTkMxjqshtGV4baZvq2Ht1A== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Fnt8hzq+; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.66 X-Spam-Score: -7.66 X-Migadu-Queue-Id: 646912EB4F X-TUID: LZi9IEhduZ0q Xuan Wang writes: > --text follows this line-- > > Problem: Now org-insert-todo-heading-respect-content does not respect the > TODO > state of current heading. > > How to reproduce: > Example: define a todo sequence as followed: > "#+TODO: WAIT(w@/!) TODO(t) | DONE(d) CANCELED(c@)" > ... Thanks for reporting and for the detailed analysis! Fixed, on main. Now, we just pass the prefix args directly to `org-insert-todo-heading'. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ba8c46863 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at