From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8F/IDxMBQWObmgAAbAwnHQ (envelope-from ) for ; Sat, 08 Oct 2022 06:48:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iBX5DhMBQWM+yQAAG6o9tA (envelope-from ) for ; Sat, 08 Oct 2022 06:48:19 +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 0027F318BC for ; Sat, 8 Oct 2022 06:48:19 +0200 (CEST) Received: from localhost ([::1]:33478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh1l4-0006mH-6n for larch@yhetil.org; Sat, 08 Oct 2022 00:48:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh1kR-0006m5-1X for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 00:47:39 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:37428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh1kP-0006YJ-HP for emacs-orgmode@gnu.org; Sat, 08 Oct 2022 00:47:38 -0400 Received: by mail-pf1-x42c.google.com with SMTP id 3so4994428pfw.4 for ; Fri, 07 Oct 2022 21:47:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=GXon/GunCqGrQDAxhP4gkYYnu2+bSd+6zSokuwsmYIM=; b=JqwYy9l4YXYCR/+3R8iDUSKj4vRFUCUvWRhdoq3qcXuavvtG2kwTwWVHautxO9gyd6 ngy2EwAUJocNknt8ns57wmAblhCrvbiaBRjTtcQ2n0BeYidFmvrROVZhsLqc1/oG0eW4 /V9A0z3W1FtAFlag3nlVID2crgHwyDJb1UPgXRuqR3HAmyR+Xth6k5Q1AOrrR+ENtgRV PpJOutHsJDTmeQz3n94Q+xED2/d/G8JEORZM5IKATwgfVJHAHK9wketczkxptqmb4hEF Ruj6OP5r4W75aVx5AQkwYhm+8NGMjiJOiJhbcA0Su+fRjYkIvS4DzUK1ZCpij0TB5yWZ T3Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GXon/GunCqGrQDAxhP4gkYYnu2+bSd+6zSokuwsmYIM=; b=13uig3R6pzWWIirB1G3lvMlNKsmoVdu56QOar6KUT52YZuDhm7LTX98nRGbDT5+aLe 9xF61ZYxmjTzr5xaAbStwM2mo1JIK7qfkccS1+lJ7LnfmO/oyDcTZgSKvc8VFtUnRBhQ itulGqFOLEzPoXjag1nJsnIG/NIATiOMLEM35f7DEl0HHph7iTK7nhpVYVvFrVbHLg2O JFErCIPL6kvEz2TYtrUiZUUQbDPmPE/PotfC2m2vHZe0pdziSAo99gfbkbvVFElxisUv GfHQoSfpdVCtke2zqazQUK8ptrx9L3xuNSfYI10s/ZE5WbNd9ytE8RmWDsHfRzar81IF OKNQ== X-Gm-Message-State: ACrzQf0kEvJzZhZ7ZLAsV04BaZQ8FHIPtoid7hHaKfv1jsa9s4oMpN+x NzviHu6IB0p4enrZ0uH27MzplC4ho/qSVw== X-Google-Smtp-Source: AMsMyM4GGDIBOMMq7VTNMaasWzT2o5EEMPl/5+ZjhedalAFGN+lB+0NaJiHUW6v+odCjh7siyhKiJg== X-Received: by 2002:a63:a13:0:b0:440:a593:b79f with SMTP id 19-20020a630a13000000b00440a593b79fmr7345898pgk.557.1665204456058; Fri, 07 Oct 2022 21:47:36 -0700 (PDT) Received: from localhost ([1.83.155.53]) by smtp.gmail.com with ESMTPSA id o2-20020a17090a3d4200b001fbb0f0b00fsm5404255pjf.35.2022.10.07.21.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 21:47:35 -0700 (PDT) From: Ihor Radchenko To: Tim Cross Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-toggle-headline inserts "TODO" regardless of local definitions [9.5 (9.5-g0a86ad @ /home/rasmus/.emacs.d/elpa/org-9.5/)] In-Reply-To: <87v91vle4u.fsf@gmail.com> References: <875ytvvigc.fsf@localhost> <87v91vle4u.fsf@gmail.com> Date: Sat, 08 Oct 2022 12:48:25 +0800 Message-ID: <87zge6udie.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665204499; 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=GXon/GunCqGrQDAxhP4gkYYnu2+bSd+6zSokuwsmYIM=; b=CpBJolXPSJAr3yEVg4hSjHntwU8Es68BHuNHN9gMrfzTaaLiP8u2P10mp4CB0HTkpEdAtj Bu/6IQ/76b+kGOZZKzBBYwUWtqpSlRJ8wlosUliOz47mdia6vpjtIn2pY0G8qz+MkGVjJT 9JMT0o4+H3zH6FV0kU6N9OwCv6GFGI3BYlZReXwnJ8u4vKTENep8hqvM3PVCMvUpKl/AVg xOhRaCSeqTVEOtbjxW3iJ/TS5f8aIANOWgoPxQzeZqQWYRMJ2WvoSANa6dDsvOAt4Yyquu AFgkS9s0iEFyqOKzFB6Lz2mnAKp4BJtCWk+V8KrE68rjoKzBCIp5SF/LhmYEOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665204499; a=rsa-sha256; cv=none; b=kL69d6Eaa8dZD8cicMpeZfe5OD9bByk1r5sd5S/EWBVt9qcxB3dTC7UKsYkt+ORGiuYs+b MCDvWvFhsnqcULTKHprzKO4ZcFyF/HxtvmoSoGPoUg84OO9zluAnwIweeN1llsDcqikNe/ lV1cbjVZQZg3cVUpdqkYXyXm9QC/fPbrLdMjyhyxyMYMhKMg5ffFhePGdCyORDpz78R/Ji /x/VBsSqPSiFt3bEo++AEXdLwlOzNqcKR5C6FsFNS17XvpCom2sZFG6XXQ6xeU45ucKl4Q xckf60+L4mDMkhoAFODDiFNPnIwuW2oOqECJBHrjMGdOvwkIs/qa5zPI9/UiAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JqwYy9l4; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -8.68 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JqwYy9l4; dmarc=pass (policy=none) header.from=gmail.com; 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-Queue-Id: 0027F318BC X-Spam-Score: -8.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: p+RZa7PRtR+k Tim Cross writes: > I do wonder if the doc string for org-toggle-heading needs updating. It > makes no reference to making a list item a todo heading if it looks like > a todo item. I was actually surprised that org-toggle-heading adds > keywords at all. While headings and todo items are certainly related, my > expectation would be that a function called org-toggle-heding would do > just that - add stars if none exist and remove them if they do. I would > not necessarily expect a list item to be converted to a todo heading, > only a heading. I now added the relevant explanation to the docstring. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ae028d0a2546eea90fdb3d8d84b084bcb03f0d9c Note that I do find the checkbox/TODO conversion logical. We may, of course, add a customization for this behaviour if sufficient interest is present. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at