Subject: misc/6290: I'm clueless! Ignore my last PR... This one has the correct patch.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@acheron.middleboro.ma.us>
List: netbsd-bugs
Date: 10/13/1998 22:26:09
>Number:         6290
>Category:       misc
>Synopsis:       optional calendar mods - the right patch
>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:

NOTE: I apologize for sending two entries. I accidentally included the
wrong patch in my last entry... This one contains the correct patch.



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.patch.gz
M'XL(".\()#8"`V-A;&5N9&%R+G!A=&-H`.59;5/;2!+^K/R*CG<3+%L&RX`Q
M=D@V"7!'%21;2ZA*CE"4D$:V*K*DDF2,+\5_OZ=G1B\V)I7=[.U>U:42T,ST
M]/3KT].35JM%KA.*R'/237<S3H.Q\6$FZ+V;D[U-W;VA;0^[7;+W]P=/.IU.
MC;A.U[.'._O#7D_1M9;_\)AV^M:N37+(;'BX3?CJ/"&ZOO[M[?G)8;/Q\SN1
MOSD_'-9.L6[)WK3W).,MN[ME]ZC7'>Y"J#[-,R=R)^+?='27T,\-<P1>/V%?
MX--6BZ(XIS"(<FIM8?Y)FWX*(C><>8)>3!UW$D1B*PRF09YM3EYBE?>6!-DB
MVTJ<U)GRVNI"'DS%NODL=W*>7Z?^WK8UZ"GUL<T3/HZGX]>GYT?4+:5F,8EF
M41:,(^%1-HE3J!#'7YR)<#PZ(-NBN1!?0(Q!C]5U)TY*+3]RI@)3C<)N#8M:
MGI.++$\Q_>[B])2),9K!7XF397./6LE\].0IL86\V`G#D3I>W.4BC33CZ^LD
MC<?,7:ZRY_9VK<&@\-RW-&F7JV]?GUZ_N3@^/C_YUQ$U>]V=`;7)-I71_S9U
MJ1S-'2A\0-V1@;`YC&&")`S<(*>&YRPR2)@'88.8*HC&KSB>BIT+X:3K=_)*
M1AD"1+QJZ!#\MG'7A<U@U]KO55FS;ULVDE$;_S8./(/<,,X$#($L^K79/#XY
M/:*6*5,!(AHT%CF44(OJV.5%/Q"A5U^VM'3XD,G#Y&U%_@^1O_?]3.3+]%A3
M/)5`8#J=>EY3FS^?4BM/"JY>MG3Z-([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