From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uIC4JzgoAWKBCQAAgWs5BA (envelope-from ) for ; Mon, 07 Feb 2022 15:10:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2KcPJTgoAWIkNQEA9RJhRA (envelope-from ) for ; Mon, 07 Feb 2022 15:10:00 +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 3249011D63 for ; Mon, 7 Feb 2022 15:10:00 +0100 (CET) Received: from localhost ([::1]:40830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH4iN-00070j-7c for larch@yhetil.org; Mon, 07 Feb 2022 09:09:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH4em-0003OW-59 for emacs-orgmode@gnu.org; Mon, 07 Feb 2022 09:06:16 -0500 Received: from [2a00:1450:4864:20::536] (port=39581 helo=mail-ed1-x536.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH4ef-0002J6-Vu for emacs-orgmode@gnu.org; Mon, 07 Feb 2022 09:06:15 -0500 Received: by mail-ed1-x536.google.com with SMTP id u18so29952073edt.6 for ; Mon, 07 Feb 2022 06:06:09 -0800 (PST) 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=a3ySL2G4rfsy5V0ksN7fYisiEKFKej+2yj9RHCCcc8Q=; b=ExlAt//K6XYCbKbjv90CzW56h00oZEKSUfmnQuTRnz3Ba8dO0v27L66AbB+eRhVVn5 lajhEGA26Lp8kodH0RI9KgPNom3vvFvrqw/Juw/US417jeHd20+RMKgfYRPfXXN3i9wJ P6yaepzystel2zT/4n7+0MGo7haa5oikAGwqVQI3J4lrOUefUtSLdG3s49dCmhvKLYPb to1jBRpaCl67hImaTT0w5O/eisTtlW5QS9q4OoBO0mOlYUCDQIGIC15i2Kw9cX89Y+eR 3ddZBnrZCzpGQ5MAQ25sEPrDMwAUrDfdOv1HdPBZug3q4II1yNqNOZx7BekwQgjzs85q 1aXQ== 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=a3ySL2G4rfsy5V0ksN7fYisiEKFKej+2yj9RHCCcc8Q=; b=xCvNyQvr8JA+myTSKr6XLn5EfqMB3FsbImI5UikXV3sejh1Yqq4rXYYbtiUK29SmIJ 85tRqkHNxmIHBXdbQYtY4r1UU3Ke1T4VRXGQ2BixQtg5uol0kNFexGmjHDFoizTSBg5E eVsL5zZbz/7bP+PNfMBGBNE3Z/JrQ2YoJurp/NVc25gEgX3x1ZotmlreUsgx8m9oZhYj EU9JMwLVWLXyFA1jIdm74g18KnhkGqDhpwRIhnAo49FOj8bOPPf460dHUMnUTss5N3+i d4I7VvzTYIWmGUJd14WPd8K5hzhCFAtFlOg0TbEUA/7cC1vLiVNCo4h5AjFP6yE+aENT Tsyw== X-Gm-Message-State: AOAM532LnRXmrkGga7G+VXi3qLSoGfxb5V42DPqkG+VBnZU3yqr+EZeZ cf1SGN2CdwDGucVOMAmJdZkp9Ad2DaTPfw== X-Google-Smtp-Source: ABdhPJybbozTwW959kiC9nGMKedoLLzWaQlnx7RRhcLqgl9nDy/EvjCpvSDtZP5OctcrhI7TptAUjA== X-Received: by 2002:a05:6402:5194:: with SMTP id q20mr14009455edd.403.1644242767976; Mon, 07 Feb 2022 06:06:07 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id s1sm5383557edt.49.2022.02.07.06.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 06:06:07 -0800 (PST) From: Ihor Radchenko To: Allen Li 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: References: <80o84vol8s.fsf@felesatra.moe> X-Woof-Patch: confirmed Date: Mon, 07 Feb 2022 22:11:14 +0800 Message-ID: <87h79a3gxp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::536 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=yantar92@gmail.com; helo=mail-ed1-x536.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: emacs-orgmode@gnu.org 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=1644243000; 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=a3ySL2G4rfsy5V0ksN7fYisiEKFKej+2yj9RHCCcc8Q=; b=OcL5mfAQG/1h5LD8H8uO41DqmTkNaRB1qyfYc5W7+jgCHcFBPltArUDuvEsuk9Lg2mKSbO wS+VqaUdsSquH/KoE8SAE4YZZUio8+eEGTknqDoB9yhIwGZ1WLsZYXzpzUDbK7bgMd6U+K QKh5HcI+XufTOlNvkPUIxXQrzpaJ9I6vBee8goeOHJya0M7bTqVafgwqBc6HiK6PSrwemf ok186RGjTigaG1YDouMk5K2ypmEARnoWjn+fuAvzrLHfLqdRot8rhjfH7PH3dYd5mSJPl/ +hpWCDQfkcDzOJR4AaPJxboOGLSnHXYC7syz6bXHlWJ7qPwm0APFz8rdBimMTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644243000; a=rsa-sha256; cv=none; b=jLBzXzT+4fKEyMVDYasge1ypeurqPNxWySOjTos0JnCrsbJ0EbLJXbKZZd9yoXNgXqvmhg jPQqH3H+Au77gLp6hpM2LXHUgVXeP32vrZVeDzlmiZOkkAT7iKnvkC8MNUf6//CN9Muq0n oF1uTtVn2iLXucSMllrv40ZCd4MbQ26JcSOwYj69iPIZ25g171MRyx8344ZMRMzqLTwoH9 Pf/HARwzBk49sf9/gBDxyjVOOqsxASDFh8iee3ZqYDiM2VKQQMr53YSr5SHlFRMlFwRsz/ qqujHAbH7JX2CNOotG3oHazg4E0M9GweO9oxp0h1PN55CmppwUouk8RhL4dYDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ExlAt//K"; 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: -6.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ExlAt//K"; 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: 3249011D63 X-Spam-Score: -6.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1qcLzA8qXBaO 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. The patch looks reasonable. Marking the message as a patch to make it appear in https://updates.orgmode.org/ Best, Ihor