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 YITaHcJMVGKUVgAAgWs5BA (envelope-from ) for ; Mon, 11 Apr 2022 17:44:02 +0200 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 OF4rG8JMVGIXQQAA9RJhRA (envelope-from ) for ; Mon, 11 Apr 2022 17:44:02 +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 1611B24B6 for ; Mon, 11 Apr 2022 17:44:02 +0200 (CEST) Received: from localhost ([::1]:45278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndwCv-00049o-3y for larch@yhetil.org; Mon, 11 Apr 2022 11:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndw4A-00009P-Hc for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 11:34:58 -0400 Received: from mail-vs1-f51.google.com ([209.85.217.51]:43981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndw48-0006zE-SZ for emacs-orgmode@gnu.org; Mon, 11 Apr 2022 11:34:58 -0400 Received: by mail-vs1-f51.google.com with SMTP id v9so11067846vss.10 for ; Mon, 11 Apr 2022 08:34:54 -0700 (PDT) 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=deaodTWvxyLczRY9fQdZv3Jmd/TSoHMem42RsvCxXbw=; b=seZAYzAMTkCesopfLA+LOeVHFJzt8UfY1n7g8cE2mr1laDRJDqTakmKFRYQQ3rL0I5 CvjxykWVUbRBVe68K1G2iwNf/7EbWwsi2swNpWI9B/yXLHaBH/C9SlSnuzL24exIUM71 1A50Rl0JN2bNokoBECwunASu5SDQMyRSBtrDJWzvYKNuxAGSgVQRV3cpNKK0Zc2U6Dv0 ho4BY3FQbtcPgjn3wYxfMrPO5WlmXdxfbB+ZK4jp9zOTxlC+xYNrCE/FSlbY2t5w2wHX 73zyNU9shjNAWnwzgRY/yJsmi43ltJN9VMCh5K5qu43aH1xsG+CmqHxUyuDMHhSiOUzn +FZA== X-Gm-Message-State: AOAM530S7d12yaBuGBf0jehcv364VDEnTUKJumO9YyIEnpsX53F8Z46k XIUQkT392SVXKVIn8Ic+/UQfJdtZnHMIPA== X-Google-Smtp-Source: ABdhPJzmSH7g9XUK1XQ4G88QlL3vCa3b3/IFB6dW79f62BGT9LeeEmFvJbe7LvRRTiVTjfKwtRxLqA== X-Received: by 2002:a05:6102:a8e:b0:325:aa27:35a7 with SMTP id n14-20020a0561020a8e00b00325aa2735a7mr9040830vsg.50.1649691292866; Mon, 11 Apr 2022 08:34:52 -0700 (PDT) Received: from localhost.localdomain ([68.160.242.242]) by smtp.gmail.com with ESMTPSA id i2-20020ab01582000000b00355c64db469sm4572283uae.16.2022.04.11.08.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 08:34:52 -0700 (PDT) From: "Aaron L. Zeng" To: emacs-orgmode@gnu.org Subject: [PATCH] org-todo-yesterday: Fix interactive arg when in agenda buffer Date: Mon, 11 Apr 2022 11:34:03 -0400 Message-Id: <20220411153403.1151899-1-me@bcc32.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.217.51; envelope-from=zeng.aaron.l@gmail.com; helo=mail-vs1-f51.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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: "Aaron L. Zeng" 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=1649691842; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=deaodTWvxyLczRY9fQdZv3Jmd/TSoHMem42RsvCxXbw=; b=YpReIXPeOsq2IWdqmAi8oiJQ7B38N4xA2Kkl6elcb2Os6NsGVp1UKvUT4zBGVCZ3xf2Qlw i9HHL+KYaJ/hGOjVP2DZOhwofST801RGvSG7OQt1jwiEzUzr8Ff4ijhvEmUuvm3k9fA0dp qHtER6PutMAo/d6EEkhkoFWMtf4CiDnDBlwE3NwhzUXoGzP5cReRyZtOUqGLLvlCYspGv5 Sbmb+ICze3+3kwwQZG4Ud1wSAP7KtgZGa2vPjH9UVyAm/ouchgy/PeQES8JbhhSNoFNjHK NIyfuSFECt5KyP2CedsosXfBv+tEVxTLgulihPlRQNwVWVnYRxlKgGZeT0gIkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649691842; a=rsa-sha256; cv=none; b=L1YfOggfa/Xx6+MFpsskvAJvemJsfCnwVBZnhpg1LIo60+TGNeUFafuBHyUPMPqm04tzIB abx4zIRvZ5+Q/fp9Ff1BT2Ty92BzCn3xNNv+6Obtbj+I/divSviSSDhJQ7vx40Oku0xwJy NkjwJ7wmeXIc6sa+2Ul2y8qkxoQT7l7+0xU+x9Ug3VNo2wdPI0FRymoTd34Qlgi2CguC4g tsVnrEEHm4gywqFA9wPjwntS7u3YfBai9QAwhwbyimOXQsZ3zK/IztHucPN7HTg1WPX3Fw eRCSGEDKvnp0wPWeZDYv9ZpUmVz6+BJJn7GuafvBBwiLQ5WQ7+Y7SYBop7UA3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.37 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 1611B24B6 X-Spam-Score: -1.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: +O0dwt5CEDv6 * lisp/org.el (org-todo-yesterday): Fix an incorrect use of apply when org-todo-yesterday intends to call org-agenda-todo-yesterday with the same interactive arg. Before this change, the command incorrectly set the todo state of the task to blank when called with C-u C-u C-u in an agenda buffer (supposed to bypass any blocked checkboxes/subtasks). TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 54350faee..5e326e765 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9665,7 +9665,7 @@ nil or a string to be used for the todo mark." ) "Like `org-todo' but the time of change will be 23:59 of yesterday." (interactive "P") (if (eq major-mode 'org-agenda-mode) - (apply 'org-agenda-todo-yesterday arg) + (org-agenda-todo-yesterday arg) (let* ((org-use-effective-time t) (hour (nth 2 (decode-time (org-current-time)))) (org-extend-today-until (1+ hour))) -- 2.33.1