doc/misc.tex: Divide `Miscellaneous utilities' into subsections.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 29 Jul 2019 09:54:36 +0000 (10:54 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 3 Aug 2019 15:27:42 +0000 (16:27 +0100)
Also reorder some of the items to make things fit better.

doc/misc.tex

index dfba505..2d86406 100644 (file)
@@ -30,6 +30,9 @@
 
 These symbols are defined in the @|sod-utilities| package.
 
+
+\subsection{Macro utilities}
+
 \begin{describe}{mac}
     {with-gensyms (@{ @<var> @! (@<var> @[@<name>@]) @}^*)      \\ \ind
       @<declaration>^*                                          \\
@@ -51,6 +54,12 @@ These symbols are defined in the @|sod-utilities| package.
 \begin{describe}{cls}{loc}
 \end{describe}
 
+\begin{describe}{fun}{symbolicate \&rest @<symbols> @> @<symbol>}
+\end{describe}
+
+
+\subsection{Locatives}
+
 \begin{describe}{fun}{locp @<object> @> @<generalized-boolean>}
 \end{describe}
 
@@ -70,6 +79,9 @@ These symbols are defined in the @|sod-utilities| package.
       @<form>^*}
 \end{describe}
 
+
+\subsection{Anaphorics}
+
 \begin{describe}{sym}{it}
 \end{describe}
 
@@ -97,6 +109,9 @@ These symbols are defined in the @|sod-utilities| package.
 \begin{describe}{mac}{asetf @{ @<place> @<value> @}^*}
 \end{describe}
 
+
+\subsection{Metaobject protocol utilities}
+
 \begin{describe}{gf}{instance-initargs @<instance>}
 \end{describe}
 
@@ -113,6 +128,23 @@ These symbols are defined in the @|sod-utilities| package.
      \dhead{gf}{eql-specializer-object @<specializer> @> @<value>}}
 \end{describe*}
 
+
+\subsection{Other CLOS utilities}
+
+\begin{describe}{mac}
+    {default-slot (@<instance> @<slot> @[@<slot-names>@])       \\ \ind
+      @<form>^*}
+\end{describe}
+
+\begin{describe}{mac}
+    {define-on-demand-slot @<class> @<slot> (@<instance>)       \\ \ind
+      @[[ @<declaration>^* @! @<doc-string> @]]                 \\
+      @<form>^*}
+\end{describe}
+
+
+\subsection{Building lists}
+
 \begin{describe}{fun}{make-list-builder \&optional @<initial> @> @<builder>}
 \end{describe}
 
@@ -125,14 +157,8 @@ These symbols are defined in the @|sod-utilities| package.
 \begin{describe}{fun}{lbuild-list @<builder> @> @<list>}
 \end{describe}
 
-\begin{describe}{fun}
-    {mappend @<function> @<list> \&rest @<more-lists> @> @<result-list>}
-\end{describe}
 
-\begin{describe}{fun}
-    {distinguished-point-shortest-paths @<root> @<neighbours-func>
-      @> @<list>}
-\end{describe}
+\subsection{Merging lists}
 
 \begin{describe}{cls}{inconsistent-merge-error (error) \&key :candidates}
 \end{describe}
@@ -144,6 +170,18 @@ These symbols are defined in the @|sod-utilities| package.
     {merge-lists @<lists> \&key :pick (:test \#'eql) :present @> @<list>}
 \end{describe}
 
+
+\subsection{Other list utilities}
+
+\begin{describe}{fun}
+    {mappend @<function> @<list> \&rest @<more-lists> @> @<result-list>}
+\end{describe}
+
+\begin{describe}{fun}
+    {distinguished-point-shortest-paths @<root> @<neighbours-func>
+      @> @<list>}
+\end{describe}
+
 \begin{describe}{mac}
     {categorize (\=@<item-var> @<items>
                    @[[ :bind (@{ @<var> @!
@@ -162,10 +200,8 @@ These symbols are defined in the @|sod-utilities| package.
     {find-duplicates @<report> @<sequence> \&key :identity :test}
 \end{describe}
 
-\begin{describe}{fun}
-    {frob-identifier @<string> \&key :swap-case :swap-hyphen
-      @> @<frobbed-string>}
-\end{describe}
+
+\subsection{Position tracking}
 
 \begin{describe}{fun}
     {whitespace-char-p @<character> @> @<generalized-boolean>}
@@ -181,15 +217,8 @@ These symbols are defined in the @|sod-utilities| package.
       @> @<old-line> @<old-column>}
 \end{describe}
 
-\begin{describe}{fun}
-    {compose @<function> \&rest @<more-functions> @> @<function>}
-\end{describe}
-
-\begin{describe}{mac}{defvar @<name> @<documentation> @> @<name>}
-\end{describe}
 
-\begin{describe}{fun}{symbolicate \&rest @<symbols> @> @<symbol>}
-\end{describe}
+\subsection{Object printing}
 
 \begin{describe}{mac}
     {maybe-print-unreadable-object
@@ -203,18 +232,8 @@ These symbols are defined in the @|sod-utilities| package.
 \begin{describe}{fun}{print-ugly-stuff @<stream> @<func> @> @<value>^*}
 \end{describe}
 
-\begin{describe}{mac}
-    {dosequence (@<var> @<sequence>
-                 @[[ :start @<start> @! :end @<end> @!
-                     :indexvar @<var> @]])                      \\ \ind
-      @<declaration>^*                                          \\
-      @{ @<tag> @! @<statement> @}^*}
-\end{describe}
 
-\begin{describe}{mac}
-    {define-access-wrapper @<from> @<to>
-                           @[[ :read-only @<read-only-flag> @]]}
-\end{describe}
+\subsection{Condition utilities}
 
 \begin{describe}{cls}
     {simple-control-error (control-error simple-error)
@@ -232,15 +251,32 @@ These symbols are defined in the @|sod-utilities| package.
     {invoke-associated-restart @<restart> @<condition> \&rest @<arguments>}
 \end{describe}
 
+
+\subsection{Very miscellaneous utilities}
+
+\begin{describe}{fun}
+    {frob-identifier @<string> \&key :swap-case :swap-hyphen
+      @> @<frobbed-string>}
+\end{describe}
+
+\begin{describe}{fun}
+    {compose @<function> \&rest @<more-functions> @> @<function>}
+\end{describe}
+
+\begin{describe}{mac}{defvar-unbound @<name> @<documentation> @> @<name>}
+\end{describe}
+
 \begin{describe}{mac}
-    {default-slot (@<instance> @<slot> @[@<slot-names>@])       \\ \ind
-      @<form>^*}
+    {dosequence (@<var> @<sequence>
+                 @[[ :start @<start> @! :end @<end> @!
+                     :indexvar @<var> @]])                      \\ \ind
+      @<declaration>^*                                          \\
+      @{ @<tag> @! @<statement> @}^*}
 \end{describe}
 
 \begin{describe}{mac}
-    {define-on-demand-slot @<class> @<slot> (@<instance>)       \\ \ind
-      @[[ @<declaration>^* @! @<doc-string> @]]                 \\
-      @<form>^*}
+    {define-access-wrapper @<from> @<to>
+                           @[[ :read-only @<read-only-flag> @]]}
 \end{describe}
 
 %%%--------------------------------------------------------------------------