In general a patch file is of the form
cd the.dir
diff -Naur file.pamphlet file.pamphlet.new >the.dir.file.pamphlet.patch
send the patch to the Axiom mailing list
<axiom-developer@nongngu.org> or
Tim Daly <daly@axiom-developer.org>
this has several features:
* it tells me where the patch is being applied
* the Naur options give me context
* I can see the impact of a change to multiple files
I read the patches before applying them so be sure to document the
reasons for the change in the pamphlet file. It may seem trivial
but remember that I didn't do the initial analysis so I, and others,
will have to understand after the fact.
In most cases in a pamphlet file if you're changing a few lines
of code or a whole function it should be documented thus:
...
(defun foo ()
(list
"this is ok code"
"this is broken code"
"this is also broken"
"this is ok"
)
)
turns into
\subsection{foo list fix}
This code used to read:
\begin{verbatim}
"this is broken code"
"this is also broken"
\end{verbatim}
but clearly the elements of the list are wrong. We are going to
print this list for the user so we don't want them to know anything
is broken. Thus we have wonderful new code that will inspire confidence.
This list is printed with the [[printlist]] function.
<<foo list fix>>=
"this is great code"
"this inspires confidence"
@
...
(defun foo ()
(list
"this is ok code"
<<foo list fix>>
"this is ok"
)
)
and, yes, I do know that this is tedious.
In general, it is also useful to update the pamphlet files with
documentation-only changes as you understand what a block of code
is intended to do. Most of this information has been lost to history
and the world can leverage your efforts at understanding if you take
the time to document it. In many ways this is as important as fixing
the code.