From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SPyqBqQf0GHT+gAAgWs5BA (envelope-from ) for ; Sat, 01 Jan 2022 10:32:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qPQOBKQf0GFtMgAA9RJhRA (envelope-from ) for ; Sat, 01 Jan 2022 10:32:20 +0100 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 8955D152D8 for ; Sat, 1 Jan 2022 10:32:19 +0100 (CET) Received: from localhost ([::1]:40024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3akM-0006Wq-HJ for larch@yhetil.org; Sat, 01 Jan 2022 04:32:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3ajh-0006Wi-9H for emacs-orgmode@gnu.org; Sat, 01 Jan 2022 04:31:37 -0500 Received: from [2607:f8b0:4864:20::52a] (port=41589 helo=mail-pg1-x52a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n3ajf-0002bI-60 for emacs-orgmode@gnu.org; Sat, 01 Jan 2022 04:31:36 -0500 Received: by mail-pg1-x52a.google.com with SMTP id f8so15638404pgf.8 for ; Sat, 01 Jan 2022 01:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=JANQj+74XbsczLeu3s//qTzbDgdKfWI1vwjBAoVMFKs=; b=CWJWwJ5kZq2DR8QJcCBRXGDcAPPs1sJ4GCrFiHTll8pDTqnX0CTgWIAzUPGrgDz/0K 4+OFl0vOQy9AkF15VIazDsz42/k+hnTeaLs8abpEZN741ke4nmmekbtTVCSyVezGTLYS U4O9+/hFnzxOUIGIAMa4yXToNus9NPYimVDXMYfy5T0DKtKv3pGCDXa/7hxb+j3YUQUu kgdaROp9VfbwnAQhhx5dHfZLwTVKxFR0VIq/+fW0vQWhg2bY07pevU9iFF4IaaZ0yk9o 8BO8gfu5ajmcCjyxaR8+LzMyayx6upuEKKlgqojPQt4ZjTg6JXq/lzghLRkjOtoUlZqD rjqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=JANQj+74XbsczLeu3s//qTzbDgdKfWI1vwjBAoVMFKs=; b=pVSlgOrZb2Iih+FYjcA2cqItKAC0wRi3GM8ey+UqdH0eQ6oUslV4aJ2fAdTpnHt95Q taW4qX01KNFqfG2w4BmbTNHKd8TPO5s3HizbURnY7X6Iypq8dTmbRj+W1TTYC2calm26 ySLmIqe+6voYpDLdBqgdiEohZMHFn5JFgxROgIu+Neq/dLbaxT/w/Et9Rqrz4V0d448v xYN0X8NaIexshakWsmWj6C4YmjdbsmFDtOrYe/dZw7aBTJFTBPDhG3rLpYeRYpU+IVNC vtx4cRcIMHgWG3EFYOymZqYwADrPkcxvAylR2wP7OQ7dpKq6ykWHR6bXCSQs+GYwY+1i blbQ== X-Gm-Message-State: AOAM5337U2rJPGMIauij8AWXvUpDKWCkW47TLVlnzKDtUMKY8/PVTjcn FhJMpE0k4IGmo2v1houqeTX/xd4JjuVv0Q== X-Google-Smtp-Source: ABdhPJxDCqJHBUnhCvkL725i7UekD0i5IpCUb73Iiejfmd2OsejJtBzsZBagEWdcpF+mIRrMuNwoag== X-Received: by 2002:a63:5045:: with SMTP id q5mr33657608pgl.512.1641029492735; Sat, 01 Jan 2022 01:31:32 -0800 (PST) Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id i185sm32139169pfe.199.2022.01.01.01.31.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jan 2022 01:31:32 -0800 (PST) From: Allen Li To: emacs-orgmode@gnu.org Subject: [BUG] org-todo (C-c C-t) bad negative prefix behavior [9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)] Date: Sat, 01 Jan 2022 01:31:31 -0800 Message-ID: <80o84vol8s.fsf@felesatra.moe> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=darkfeline@felesatra.moe; helo=mail-pg1-x52a.google.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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=1641029539; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JANQj+74XbsczLeu3s//qTzbDgdKfWI1vwjBAoVMFKs=; b=qUcOsch9OVBSTYmy2RmDwV64A/2kZPmDvz7xPJEimccTndfsI4RgkoIIhKnCYEHbZw8f/C YzU4jjv2yeKDvkux6XHThCQS5raJaLuzODa+elDjkOMKOW3yw7QcV0F7wkHdVWSGB+nVuu 5zvj8OKYrmjtwd2AsbeUHtS5L+WWOxujboqhRKHx4TF3xJHqDpTYQ08vNktLLLolJiOldt awezhtPcbWF+1SEKcNv72EVyCcE/0chSxQj1j/Y7ZegbnkOZUINSa0fnmYcvqhxyu2uZyY ts1M5eoTFatbu2Yw9FqVH5e3Kd3x75SNzbCG1g/hy0H1wA1rxRFimqiftS1OaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641029539; a=rsa-sha256; cv=none; b=AmTm0bRd9t0xbJCiBXp5wu0Q9v7FbskGegrTDWfhGBBRae/OvFsWIg0rUmVmiYSvSigUuo +jAzKQHGEJ9wJuEegmlzAe3CH8ba0Rbi2Tzd5JPrVNncrDam889k/idosh8IUTOlXbhYGX rJF9p2Vaif4Ugxj4a3COHCzxJgmlZQSoI7ItG8HYxSwpeZaO1dRIPDQYTtpECd+gAaIaDO Q053S6OhipMa7FFefQCrQN75KFvMe/M6mc+GJjdWYkEOv8kO+zwzRx/QHis3dwNaBbHdq8 qRkVJiel8rN8MMMtf+WZzvR4RYRly2Yi6g922KPYwPwjmh0pzJqQ2Iv/8/xvgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b=CWJWwJ5k; dmarc=none; 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: -3.78 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=felesatra-moe.20210112.gappssmtp.com header.s=20210112 header.b=CWJWwJ5k; dmarc=none; 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: 8955D152D8 X-Spam-Score: -3.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: pv+lgAbGA7eK The docstring for org-todo (C-c C-t) is unclear about the handling of - prefix compared to -1 prefix. Here is the relevant part of the docstring: With =E2=80=98C-u=E2=80=99 prefix ARG, force logging the state change a= nd take a logging note. With a =E2=80=98C-u C-u=E2=80=99 prefix, switch to the next set of TODO= keywords (nextset). Another way to achieve this is =E2=80=98S-C-=E2=80=99. With a =E2=80=98C-u C-u C-u=E2=80=99 prefix, circumvent any state block= ing. With numeric prefix arg, switch to the Nth state. With a numeric prefix arg of 0, inhibit note taking for the change. With a numeric prefix arg of -1, cancel repeater to allow marking as DO= NE. The actual behavior is that - (along with any other negative numeric prefix excluding -1) switches to the first state and -1 cancels the repeater. It seems like the right fix here is to make - behave the same as -1, and raise a user error for any other negative numeric prefix, since it is likely not doing whatever the user wanted. Emacs : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27= , cairo version 1.17.4) of 2021-03-26 Package: Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elp= a/org-9.5.2/)