Commit | Line | Data |
---|---|---|
2da09c3f MV |
1 | @c -*-texinfo-*- |
2 | @c This is part of the GNU Guile Reference Manual. | |
3 | @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004 | |
4 | @c Free Software Foundation, Inc. | |
5 | @c See the file guile.texi for copying conditions. | |
6 | ||
a0e07ba4 NJ |
7 | @page |
8 | @node Translation | |
9 | @chapter Support for Translating Other Languages | |
10 | ||
11 | [Describe translation framework.] | |
12 | ||
13 | @menu | |
14 | * Emacs Lisp Support:: Helper primitives for Emacs Lisp. | |
15 | @end menu | |
16 | ||
17 | ||
18 | @node Emacs Lisp Support | |
19 | @section Emacs Lisp Support | |
20 | ||
8f85c0c6 NJ |
21 | @deffn {Scheme Procedure} nil-car x |
22 | @deffnx {C Function} scm_nil_car (x) | |
a0e07ba4 NJ |
23 | Return the car of @var{x}, but convert it to LISP nil if it |
24 | is Scheme's end-of-list. | |
25 | @end deffn | |
26 | ||
8f85c0c6 NJ |
27 | @deffn {Scheme Procedure} nil-cdr x |
28 | @deffnx {C Function} scm_nil_cdr (x) | |
a0e07ba4 NJ |
29 | Return the cdr of @var{x}, but convert it to LISP nil if it |
30 | is Scheme's end-of-list. | |
31 | @end deffn | |
32 | ||
8f85c0c6 NJ |
33 | @deffn {Scheme Procedure} nil-cons x y |
34 | @deffnx {C Function} scm_nil_cons (x, y) | |
a0e07ba4 NJ |
35 | Create a new cons cell with @var{x} as the car and @var{y} as |
36 | the cdr, but convert @var{y} to Scheme's end-of-list if it is | |
413d32b6 | 37 | a Lisp nil. |
a0e07ba4 NJ |
38 | @end deffn |
39 | ||
8f85c0c6 | 40 | @deffn {Scheme Procedure} nil-eq x y |
85a9b4ed TTN |
41 | Compare @var{x} and @var{y} and return Lisp's t if they are |
42 | @code{eq?}, return Lisp's nil otherwise. | |
a0e07ba4 NJ |
43 | @end deffn |
44 | ||
8f85c0c6 NJ |
45 | @deffn {Scheme Procedure} null x |
46 | @deffnx {C Function} scm_null (x) | |
85a9b4ed TTN |
47 | Return Lisp's @code{t} if @var{x} is nil in the LISP sense, |
48 | return Lisp's nil otherwise. | |
a0e07ba4 NJ |
49 | @end deffn |
50 | ||
51 | ||
52 | @c Local Variables: | |
53 | @c TeX-master: "guile.texi" | |
54 | @c End: |