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 qAq7FVnlt2IpawAAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 06:49:29 +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 KCy/FFnlt2L7MgEA9RJhRA (envelope-from ) for ; Sun, 26 Jun 2022 06:49:29 +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 F1F22A119 for ; Sun, 26 Jun 2022 06:49:28 +0200 (CEST) Received: from localhost ([::1]:43126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5KD8-0001GO-5B for larch@yhetil.org; Sun, 26 Jun 2022 00:49:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5KCE-0001Fp-M0 for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 00:48:30 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:54881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5KCD-0000rm-0Q for emacs-orgmode@gnu.org; Sun, 26 Jun 2022 00:48:30 -0400 Received: by mail-pj1-x102f.google.com with SMTP id cv13so6314376pjb.4 for ; Sat, 25 Jun 2022 21:48:28 -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=lY+aUjgXQVyGhtlpmUVjMMpjgzPnXx/6nzSnxcB6Ces=; b=ZQISiTF/sABBAf1//92myGZMcMxrt+TmCHKG+UkBFr+c4nyMgn6+r5l/mQ9gEh47pB zu0B2G8Pduo4fjd5VQMbCWirsPyuGPin0O8yYEOyG7Dhat3vmHEEsGtvx3Pq6ypinXhr ifp+tFxyTD+Kxuk8nJ9g0RhMuXU3zfCknowPfQqYOp+gwPhVrbq46HslmNcYHt09O5xu 21YnZPLCmgbNH5336iWD667vV7kUu+9/BH39LHZv+52fMERXImHQMafBP62lWcVAJoQU xbaZf70qp1fe5NNuTS9LwKr0xvie+SLiBCFySnPfm/ofyOEru8AvnYjlN+MzbOnvs/nG 3E8A== 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=lY+aUjgXQVyGhtlpmUVjMMpjgzPnXx/6nzSnxcB6Ces=; b=P1O/3ugRXAki1zKirFUtkZia78YssYPKkS6GFjm3cN+GP1sGigpudFBoIfwS4k25hN F4boxbemZRZCXeYPrHzKTRerINpZ6B80F/RZoQEwQJnjDipNpkJ+k6oZFfiyHTP9dY7M f7s2ONS9ES/3lnnTrzaZO/suLrd8vx8LOsn4mC9ysjZUSV8i6RUvV2wCpzpZ35MY58vS kTT/T4Pi/SZXE6d4dEYre6kJNMlrr9NUqrWluCwJbe3UbfUx/H5TAnwlN4a/UeOPYVUh NKh+RohHS643UALOkot6NJ4dGtdfJ8Z8w2pszbFtIycvxvCY4eRZBCxCAkMHx6A3oGxp 4lzQ== X-Gm-Message-State: AJIora9Kp+d/A1bx6phbG6+TgB9YK0eMtuok+J8hljhrfj7WDDNUG/ty FfbFqW9zbc04Xz7+6MQjJVY= X-Google-Smtp-Source: AGRyM1sKleCaA0/bYjAG7b0UlbuC6UVqyLAn0wYA3zKn4zjUR2w1z+7gBTjX1C8urZsDb6LJvFUMZw== X-Received: by 2002:a17:90b:4b02:b0:1ed:13eb:11c9 with SMTP id lx2-20020a17090b4b0200b001ed13eb11c9mr8142668pjb.76.1656218907555; Sat, 25 Jun 2022 21:48:27 -0700 (PDT) Received: from localhost ([104.223.86.8]) by smtp.gmail.com with ESMTPSA id a20-20020a170903101400b001641670d1adsm4471564plb.131.2022.06.25.21.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 21:48:27 -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: References: <80o84vol8s.fsf@felesatra.moe> <87h79a3gxp.fsf@localhost> <87zgiav6wn.fsf@localhost> Date: Sun, 26 Jun 2022 12:49:38 +0800 Message-ID: <87zgi02fml.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.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=1656218969; 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=lY+aUjgXQVyGhtlpmUVjMMpjgzPnXx/6nzSnxcB6Ces=; b=AAUzYUZzXfoPo+lunAlRlM9CjtVSftrNx8K8yGtBrccY4GBTzEeC5ptcb7nJ2HJuAnpgyA 4weUvoXjh03CyV+z+825LjRtBIEwnt+5GQrswdqGEdjr8CjfU3dkED5NQpO24MAQzLu95Y vccCM0GmByJxRLFlTf4LbZ+QrNN+10PA/lQo2ssyICyyC8U//8973hNj2KDMJKnap/5NEq SxZB+Hg4ISbu+4bJmnlEUoYFnOwvMDwgUvwO78WFpUO0Rx4cEBGwpjCAb6WCQobKf4fnUZ jTsOSbxCJ/Y/xB2jOFI6biRCj3VtwmE0lye3Y5VBgb5qK45tyQkLqSEju+5XkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656218969; a=rsa-sha256; cv=none; b=HNxo+BndFGkla26+FXkkTd1dGVlxPiOvYtOmslSFIio8uGrDoi8Sgern71UTZjNOvkAr/6 gypgpGdK4d5+/M5LNnEUGIaX5qR90KqhH6y9iQ5C/9l9Y11kjVafZsZh/jQaB4pYgxP+Lc u99y5ebninQGbxxC3XqRY+PYzuM3nKp/W+5+Gffk3nWqq5EDwrZsyRed0F/PzxsCDDm4Px rZc/LZANCsUv+ycCb7OqclFgYwY8xc6dzwK4wPqGuBB+9oHleVNy/r57rwdvdCAOmlN/NJ gmIYH2FePp5EX6T/s7uAmouoAKrBrUGSi2HFrSHDZYjfeiw1vwLxlrUyoTTarQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ZQISiTF/"; 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.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="ZQISiTF/"; 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: F1F22A119 X-Spam-Score: -6.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0I++HlbGJEq0 Allen Li writes: >> Would you also be interested to write a test checking org-todo ARGS? >> > > Attached Thanks! However, it is unclear what this test is checking for. > +(ert-deftest test-org/org-todo-prefix () > + "Test `org-todo' prefix arg behavior." > + ;; -1 prefix arg should cancel repeater and mark DONE. > + (should-not > + (string-prefix-p > + "* TODO H" > + (let ((org-todo-keywords '((sequence "TODO" "DONE")))) > + (org-test-with-temp-text "* TODO H\n<2012-03-29 Thu +2y>" > + (org-todo -1) > + (buffer-string))))) This test does not check if the task is actually marked DONE and also does not check if the repeater is canceled. Best, Ihor