summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-10-04 10:48:16 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-10-04 10:48:16 -0700
commit376fbf858f363f6645b3963b24bd7d3cabada262 (patch)
tree25c266dd99a6cc02d250cf3013a4cf2377bd86d0 /txr.1
parent804dd44d22c9dbc8b007b559ee1d31bb27451090 (diff)
downloadtxr-376fbf858f363f6645b3963b24bd7d3cabada262.tar.gz
txr-376fbf858f363f6645b3963b24bd7d3cabada262.tar.bz2
txr-376fbf858f363f6645b3963b24bd7d3cabada262.zip
New: quip function for random humor.
Add this to your .txr_profile startup file. * lisplib.c (quips_instantiate, quips_set_entries): New static functions. (lisplib_init): Register autoloading of quip. * share/txr/stdlib/quips.tl: New file. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.131
1 files changed, 31 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 752ef03d..8991fed4 100644
--- a/txr.1
+++ b/txr.1
@@ -75097,6 +75097,37 @@ The object
.code 4
is self-evaluating, and so the greedy evaluation process stops.
+.SS* Listener-Related Miscellanea
+
+.coNP Function @ quip
+.synb
+.mets (quip)
+.syne
+.desc
+The
+.code quip
+function returns a randomly selected string containing a humorous quip,
+quote or witticism. The following code may be added to
+.code .txr_profile
+to produce the random quip on startup:
+
+.verb
+ (put-line (quip))
+.brev
+
+The
+.code quip
+function was introduced in \*(TX 244. If the
+.code .txr_profile
+is used with installations of older \*(TX versions, it is recommended to use
+the following, to avoid calling the undefined function, as well as to
+prevent a warning:
+
+.verb
+ (if (fboundp 'quip)
+ (put-line (quip))
+ (defun quip ()))
+.brev
.SH* SETUID/SETGID OPERATION