From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICiBMZaQimJjIQAAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 21:35:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +NBfMZaQimKNEAAA9RJhRA (envelope-from ) for ; Sun, 22 May 2022 21:35:50 +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 03C5F3C1FB for ; Sun, 22 May 2022 21:35:50 +0200 (CEST) Received: from localhost ([::1]:53036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsrMi-0002rn-Vv for larch@yhetil.org; Sun, 22 May 2022 15:35:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsqiJ-0007X4-Nc for emacs-orgmode@gnu.org; Sun, 22 May 2022 14:54:03 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:37732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsqiI-0008Pj-B9 for emacs-orgmode@gnu.org; Sun, 22 May 2022 14:54:03 -0400 Received: by mail-qk1-f171.google.com with SMTP id 135so8982144qkm.4 for ; Sun, 22 May 2022 11:54:01 -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:mime-version :content-transfer-encoding; bh=mTH5XeGx7e1JT3BzrQfSEgKbBZH2306c3m3tXl/1R1M=; b=xyffpY1DcwMJn+bId2QYpZ3zBFkv+ePUWHCegZMHYwzOE8juWubOUoGmyxuR+Xqbdq YMlzAOtKxDbsxQxiITM4iBdHYLdL7CfsH8t0n2ERaXnUL4nr0eYhmN4x+/3CqsO1MaZd Bzuk9jDeo2g7iTl1IsX48eB7aIKFilhthnnKVjcNJ4lchahese2tPM6oJsmoyzsn4E+N zVa+R/mW+3PvjCpHVwmnQVppjyvfXAyXHzie1/2fgwWFW26yoZN83GWnuYlPOwR4JVLH JlHFhaKgfWnbAWHqjPTPpnLzgbLF+sys3202FoaH0+tr/pxTLz9fy3Jh4rHFotlwHEg3 6+Ug== X-Gm-Message-State: AOAM5318VX5B0tuG0zOigjEuUiv/OaLPBjMknPY8xeBbvgZ02JQrpjcJ HO8GIWVWmsz2qka2Wyz2vo5i+6Bzb9H3Kw== X-Google-Smtp-Source: ABdhPJw4jqm+Hjd6Z5HtBxj4GSOHDLiaDqmjv4rn9oXT/e8KwsLhZkGDJj5m0C7dnQWvMFga8Q4Gow== X-Received: by 2002:a37:8ec4:0:b0:6a3:29c4:8f12 with SMTP id q187-20020a378ec4000000b006a329c48f12mr11930802qkd.563.1653245639444; Sun, 22 May 2022 11:53:59 -0700 (PDT) Received: from localhost.localdomain ([68.160.242.242]) by smtp.gmail.com with ESMTPSA id cg7-20020a05622a408700b002f9050bb622sm3085710qtb.69.2022.05.22.11.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 11:53:58 -0700 (PDT) From: "Aaron L. Zeng" To: emacs-orgmode@gnu.org Cc: "Aaron L. Zeng" Subject: [PATCH] org-todo-yesterday: Fix interactive arg when in agenda buffer Date: Sun, 22 May 2022 14:51:21 -0400 Message-Id: <20220522185120.2852682-1-me@bcc32.com> X-Mailer: git-send-email 2.33.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.222.171; envelope-from=zeng.aaron.l@gmail.com; helo=mail-qk1-f171.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: , 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=1653248150; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=mTH5XeGx7e1JT3BzrQfSEgKbBZH2306c3m3tXl/1R1M=; b=QjMisr5YxlNh5UXfSnKvWUnYb8j5qoGwPr7X31OX8HJdjtLEoPoliHQlr+fg5HjTUGoq+v i52Us1Z8VVQT036zxm4qqDA7L7jzIY9/uEWxhv3E+2Pkz/8QS7iV7gWolbo/GDWaYpbaMi 13gXiBapR0KUCr1IFkFPQE3jy6of/fDO9PtBvg+7/cllnz5n9cuNICtDNghpCeCjv8+VHh 4AwcOaoEKyb8lU7jx/X4+TM7CzwZe/1jnme1W26MKY4gU/npm+SBrzMW8q22nOc7tXwlu2 QArsQSCeNAGvBz5PHqI1CyduInSC1WqbvxFcu7zM2UGiyDwx4kyay/73dOqPgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653248150; a=rsa-sha256; cv=none; b=oV4dJvXUTIOVb3QVFWQgBpqmC+mV96YLevfmR0ORLocu0O6Tgbpw45tthX038vrkJb3nPK jIyEG/LhHXcdmpB6NZdecOeEYzKvcN2M4he+kfzRDn0obxHOx2u4sNDu+CS4rTi4iLUbKV 20cvyKcDVhlQPxdC7AXjyT/T5ZQpFU6uqpFNkt3XdrRU8nwEZXCk9Jh2vIh6wviOt9d1eU v1ySEtoEkd9CHPZKlYB8yQaWAevFppiQGaRPUJypTCmukUVyOPPwv3enRn/1hh4f8Daj6x U29kE3Pmfo82MyMMKLh9tVF17Jvzjc/j9u5qYvf8BqsviXCbM3zXtX4bvChtKg== 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.35 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: 03C5F3C1FB X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2ILAi1kH0Hav (I'm resubmitting this patch because my previous submission was in-reply-to another email which I suspect was ignored. Would love to get this relatively simple bug fixed. Thanks!) * 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 6842bfe9b..b3b9c777b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9666,7 +9666,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.3