From e824f2826911dc90e022c522b8ad6531447c5219 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Fri, 17 May 2013 17:49:08 +0200
Subject: document alternate behavior of ``new_user_whatsit()``

---
 luatexbase-attr.dtx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'luatexbase-attr.dtx')

diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index f10e2de..638cd31 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -522,6 +522,11 @@ luatexbase.new_user_whatsit_id = new_user_whatsit_id
 %    creates the corresponding whatsit node of subtype “user-defined”.
 %    We return a nullary function that delivers copies of the whatsit.
 %
+%    Alternatively, the first argument can be a whatsit node that
+%    will then be used as prototype. Note that in this case a
+%    \emph{copy} of the prototype will be stored in the closure,
+%    eliminating side-effects.
+%
 %    \begin{macrocode}
 --- (string | node_t) -> string -> ((unit -> node_t) * int)
 local new_user_whatsit = function (req, package)
-- 
cgit v1.2.3

