diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-10-04 10:48:16 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-10-04 10:48:16 -0700 |
commit | 376fbf858f363f6645b3963b24bd7d3cabada262 (patch) | |
tree | 25c266dd99a6cc02d250cf3013a4cf2377bd86d0 /txr.1 | |
parent | 804dd44d22c9dbc8b007b559ee1d31bb27451090 (diff) | |
download | txr-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.1 | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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 |