Commit | Line | Data |
---|---|---|
07d83abe 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 | ||
7 | @page | |
8 | @node Translation | |
9 | @section 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 | @subsection Emacs Lisp Support | |
20 | ||
21 | @deffn {Scheme Procedure} nil-car x | |
22 | @deffnx {C Function} scm_nil_car (x) | |
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 | ||
27 | @deffn {Scheme Procedure} nil-cdr x | |
28 | @deffnx {C Function} scm_nil_cdr (x) | |
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 | ||
33 | @deffn {Scheme Procedure} nil-cons x y | |
34 | @deffnx {C Function} scm_nil_cons (x, y) | |
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 | |
37 | a Lisp nil. | |
38 | @end deffn | |
39 | ||
40 | @deffn {Scheme Procedure} nil-eq x y | |
41 | Compare @var{x} and @var{y} and return Lisp's t if they are | |
42 | @code{eq?}, return Lisp's nil otherwise. | |
43 | @end deffn | |
44 | ||
45 | @deffn {Scheme Procedure} null x | |
46 | @deffnx {C Function} scm_null (x) | |
47 | Return Lisp's @code{t} if @var{x} is nil in the LISP sense, | |
48 | return Lisp's nil otherwise. | |
49 | @end deffn | |
50 | ||
51 | ||
52 | @c Local Variables: | |
53 | @c TeX-master: "guile.texi" | |
54 | @c End: |