Subject: misc/6289: calendar mods
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@acheron.middleboro.ma.us>
List: netbsd-bugs
Date: 10/13/1998 22:20:28
>Number: 6289
>Category: misc
>Synopsis: optional calendar enhancement
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 13 19:35:01 1998
>Last-Modified:
>Originator: Mason Loring Bliss
>Organization:
Mason Loring Bliss..mason@acheron.middleboro.ma.us..acheron.dyn.ml.org/mason
"In the drowsy dark cave of the mind dreams build their nest with fragments
dropped from day's caravan."--Rabindranath Tagore..awake ? sleep : dream;
>Release: 1998.10.11
>Environment:
System: NetBSD acheron.middleboro.ma.us 1.3H NetBSD 1.3H (MLB) #6: Sun Oct 11 10:43:41 EDT 1998 root@acheron.middleboro.ma.us:/usr/src/sys/arch/i386/compile/MLB i386
>Description:
Hi, all.
Enclosed is a gzipped copy of my calendar(1) mods. I didn't understand why
they were essentially ignored until I realised that I had changed the default
behaviour of calendar(1) without allowing for any way to get back to that
default behaviour.
So, here's another swing at it, this time with the default behaviour being
precisely what it is now, with my mods accessible via command-line options.
To wit, with my patch, there are two behaviours available, each of which may
be used seperately, or both together.
The '-r' flag turns on an extended warning checker, which looks for '+x' in
each line of the calendar files, where x is a (potentially multi-digit)
integer. This allows individual entries to have "look-ahead" dates exceeding
the default, which can still be set seperately. This output looks like this:
In 1 day: 10/14 Brian Joseph Andrew Leonard's Birthday
where the entry looks like this:
10/14 +14 Brian Joseph Andrew Leonard's Birthday
The next flag is '-y', which turns on a little year calculator, so that you
can have things like:
10/14 Brian Joseph Andrew Leonard's Birthday (1973: 25 years ago)
from the following entry:
10/14 +14@1973 Brian Joseph Andrew Leonard's Birthday
The point is that you might want to have a fourteen day warning for a friend's
birthday, but you might be annoyed that the only available way to get that
fourteen day warning also tells you that William the Conquerer won the Battle
of Hastings for those same fourteen days. Granularity is good.
I'd like to update the man page to describe this behaviour, but I'm not quite
sure how... Pointers will be welcome. (And, FWIW, I'd be slavishly grateful
if this made it into NetBSD. It's useful, small, clean, and it only shows up
if you ask for it.)
>How-To-Repeat:
>Fix:
begin 600 calendar.diff.gz
M'XL("!/1HC4"`V-A;&5N9&%R+F1I9F8`Y5AM3]M*%O[L_HK3]+;8B1/L!,@+
MI7=I"[NL:'MU::7>I0@9>YR,\)MLAQ!5_/<]Y\S8<4)8]6ZEW96V*I"9.7->
MGWEF3MKM-OA>))+`RWM^+XT"X_-L#L=9#M`'9SCINY/!&-SQ>/2LV^TV9(T+
MKX2_SQ.``W"=R=[>9.`JN?;Z/QK#WH&][P(/20T-!X"?NL\`KJ]_?W=Q]MYL
M_?)1E&\OWD\:5NP[<'ON@!7O.GN[C@M]9[+O3-PAW$9")K=P<I_!+RWK$#6]
MP%TRA-TV)&D)D4Q*:._B_+,.O)")'\T#`:]CSY_)1.Q&,I9ET9N]P57:6PL4
MRV(W\W(OIK7-A5+&8MM\47HES6\+?CBPAZ-5\,-]>]2O@G\1B!"]@=/C\XL3
M<.H@M-=Z]=WQ^?7;+Z>G%V?_.`&S[^R-H`.NI3R?)X6<)B*`8I;F&'::WGHS
MX05P!*X-"R%N42,.^I0B?^;ET`X3+Q8XU:HRW;*A'7BE*,H<IS]^.3\G81S-
M_1(RKR@6`;2SQ>'6^$;[]KB_BF\TML>C*KZ[5`8&^%%:"+2%M?[--$_/SD^@
M;7')L$8&3$49>$NUJ!Q<7PREB(+FLJWCP`]<9!+O*/&_BO)3&!:B7)?'-:53
M.81*XS@(3!UA&4.[S"JM0;%F/4Z3<K;I7$<K0G-_")S<[KLLDG3QQ%KLR40M
MX;`.2`E0AHQVFHFD3AJ9H\5M!7#W]VSW8$^50(5(I?8BT\*_W_''H#1E.?Z6
MR90L&,I>QI]504(U($E_=OCLN9:YF8>7%>*N2(*%0C#-,$.L:"=-RX(CA1RR
M:1BY*.=Y<LB(<`\<VQWVFYA8\Z^CK*9<M^O"NQ.48$/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