From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mLFwLNWjx2RY3AAASxT56A (envelope-from ) for ; Mon, 31 Jul 2023 14:06:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ACpoLNWjx2TFMQEA9RJhRA (envelope-from ) for ; Mon, 31 Jul 2023 14:06:45 +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 3C38133F67 for ; Mon, 31 Jul 2023 14:06:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MnVP2CBp; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690805205; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=a/UtitfbGsYVgmsYRAFv7//mdiPhKHYyJGlDhA8LJAM=; b=ke8B2Lc63eb2EYpITHq18GxtsD5NswdEEFKEBCHcbgxskO5RaF0MLTrn1M7f2/0cVUtWDM 7tFN0v72d5zbXO6TyeZAkX+D3FszJvY+glUSHGyGuExA4HfAizso3YnE/gK1BlNgicVSBO va/+/jJoChuIvOpT5bfco91rYqHQl3s2+Oev7x1ON83YVIWMeGg/RWFs29CfWvq5hJ3z/b oPusysDigW1r7NUOXm4HI3KEW+SuRNr1dMdX14Ctr0Q9NK6TpoHEN4K4aUkpbvv8D23Vy4 wJltsv1W8Y6zD7Lq7UFzQAmWnN2vqj/7BVjH0n0+MS5riCl6YMIzS6gHeTcRoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690805205; a=rsa-sha256; cv=none; b=BoM8JYJXDrIJRs0imadi77MHPvWr0/Dhsotbezejewi7sDoiI57Uu0qG2Om3Usr3stk6SG +qOUd6auXPds+0Lsljin7Ce4MDMbYBgYB793z7HHH/2xO4/z9YjRvpcLqtqSaqL7rcOTzk tteeRL4uBrYzlosdcHnZcWAlw2maWchRKEzvfBOv+NWePc1rT897l/RWWdBpH0+kw/fJwZ a+SoSWAt+lyaiIiTzcg2c0HoIok/Kjm/LRX2dTc0elHgfVKp8rFMc/kYIVWpUgibhAaHNj Qf8ezhJlmwUoaIMnnCsEjyNytXDVg0PjZcHACE5BquiFiSSo55Ry8CJEHJ+2Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MnVP2CBp; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQRew-0006US-11; Mon, 31 Jul 2023 08:05:58 -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 1qQReu-0006UB-TE for emacs-orgmode@gnu.org; Mon, 31 Jul 2023 08:05:56 -0400 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQRes-0003oh-QX for emacs-orgmode@gnu.org; Mon, 31 Jul 2023 08:05:56 -0400 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-34642952736so23810165ab.3 for ; Mon, 31 Jul 2023 05:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690805152; x=1691409952; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=a/UtitfbGsYVgmsYRAFv7//mdiPhKHYyJGlDhA8LJAM=; b=MnVP2CBpGU30x8ZcGSYKCU2jez9l2F7/T/zcAKNj79/01bZhIlnw29eA+1uSIykmk2 dJ5LbMtG/+GTvf6tLU18apnmHDu+eX+9ZChK/xj7Pvmm9ApIHmmDZ6ofphf5khCjahUq joGgQGEe/W1Rop3z3YkZw8x4tBxapFYbYZ5UD/BFXk2ZNwLz99+VEtTa/iYJh/bNFLa2 wRqfKJaFpE5wlNildaSW5eNqV1cOdFDkBsFjwTTiNdzzaD1++MaagpDwQGCVlK/LWi8P QtZryUuQjh4URToHmx/Iw288VD8UhAcPPanqc2cZ+Fn4j185nwFLY2lgWJ2fIA8bKkjX 30IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690805152; x=1691409952; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=a/UtitfbGsYVgmsYRAFv7//mdiPhKHYyJGlDhA8LJAM=; b=T3QNeB2J91x0BqX2M+o8rxv6hlKSeo1p8lC5Mz+BxeGvHmxpeSYmNWMLEFKt22324F RKkBdhgv5WZWvVl2lPEZU3Cnr4oHWGOcLcjijImMiFv+B4VRrYJdpY1um3xjyduEPAfk U0B0J604vU4/gEwWL9ficQIwGXVZ+DIvrdiC8+5vG7qpqcDxjdwrikHZLnW91sfEImP1 MQa1so/TASX99Lezxx2sneRmZJiAJ2Mi5JoaDoCSyIaB1RmXCGCoMR0RpKW2idRqjbEN 2Mf5Bhxq137GbShJnBBptuJa/1LkLa7UgtwAEPAxRBRtOCLn2DVpoRvFr24n8irO+ITd sUxQ== X-Gm-Message-State: ABy/qLain1PtP/Z8N5iARh5MnNNHh9iL7Z4K3UQ+mwovwPxMt0EWqA6k b0xH8JufwKmKwJtcmwY49QFze4L3rvKbCBczhgYXxVSBSUKGLQ== X-Google-Smtp-Source: APBJJlFu5qub8TRT/ZBjyM/SM2WRdXSC2XThelZRu02yBmup/MF1DllQGGH75XisegPHmFHbYKXoM+yAnxatHTZcJlE= X-Received: by 2002:a05:6e02:12e9:b0:348:f152:e041 with SMTP id l9-20020a056e0212e900b00348f152e041mr11178560iln.2.1690805151740; Mon, 31 Jul 2023 05:05:51 -0700 (PDT) MIME-Version: 1.0 From: Gustavo Barros Date: Mon, 31 Jul 2023 09:05:40 -0300 Message-ID: Subject: [BUG] org-todo on region fails to log changed state [9.6.6 (release_9.6.6 @ /usr/local/share/emacs/29.1/lisp/org/)] To: org-mode list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::129; envelope-from=gtvbrs@gmail.com; helo=mail-il1-x129.google.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, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -6.52 X-Spam-Score: -6.52 X-Migadu-Queue-Id: 3C38133F67 X-TUID: 25PaEEx3r3PH Hi All, When setting Org to track TODO state changes, calling `org-todo' on an active region comprising multiple headings, the state changes only logged for the last heading. To reproduce with `emacs -Q', visit the file: #+begin_src org ,#+todo: TODO(t) | DONE(d!) ,* TODO Task 1 ,* TODO Task 2 ,* TODO Task 3 #+end_src Select a region including all three tasks, call `org-todo' with "C-c C-t", and mark them as DONE. The state changes are only logged for Task 3. Whereas, if you call `org-todo' on each task individually, the state change is logged, as expected. Best regards, Gustavo. Emacs : GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-07-30 Package: Org mode version 9.6.6 (release_9.6.6 @ /usr/local/share/emacs/29.1/lisp/org/) current state: ============== (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-persist-directory "/tmp/org-persist-FCOctd" org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) )