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 gLh+NIfA/GJkAwEAbAwnHQ (envelope-from ) for ; Wed, 17 Aug 2022 12:18:47 +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 mAygM4fA/GIJXAEAG6o9tA (envelope-from ) for ; Wed, 17 Aug 2022 12:18:47 +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 6068135D87 for ; Wed, 17 Aug 2022 12:18:47 +0200 (CEST) Received: from localhost ([::1]:52664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOG8M-0001vp-AY for larch@yhetil.org; Wed, 17 Aug 2022 06:18:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOG75-0001tZ-J9 for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 06:17:27 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:50981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOG73-0002jl-GF for emacs-orgmode@gnu.org; Wed, 17 Aug 2022 06:17:27 -0400 Date: Wed, 17 Aug 2022 10:17:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1660731435; x=1660990635; bh=/blLhy2wEKTnXXyZlpIL06Z98tHW91I/PTguaSfZrP8=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=XyHDtFqsdrZcvkXj3Ec/Cx6y1FcKhq9djU+gT27HtsYmkNVg94/J78pAMosDtXp+A uf9QuhcjTc/yfYwlkT5n0MMAiM2Sie87mlfHV4bikYvB2e7p2Cd+n7MQ8oEIpFfy7T nJkBq66XCJ6qvUWHWO2f53uDJh2Phz2Mg/rxMi2rnounqrtvQcZIo/LUXmTTO4CaxE RJusT2j4o8QYo2fudtEOwD3VuTKkQUE2fJVSzrvTtd4MPGWzwI9G9b2Jb5aruqF7tA d4Cj41QpDV4uVWRLPXdEX2ttIlsid9lfaUrbF0RXTUYq7WhCZjNYhqaKmLPnjccprW 3oFimilITsDug== To: emacs-orgmode@gnu.org From: Roman Rudakov Subject: [BUG] org-insert-heading-respect-content doesn't always insert TODO heading [9.5.4 (release_9.5.4-17-g6e991f @ /usr/local/Cellar/emacs-plus@29/29.0.50/share/emacs/29.0.50/lisp/org/)] Message-ID: Feedback-ID: 6569309:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=51.77.79.158; envelope-from=rrudakov@pm.me; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Reply-To: Roman Rudakov Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660731527; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/blLhy2wEKTnXXyZlpIL06Z98tHW91I/PTguaSfZrP8=; b=f6Q/HhGDUfn4WBPMUPqg/OzlIHAIiybres9BebxgpP1dwu4UIbwD8RF6rPiPPA9hxSUalK 9jVstGcog9BUS9bjFLNAwbeJrwKb41lXLeSoxXBnqJUQeD2+HxfNIouS5SvNFeRQlAVPtW 4aGKXbyjX9KJHPC4CWe4B4byb31Fm57FxL8G7Bhr8TYRd9thvOKX/WX/HXtKA/CBUv9ZAD iYF67CMvxWIq8Y/sWC6h63lcT0e/qoJdwDlJYTLsvbCh1Py/5v9M9rdDUYkBcv0WjVCBDS EHpfXXc4aU2NOlSzT7EM1MYbIfKXCE249MK0nqLvPpO8g72gqyMnWmo2ezeb2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660731527; a=rsa-sha256; cv=none; b=INjYn4ucQ0dkcB7ZI0+sAPlbNIySZOQv7se+9j6vcwt6m3BOjxXQ9qUI6wRWnoXUTyrKt/ JrmH4TAB8OzbESa81mGmvjwL1WltMMomaS7ASgOaTr/8rm7rQon6YN0jGMtMD3q9ebpUrX F07P368KL5qzdkQUSQFePcdrJc3CyUce1BhZf2GJkurXTN9Z8BRpMbzKP1CpsHVWioc4U2 59TAexIZSMa0Ozchx6/qZoCiE0SBOcPKzxgIgDWaiA4R6IwmXAcauGIbQevPiZdxmmcJ8v wpJZtoKPXtGcwz5S/dRESUDzMzRggqw5oYLw6WtnfKPnixKd1b9VVxwzUmP+WA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=XyHDtFqs; dmarc=pass (policy=quarantine) header.from=pm.me; 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: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=XyHDtFqs; dmarc=pass (policy=quarantine) header.from=pm.me; 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: 6068135D87 X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: L+4AAXTBoU/R Hello! Steps to reproduce: 1. Create an org heading and set state to something but TODO or DONE (for example PROGRESS). 2. Call the function org-insert-todo-heading-respect-content Expected result: New heading with TODO state in inserted Actual result: New heading is inserted with the same state as previous heading. I noticed that internally this function calls org-insert-todo-heading and pass arguments in a wrong order: Actual function call: (org-insert-todo-heading force-state '(4)) Should be: (org-insert-todo-heading '(4)) force-state) Emacs : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5 (Build 21G72)) of 2022-08-14 Package: Org mode version 9.5.4 (release_9.5.4-17-g6e991f @ /usr/local/Cellar/emacs-plus@29/29.0.50/share/emacs/29.0.50/lisp/org/)