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 ms5.migadu.com with LMTPS id cEpeI9RsrWJsFwEAbAwnHQ (envelope-from ) for ; Sat, 18 Jun 2022 08:12:36 +0200 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 4NJgI9RsrWIBJAEA9RJhRA (envelope-from ) for ; Sat, 18 Jun 2022 08:12:36 +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 0A1C6CCFA for ; Sat, 18 Jun 2022 08:12:35 +0200 (CEST) Received: from localhost ([::1]:38860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2RhC-0003P3-E6 for larch@yhetil.org; Sat, 18 Jun 2022 02:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2Rdw-0003Mn-4Q for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 02:09:15 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:34110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2Rdu-0003Rm-AS for emacs-orgmode@gnu.org; Sat, 18 Jun 2022 02:09:11 -0400 Received: by mail-pj1-x102c.google.com with SMTP id mh16-20020a17090b4ad000b001e8313301f1so8414004pjb.1 for ; Fri, 17 Jun 2022 23:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=GxrDKmb7tJjPDMQ0kjh8Oq8gBVVXmkokgw8CybMEXEg=; b=JUplEXlNnwm05rollK9yzsw9BYOs47aV0aMSVEp/BQj43LrjQJ36dH8N9oNIe1QPha yI2FOyQjpRe46GDuj3/HWxyQfXaeRgsAoHuFQPFasPuUiEudbtNKHwek8lAq5CcPphjk /u4UUoZPUxTWZD9lJgpn6t+bo7RW4LRC/wq6oWUw3GnckHQAQv+J4X9XlyQXrVck5LsE KiMh2sPzmutzByxlgB3V3w0zGYourpZq7xrWs2YIi6nXzKD6UFaVM3+xXGkBxbOUe485 DXW1ohIFeyQs9qQ2fmm2V11a8HC8yCxhvSfwmLaYCrWt09/53dA616faAxblzrMYvtuj TtMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=GxrDKmb7tJjPDMQ0kjh8Oq8gBVVXmkokgw8CybMEXEg=; b=AtQHJ3uwKP0cWQW+fZaKAa9c2ucISt+/dVpCJ7ki+80BdIt3FOcPg0cT9SXQIfRwoo q5Ri9HDqwQARc9YEOyEPu/0/SAx/+ZvU8S5S/MXHxBtYFLsrn0BAktbVLogDpXUQmHJW 3cZwLHf49JuX0/+u8WbuLYw5Z9pDnU6yWZMbgPwECAcXMEzZKdYDodoI0zTeo5PW0Zyz nwzK1ltX2HCEGQ+ucFH+dOlf2XxVOc1PBq9Kv+QoRlaSh0kUJXKB+OVTmTnxtjnxibrv ceacSPgoQ8bLpn22slQvAb8mSYlNowylScKZVYg/WgxoLP10dr6BfXml+BbHP0q9t3Qp UP/A== X-Gm-Message-State: AJIora9M/okwD5f45w756A7FcN9yB9c1jWAlxlSqFwDlWJ9W/ksCZ2zd 9sln7knqVDvFwHM0C0MxpSYKc1KNkyf8vWMp X-Google-Smtp-Source: AGRyM1sZUkxL26dcDYgm1e7S+kvI2EzHntIbM6vvMwVkXwv1Br/Lec2XHC9EMMN1BhdCMDXolIgjdQ== X-Received: by 2002:a17:90b:2688:b0:1ec:8d19:1da5 with SMTP id pl8-20020a17090b268800b001ec8d191da5mr578264pjb.114.1655532548618; Fri, 17 Jun 2022 23:09:08 -0700 (PDT) Received: from localhost ([192.161.177.252]) by smtp.gmail.com with ESMTPSA id w22-20020a1709026f1600b001663e1881ecsm4501066plk.306.2022.06.17.23.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 23:09:07 -0700 (PDT) From: Ihor Radchenko To: Allen Li Cc: emacs-orgmode@gnu.org Subject: Re: [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/)] In-Reply-To: <87h79a3gxp.fsf@localhost> References: <80o84vol8s.fsf@felesatra.moe> <87h79a3gxp.fsf@localhost> Date: Sat, 18 Jun 2022 14:10:16 +0800 Message-ID: <87zgiav6wn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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" 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=1655532756; 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=GxrDKmb7tJjPDMQ0kjh8Oq8gBVVXmkokgw8CybMEXEg=; b=NomDIW6BpXpvOGQSN3827+kA70D3G/Edg+q8XP0y7lPwmkRV5X0PNE0VSby/7dn9/QVCnE R1JGf1h/E/R4LheyCHWN97eEhgbgFpVvKLjdbtP48wwPVxxLaazSvBExmrb447JtbPeH7s meZTesIpkw2Ezol9PpgGIp6t+fFouNudpmBYgHWtKInKxAW6vrBsE1Fm8i6TEGKoBiA2YQ 5iRdu99cd2rMe22CWdI9f425EkWokDGU1UTYedSSNsTrDPXxOWgJeoKlMOy7weDOB0yjTI TpmHEN6gLgU70forOVzw7hjlalL8YKE38Smm7cLIfla6ZgKP/TEx4jlks7nMcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655532756; a=rsa-sha256; cv=none; b=d4LxbZSPreHlNVsn+aIy0rYycPHeYaD5zyASF4NG6Sq5/SS8Ie3MkOyOBHjdjL0Wn7w3an ic+W3DvVV3CqrbvtFD6AADTx0NiDk7GSdy62mIk+hfkCwC7zRTp2B5lGayioliGoUjK59w Q0FCh3QHghqm1ijgY1E53A8qNN4aCBTNFV8ZvYoPFCc2nPifIKODj98PmK7Ud4gpEFRU4f xFLWDH8HI34YzpubwkPQKvQ9C0J4nCKbHZxgXwIsb3rPxsrK7dmjx+R4iWLxwB/VoEFBRJ dvPQ2FPdpBWTor8ihZH8zjomK09UwBmkKcz6LNCQeoAh/Z9YwlcVJR+6IwtK2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JUplEXlN; 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: -7.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JUplEXlN; 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: 0A1C6CCFA X-Spam-Score: -7.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: jQqVumnm8H4F Ihor Radchenko writes: > Allen Li writes: > >> On Sat, Jan 1, 2022 at 9:31 AM Allen Li wrote: >> >>> 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. >>> >> >> Attached a small patch fixing this, which I tested manually. Applied onto main via bfd63cc4f. Would you also be interested to write a test checking org-todo ARGS? Best, Ihor