From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Tue Jul 21 00:20:33 EDT 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 04c54f5f (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Mon, 20 Jul 2020 21:19:49 -0700 (PDT) Message-ID: To: sirjofri@sirjofri.de, 9front@9front.org Subject: Re: [9front] patch: calendar look ahead Date: Mon, 20 Jul 2020 21:19:48 -0700 From: ori@eigenstate.org In-Reply-To: <319D46C3FB4CBC39E29649E2C255F5C6@pizarro.uberspace.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: patented proven factory proxy > Hey 9front. > > finally I hope this mail arrives... > > The following patch changes calendar behaviour. > > Today is the first. If I call calendar with -p 5 it looks at the 1,2,6 > and misses my dates on 3-5. That doesn't really make sense and is not > how I understand the man page. > > This patch changes it's behavior to look at all dates between today > and today+5, so in the example above it looks at 1,2,6,5,4,3 (in that > order). > > (/sys/src/cmd/calendar.c) > > 74c74 > < if(ahead){ > --- >> while(ahead > 1){ > 78a79 >> ahead--; Since I derailed the thread with talk of syncing, I guess I should be the one to prod it: Did anyone have any opinions for or against this?