From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 oMiDJ1bJwGMuZgAAbAwnHQ (envelope-from ) for ; Fri, 13 Jan 2023 04:00:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6IF4J1bJwGM8lAAAauVa8A (envelope-from ) for ; Fri, 13 Jan 2023 04:00:38 +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 434F63E14B for ; Fri, 13 Jan 2023 04:00:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGAIM-0008CX-OB; Thu, 12 Jan 2023 21:59:54 -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 1pG21Z-0000YA-Cr for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 13:10:02 -0500 Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pG21X-00079M-PM for emacs-orgmode@gnu.org; Thu, 12 Jan 2023 13:10:01 -0500 Received: by mail-qt1-x82f.google.com with SMTP id a25so9974640qto.10 for ; Thu, 12 Jan 2023 10:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=mtDFN9DJW+npHO3VgLiiyvq+RC1O/mCrHJxeol0jCQ0=; b=mi9WJM4wuRNHUawHiMrklqPYdiK1bujYJ+4HLeiF1TxjcPoWvWkeWvBIlEoJQtWLJq 50cKgD9WXMFJ84Cd8l+Y3H/KGNfGl0OUHtAiyBzNRBUTBPfPea0S5rGknSBQ5EStYmPK D80NHA2/wfOSeXE50oXwS2sbQJw/c8QUGE3Hvnmo+miOLeOb/Wj905AS0rqVOCDwFVe9 bxofbN4WczTZuksqrbG3VFy3y+Mzum7LVIDmav5DUg4ICsrHyETj9EKVJi3jViX7wqi7 vK3MJ4yfiGT+BkmtW+dDlfXwYzzhwwFAuArK52gjkj/JSrkCbxOAFbhpPHb9L5TGGd8k 6L6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mtDFN9DJW+npHO3VgLiiyvq+RC1O/mCrHJxeol0jCQ0=; b=YFyjv8Oj3dNlFBtfJHkjA+jm+RvIleQjl9xJHxeIldpjWnM3h4RXvaHFy0gU1617pj 07UPJRh4nuelyms6ENIliCUjSh+BpEfyZj2vzUoAD6MHJ1gt5EOt21cDDJvBaxNWwbeF uy7Mz8bHsxpmTOAn3wtb4MvPG1yPyAASWY6171qH+j36rUwkRvTkHq5vkw9wUvGRMC81 TXK3oBhKmNr+29IHbJsyJwOaAeBpbPjEEhhzU0gLDwDS8IEVqFMnN4JuRdMfgh76MbJV b2Q2tsPRSi1nic/g4dgcSke92VmaUDtuO/4g9iE24bTiFidc3f2KvBIZRk1cTpuyBu+k WaKw== X-Gm-Message-State: AFqh2kp+8jo+y4W5EZM04vmc1YlMblKx0wAJhMyGOZ3oRibAcYedQLFz sSfFoVO2/11NwDcb+WjpkBt9T5klGT8= X-Google-Smtp-Source: AMrXdXv3jYdUdg+xq0D3cuw2yj4hCeu71oWz2oy4CrUus5sUv1+fKeQkt7Via+S1KqVxdUtVrBVm2w== X-Received: by 2002:ac8:50d:0:b0:3ab:ceb9:170 with SMTP id u13-20020ac8050d000000b003abceb90170mr39365720qtg.33.1673546997321; Thu, 12 Jan 2023 10:09:57 -0800 (PST) Received: from [10.97.160.140] ([152.97.29.12]) by smtp.gmail.com with ESMTPSA id r3-20020ac87943000000b003a7f597dc60sm7162289qtt.72.2023.01.12.10.09.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Jan 2023 10:09:56 -0800 (PST) Message-ID: <62a2389f-cf1f-9caa-7266-015f3e05d734@gmail.com> Date: Thu, 12 Jan 2023 12:09:56 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: emacs-orgmode@gnu.org Subject: [BUG] org-agenda-span treats 7 differently [9.4.6 (9.4.6-g3ba46c @ ~/.emacs.d/straight/build/org/)] Content-Language: en-US From: Eppo Math Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::82f; envelope-from=eppolito.math@gmail.com; helo=mail-qt1-x82f.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 12 Jan 2023 21:59:52 -0500 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673578838; a=rsa-sha256; cv=none; b=JmHZ0FHHDZ6YRbldVG9gr7vWoN2P4i7hITzQ6hdmhWob8USZc7M4AbDfVxQYpy8cEKEXWJ ZD1HP2WmKHkRVcIBTIJHC0HBv1g7VPTzt1OGPzxFkkF6dRZ9F4QwNZoYr8ufa1wzuGs1Xl +/8pUPvwpG+52MdV0ZJIEqCgU0ROzdv7uB59vU77qXVJemQ9PV6jXXBI2/YnfTTD6ngKpv MqeBHsXiGOfYdJfPK0Z/IqKLz9VyMiClVmEht0eUK0I8zzBc+FOsoV3ijsoIKk0HzmTBkf JVvoEI8suj5FDeZnFAFplO6qfHJR99J/gRswUh3Any1qrVSVi/Y58OUx2/ZLoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mi9WJM4w; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673578838; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mtDFN9DJW+npHO3VgLiiyvq+RC1O/mCrHJxeol0jCQ0=; b=nCp6iQ9txnmfnB9F5DbDXDcMRVYfVBBoyv5njLHBf7STTGFHt8/nMUA9OkX8WCBc6bCVuW NhN1jpBHCYrgIHAeKxVopI2f+kAXNJOMJuYv7WZFTaPpvsjwRgnUGV+PM62Bbrp0nc9qgH lpE5mZbvEUWQ3ugtSfQ1GK+VhgMKlZ3PZ7MWIqY6wx5HTbx/EWjPkGB8Pe4cciVmggkMPX RU79r0FZl+GUs8AauS/ZgNSzA36SYAbkGw3x/ptO4h6vE0blvNSP3CXQaOm0RBj8kJtSO/ DskYqsmW1BiLKLllmsdTaADPmWRGDeNkjE8CytMccfHpGtULcDnzZXcMGXO2dQ== X-Migadu-Spam-Score: -4.74 X-Spam-Score: -4.74 X-Migadu-Queue-Id: 434F63E14B X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=mi9WJM4w; 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=gmail.com X-TUID: Sg5dhH/hUKHX Many thanks in advance for taking the time to read this! Issue: In an org agenda block (fed to org-agenda-custom-commands), the number 7 passed to org-agenda-span causes the resulting block to begin on the first day of the week, ignoring org-agenda-start-day. Expected Behaviour: org-agenda-start-day and org-agenda-span should be options with independent behaviours. Actual Behaviour: When org-agenda-span is set to 7, the given argument org-agenda-start-day is ignored. Steps to Reproduce: 1. Save the following to /any-path/test.el: #+begin_src elisp (defun my-generate-agenda-block (START SPAN) "Generate an agenda block for testing" `((org-agenda-start-day ,START) (org-agenda-span ,SPAN) (org-agenda-overriding-header (concat "\norg-agenda-start-day: " ,START "\norg-agenda-span: " (number-to-string ,SPAN))))) (setq org-agenda-custom-commands `(("t" "Test of Agenda Blocks" ( (agenda "" ,(my-generate-agenda-block "-2d" 7)) (agenda "" ,(my-generate-agenda-block "-2d" 5)) (agenda "" ,(my-generate-agenda-block "-5d" 7)) (agenda "" ,(my-generate-agenda-block "-5d" 5)) (agenda "" ,(my-generate-agenda-block "+1d" 7)) (agenda "" ,(my-generate-agenda-block "+1d" 5)))))) (defun my-org-agenda-test () (interactive) (org-agenda "a" "t")) #+end_src 2. Run =emacs -Q -l /any-path/test.el= at a terminal. 3. Within Emacs, run =M-x my-org-agenda-test=. Additional Notes: 1. The order of org-agenda-start-day and org-agenda-span is irrelevant. 2. The emacs manual does not say anything helpful for either variable. 3. I've only tested "+nd" and "-nd" syntax for org-agenda-start-day. 4. My ~init.el~ is irrelevent (bug present when run from =emacs -Q=). Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2022-01-24, modified by Debian Package: Org mode version 9.4.6 (9.4.6-g3ba46c @ ~/.emacs.d/straight/build/org/)