From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uMUON2SUlWX2gQAAkFu2QA (envelope-from ) for ; Wed, 03 Jan 2024 18:07:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wC8vMWSUlWXDCgAAe85BDQ (envelope-from ) for ; Wed, 03 Jan 2024 18:07:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=IB8rMBIB; 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"; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704301668; 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=P8+j/M0jcntnMJ/PjgXSJCF+OryQxmr78Vi4L1EL0Xs=; b=bL7SGgwkdkIzK5KvrUYjmSB0sN/kumKZ8r+m4gC62aQs2nHb3Z7l8BqOG0AiseOcUNhWJV p3Z65HIWYRd6ePbCcWj2wGLQqvx2OSjqhrnBRFUxCpChmK51JruFqtmfwPcENtezXtfCx0 OawfQ17qQP8bAPTkwVdml0gI4o6xJAn1jalvSAsYCfD2tDex3vpYniyJZXvn9zr0g9YP+K 5e2mHE2ubndT3EgHAgxP4hvhikidlI2oxbdRdJC4QbbMYVscWMDaQyu4W3Qm8RCetdkKeR HGRpZVsqrqmKQfwgG5OUtsUUsP1mFvoLfbiC89Z1J9OH2AVsZLpuvFoOnW3xTA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=IB8rMBIB; 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"; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1704301668; a=rsa-sha256; cv=pass; b=loJllCRm36qBBz0Jey8QfH13dRLwsd7xL8v9FVEdyUBg/yxfJO/87/0oPuY+sWEFwt518C Tx0SJubkPQhiJR8XmOCzJOYlEWCnQsTH6MPwfnPEh//Ig+2dXbtlGqtUqb1r/4XmDTcgNK gDRL4c1Mbk8AkxA7qA5SEh/b+ECREBMpuUTNgxcVJjNmEZOmjJd2UQSvOpzsJhJuQsPYYj 4lO+JCzHoYtHr3a6ShCZ0BDINFg0hF5U2ZFjNQB7AHUB54/Z7A4iiAmFpN4sKObs88/T0W D2+jRV2+pAolTKaaoLltzHGzozewYeuWod1JLLjYFxAtSmZcY7Mbckp/BKJ3Vw== 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 7C81C45A0F for ; Wed, 3 Jan 2024 18:07:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rL4hg-0002NB-9p; Wed, 03 Jan 2024 12:06:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rL4he-0002Mh-4D for emacs-orgmode@gnu.org; Wed, 03 Jan 2024 12:06:50 -0500 Received: from mail-bn8nam12olkn2025.outbound.protection.outlook.com ([40.92.21.25] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rL4hc-0001yW-EE for emacs-orgmode@gnu.org; Wed, 03 Jan 2024 12:06:49 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eNZY5wdP4lsV7Gb4NK3wkxllZoeRkFBnuIQiXF6bMWu2OYrSdZhAnFSlLy/WNr2SmeztKHiBM55qTj8FIvu/jmoj0g8EBC6JvUeh3LR15kNnhqVpct4Z1Efk/CZsR0IrUclxSekQdlNLFE+jtTay36PcaLmI/b+VL1SampWEr5YFLDAi9whvLbxbqj5Dolsq8lRcx3Bc6bKIv4o59Lv1JIZiS29BWQ/Ozc3dnBo2+SCB6zMfebaztb/KqfYB4A++yKsowYuzkgd3ry+MotQ3GRwSqnj0Jcu43xzrmGr4nrX91emvjJ+9bjBxKGRT0pn878Mic693rj1MMfTLcgaJlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P8+j/M0jcntnMJ/PjgXSJCF+OryQxmr78Vi4L1EL0Xs=; b=IeafemMzwE8WMY4HnF9dXL3lojs1crW2qiAOkUL5paNwzXHlFd27ykRiezL9ZmsfZ5Pha4Sx5Z6hkhp/wCbhuYQh9IDCSiveIwi9lEHjN0TrCPkt74qVdnIssaXYAp2kaxd+FX01WVsklDHCc4fwvwK9d58Cc17gDJoQhauDUlyY+bLe/N5D3Xpj3/oBsmWFtYqof3Q4Vlty9OVPLpon4dLoJj8FPv5Qri68lXCQ7q53HS73RH4p6I5z9rjNHLoSPbceKwiCD97/+E/6RYCCfpRmvLQzXthL0v6UDz39sPDNt+j5y/ZiwL5Yn7xMpZTMVLj0bZkBsJ56mCk+WpbPgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P8+j/M0jcntnMJ/PjgXSJCF+OryQxmr78Vi4L1EL0Xs=; b=IB8rMBIB4ctJockm4yHLQ09V6UdEt/tm0VyzTZsOFv61rAUwlzNGp6vdQd8ueIrC+Z9nV7U2e3tTzzWiU89qcWOGlca2oSAOjtZNHVqZIHuGcthaGcc4F0HcxODs+8h5CUs7K+KyARWnq3117URPYQpNo1eEd8umGFPjUGnXI53pb4MOYdnrJVv6B+srzPGBexHGD0VyjmdupuTvY3/B6Oer3M7h7OqztrBm1mv4Te1so0gJp0MEV4A0E7laZB61VroMj0FTEUb6PE/b/DDOp5Ssv4abU0k8e14uDA60bh2yyuMDzr2X5O8SltLPEc3qX3ZXoG+ZmDSdlV7vJieTgQ== Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) by BY1PR84MB3940.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:a03:4b3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Wed, 3 Jan 2024 17:06:45 +0000 Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c18a:a34b:77d7:f265]) by CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::c18a:a34b:77d7:f265%2]) with mapi id 15.20.7135.023; Wed, 3 Jan 2024 17:06:45 +0000 From: Morgan Smith To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Fix org-agenda-skip-scheduled-if-deadline-is-shown bug In-Reply-To: <87sf3e77v4.fsf@localhost> (Ihor Radchenko's message of "Wed, 03 Jan 2024 15:29:51 +0000") References: <87wmsu788v.fsf@localhost> <87sf3e77v4.fsf@localhost> X-Hashcash: 1:20:240103:emacs-orgmode@gnu.org::9FYhUzwFfD+n9bwh:0faQ X-Hashcash: 1:20:240103:yantar92@posteo.net::mrsMADgI0iEIFMgK:8BA7 Date: Wed, 03 Jan 2024 12:06:41 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Content-Type: text/plain X-TMN: [pAL5w5KTLabe610zv39ot7vuwMP6KOv/] X-ClientProxiedBy: YQZPR01CA0015.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:85::20) To CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) X-Microsoft-Original-Message-ID: <87a5pm1h3y.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR84MB3424:EE_|BY1PR84MB3940:EE_ X-MS-Office365-Filtering-Correlation-Id: df012ad1-4a75-4aad-f4ab-08dc0c7e5d68 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V8giBwh71R0XJ3VJ11z4MMADSER3XhBKM1Ji4D9IR0abJh524r8nk8qZo7cfHIZwQJfXy5CsC70p5ZQdToSx9sCKy2KUk1gL4IznNpxEhZUZIUYqr1JKd1QwdUWvZHXUA+MGvu2g0upvUmgDmOzHxd9Q6vGswyD3z08f4q3Ru4Q7dyaqLv1O8zrtFO9yL8tQbMbKadV/d8AIxccX5lOHM9S2IRThLycC2DmJtvzk4dgWEizCD/5+nzcGGY02OYp+Aq799Pi80DQx42ov5AhLczW7W4XZf02l3UXjLxnLMdne+NoIA6i8yClT6QI4rUHcD0bDYYPLpXQ35LyX6oWOpaE1/ILQgBiKail9nbG8VHFK81GLICDSzSDEwtTPJFadBluh9tEe1KqDMdmGshuFO1YRB2X0g9zIqtoRUGBgriw7VafbEYUmYk6Ij7qAP7CpMAgMXBJzfyVyOssTacsrIB1NZV9As/CDY0aLgmaDN2GTLMe7dZYfIrQnQ1MjE867HhAydzym4XvgLeUuU3u42R8egOOmg3I/UybKw9xe6oggDOl37SKidDFy1FQHJ7gr X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ed1q/IdVSb2BaNZt6vr2abUd+AnkMHLR0M1ah0gp9ZLJ0kgRXT4m0lt9+rJf?= =?us-ascii?Q?zDmjQTMqeau9HbYqmMUMgao/wPvKdyShXmTxZI/K0Bcp1qD6Gf4yCQyOL6Kg?= =?us-ascii?Q?N8fyJFBTA+UbR6XLYZJsw+6FylJABXzhI4pzoqRy8rlUCHAbEi5SU+QScQ0G?= =?us-ascii?Q?T/wKgctBL3m0mPEpRvRRk57UaKfGoMApvZm79+03nmAtuULgdG2sVYJs3dDB?= =?us-ascii?Q?V09uWiPU2lJlE4wUp/6debMmUIzhAbaxnYm8e2QxpV5UpcjoDkLOYK+pIFpc?= =?us-ascii?Q?C3mHqkP3FCtQRx0ORQCGf/OJwhU3ps5mkbWsnWhG/sHqASd/3zWz3xrRTkn4?= =?us-ascii?Q?kMWh5FkRY4ki+eBnpU39wCKE9+pz/DVzFptDhaQnS2VPjAE4DdV5RZBLbduq?= =?us-ascii?Q?R6S7KWvVhiFNEkvXMoX24pWqmMSlSwI0QsP5ULRTo/LuoX/x5wJumTxErP1F?= =?us-ascii?Q?YWdTJHCa8o/QGI8vaKFWa7FgfQjgEdbsaO6B0Igbg3A7mbJb9GV1j0NPo8kT?= =?us-ascii?Q?hV4mnVHZbh0+eJn3STGy6w7K3ZHSV33OhVRNXK94gZorO75Jf+OtxbNWzMXF?= =?us-ascii?Q?jrEjrshFy9HdZsaJ6nKYMvNA5A6dgadp/vd2xjOdQyFGZ5Jd9Oj1m8n4W3dY?= =?us-ascii?Q?K7yIzUB2w92izxPlBM9ghaDTkA6lT95mj6EjULcEm7BC/s1rKUDZX4zCYRPX?= =?us-ascii?Q?PClTlzcczJu7FytfKJ8PawYt+LBgVvc0efcExcRfHEJ9Y+7SsnGhhylufI5U?= =?us-ascii?Q?+sZ/07xBOYwcj9iMSuNp14s8pqfbWC9HDymTuK79CGGEMB5pj4jyOxvYx6B8?= =?us-ascii?Q?nL84d98QuY/mU3pARNBqBHb8As2Oym6Le9qCaYxMjy+Y6d1JqAE701/y0bER?= =?us-ascii?Q?g161d9pj/GkHndwRIscCFxuhKmgQfbj4IBjdtssnARtteqaY/c53ijn8yPsA?= =?us-ascii?Q?PfWfx9UGytGdGrHntcMuTjB62HBwsJrpR19awKNGS1ogVH4MsUjl+ivP+Khc?= =?us-ascii?Q?3C214jBMw9oe4jpw2GThhPqgqhtb1LQnsOe3xRHiIgYrTcP+7glOGs0Mq9xY?= =?us-ascii?Q?bEoMt8dS1HAHYtncr5IRDo/t+dIZwN7bjBnIW36R6dXhNRjn8Wruk1dmZiy9?= =?us-ascii?Q?yaR/8Ua74mzABv0YgjNA8hPQoTZHGVo2sB6fKubzYl6RW+4PHTmsrys5ggm7?= =?us-ascii?Q?j8MgQA8UQW3ImKZRj8oLkr1WQarObddONAYTosiJMqeQlGREdOnNISAkZc8?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: df012ad1-4a75-4aad-f4ab-08dc0c7e5d68 X-MS-Exchange-CrossTenant-AuthSource: CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 17:06:45.5057 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR84MB3940 Received-SPF: pass client-ip=40.92.21.25; envelope-from=Morgan.J.Smith@outlook.com; helo=NAM12-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.49 X-Spam-Score: -5.49 X-Migadu-Queue-Id: 7C81C45A0F X-TUID: ORjxoCGB/VAW Ihor Radchenko writes: > Morgan Smith writes: > >>> May you please provide a detailed reproducer demonstrating the bug you >>> are trying to fix? Such reproducer could be a basis of a new test. >> >> See a detailed reproducer attached to this mail. It has a task defined >> as this: >> >> * TODO task >> SCHEDULED: <2017-03-06 Mon +2d> DEADLINE: <2017-03-10> >> >> Running said reproducer currently fails as follows (the numbers are the >> days of the month). >> >> (string-equal >> "06\nScheduled: task\n08\nScheduled: task\n10\nScheduled: task\nDeadline: task\n" >> "06\nScheduled: task\n08\nScheduled: task\n10\nScheduled: task\nDeadline: task\n12\nScheduled: task\n") >> >> As you can see, we expect to not see anything scheduled after the >> deadline if 'org-agenda-skip-scheduled-if-deadline-is-shown' is set to >> 'repeated-after-deadline', however, we actually see that things continue >> to be scheduled. Hence the bug is that that option currently does >> nothing. > > I think that you misunderstand the purpose of 'repeated-after-deadline > value. Let me provide an example: > > 'repeated-after-deadline allows this task > > * Do me every day before March, 16th (included) > SCHEDULED: <2013-03-12 mar. +1d> DEADLINE: <2013-03-16 sam.> > > to step being displayed after March, 16th. In my above example I have a task with a deadline of March 10th. My test shows that it will continue to be scheduled after March 10th, on the 12th. That is wrong. It is still scheduled on the 10th which is good. Being scheduled on the 12th is wrong.