summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-04-14 19:57:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-04-14 19:57:38 -0700
commit424696dc09a91939c8c5fb66975be0f737fac9aa (patch)
tree4ca0b46aaecb188d9ffdcb0a70e434e011d5cd0c /txr.1
parentd790a3cca5309d86d752bb99a1eeaf3b6ee9c71b (diff)
downloadtxr-424696dc09a91939c8c5fb66975be0f737fac9aa.tar.gz
txr-424696dc09a91939c8c5fb66975be0f737fac9aa.tar.bz2
txr-424696dc09a91939c8c5fb66975be0f737fac9aa.zip
Fix proper-listp to proper-list-p.
This is really a gratuitous incompatibility with Common Lisp and other dialects. Let's fix it internally also, but keep the proper-listp function binding for backwards compatibility. * eval.c (dot_to_apply, me_op): Update proper_listp call to proper_list_p. (eval_init): Register proper-list-p to the same C function as proper-listp, and that C function is now called proper_list_p. * lib.c (proper_listp): Renamed to proper_list_p. * lib.h (proper_listp): Declaration updated. * parser.y (define_transform): Update proper_listp call. * txr.1: Replace all occurrences of proper-listp with proper-list-p. Add note explaining the rename situation.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.123
1 files changed, 17 insertions, 6 deletions
diff --git a/txr.1 b/txr.1
index a211b1e2..b833f54f 100644
--- a/txr.1
+++ b/txr.1
@@ -15370,16 +15370,16 @@ For a description of the arguments, semantics and return value, refer to the
.code replace
function.
-.coNP Functions @ listp and @ proper-listp
+.coNP Functions @ listp and @ proper-list-p
.synb
.mets (listp << value )
-.mets (proper-listp << value )
+.mets (proper-list-p << value )
.syne
.desc
The
.code listp
and
-.code proper-listp
+.code proper-list-p
functions test, respectively, whether
.meta value
is a list, or a proper list, and return
@@ -15400,7 +15400,7 @@ The empty list
is a list, and a cons cell is a list.
The
-.code proper-listp
+.code proper-list-p
function returns
.code t
only for proper lists. A proper list is
@@ -15409,10 +15409,21 @@ either
or a cons whose
.code cdr
is a proper list.
-.code proper-listp
+.code proper-list-p
traverses the
list, and its execution will not terminate if the list is circular.
+Dialect Note: in \*(TX 137 and older,
+.code proper-list-p
+is called
+.codn proper-listp .
+The name was changed for adherence to conventions and compatibility with other
+Lisp dialects, like Common Lisp. However, the function continues to be
+available under the old name. Code that must run on \*(TX 137 and older
+installations should use
+.codn proper-listp ,
+but its use going forward is deprecated.
+
.coNP Function @ length-list
.synb
.mets (length-list << list )
@@ -40318,7 +40329,7 @@ substring matches. For instance
is a possible completion for
.codn list ,
as is
-.codn proper-listp .
+.codn proper-list-p .
If no completions are found, then the BEL character is sent to the terminal
to generate a beep or a visual alert indication. The listener returns to