From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms5.migadu.com with LMTPS
	id 4G3HJs4jwWMaPwEAbAwnHQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 13 Jan 2023 10:26:38 +0100
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id aEMBJs4jwWPLFAEAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 13 Jan 2023 10:26: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 9960928AB
	for <larch@yhetil.org>; Fri, 13 Jan 2023 10:26:37 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1pGGJk-0007rM-7a; Fri, 13 Jan 2023 04:25:44 -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 <yantar92@posteo.net>)
 id 1pGGJS-0007p1-M7
 for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 04:25:30 -0500
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1pGGJP-0004dj-AN
 for emacs-orgmode@gnu.org; Fri, 13 Jan 2023 04:25:25 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 20A99240286
 for <emacs-orgmode@gnu.org>; Fri, 13 Jan 2023 10:25:20 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1673601921; bh=KlgRnhO0qhsV1p3MUyQhxam0wCgKE0WntkpnP6Xd/NU=;
 h=From:To:Cc:Subject:Date:From;
 b=Bv8wrhuW+0fYcrn9fUjHRoxxuwi7CqLK+NUi840ZtFXGEVANYFw+GRMzpL479Rcet
 E2NI1xxbUEKkZYryTuRxXmAzPY4W5IwFHatBK2LWhCknZLbg+o+nKtmrb6tyiMWRZb
 +oKK9lyy/tHlU/kwAoLaalv/dl/FjsQuK3SwbCIOQkkfvBXqxvBoHSxJqnwFmEW9k3
 RBTaZd0pi0g5zRMZXLSyCPe6ukU2HXPzi810gSl5oi7u1cChSLRKz+hgcTwAB1sFUO
 5EBEOyVvUt7S7MBPlXM7HEDuqET3uPNNM38JCouLKZN7Jl/ogt5NBalg8Gzjw9ZkSS
 jYksx3LDtEjhg==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4NtbcH2jwHz6tmJ;
 Fri, 13 Jan 2023 10:25:19 +0100 (CET)
From: Ihor Radchenko <yantar92@posteo.net>
To: Eppo Math <eppolito.math@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] org-agenda-span treats 7 differently [9.4.6
 (9.4.6-g3ba46c @ ~/.emacs.d/straight/build/org/)]
In-Reply-To: <62a2389f-cf1f-9caa-7266-015f3e05d734@gmail.com>
References: <62a2389f-cf1f-9caa-7266-015f3e05d734@gmail.com>
Date: Fri, 13 Jan 2023 09:25:50 +0000
Message-ID: <878ri67plt.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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=1673601998; a=rsa-sha256; cv=none;
	b=rdmPE/H0bGtbTUt7J+TCDPdCJYQdDKZd10He/5YYtEHxgx2uRdOx/x7H/8hYtnFxGLxOHR
	rwLJG4v1HQKbdYq0ArSy7rFUO3vnzxiQJi7i3+acuarWnHpM+YC2U/KBf5EHbbBeju3VTz
	uQEZ1bp3IzjSEc6T51aoJf/5HgWQytoMJBCXStKpOv+PcnubwtvC/3t6dPyQzS27HpxbfM
	XXiSR1a2Zf/hPhPGu/el02ypBtVJVpugFa76P5HB+Qwoj9Vv6p/P1Jf/6zXRQVth3kG8Ky
	T7XtKedEbwLzxptzUkE1T8Yfd9Z7WsDMnNJ01i7i0wEKQ7fz1/5SqnIM1dDzng==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Bv8wrhuW;
	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=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1673601998;
	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=njEFHvORyk/hf6mWPpJcqGyv7VeUKR/PXmsLcm1MlDc=;
	b=V5IdRwxZ+YUVwbMh3NrOqpJZQwJSk3TAvm63UMbz80WB24CJRLgR/WVbrOdDHtRYBF6PLN
	oJMY68LZDQx8ijj3ZHXcRuaJk7kzMun5bG8NjHBlf827srMnpLomKkqHcBSbPrNo8svwnA
	Xu8oEsUythoPOQA/JBFB1d8eDwceOGQOcO9WTIUUIuI3kjE8+O4anloy7jCNdzM2e1hXND
	/3FBE8jveUeI6BzdZWMUgn/Y7cUWmw75ce48tPPdPCel8FZcdhJxpXR3iXtN2wcZ4HSDzr
	0g6pWDOBgy14yCC13KqWVJjAfiCQaQjBpaP9QDldGOtGTy8saZYPI1sgBG3H+w==
X-Migadu-Spam-Score: -4.55
X-Spam-Score: -4.55
X-Migadu-Queue-Id: 9960928AB
X-Migadu-Scanner: scn1.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=Bv8wrhuW;
	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=posteo.net
X-TUID: PI46f96enZnH

Eppo Math <eppolito.math@gmail.com> writes:

> 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.

This is because of `org-agenda-start-on-weekday' defaulting to 1.
You can bind it to nil in your custom agenda view.

I think we can update the docstrings for `org-agenda-start-day' and
`org-agenda-start-on-weekday' explaining that the latter takes
precedence when agenda span is a week or more.

Will it be enough for you?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>