Merge branch 'master' into wip-manual-2
[bpt/guile.git] / doc / ref / api-translation.texi
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 @node Translation
8 @section Support for Translating Other Languages
9
10 [Describe translation framework.]
11
12 @menu
13 * Emacs Lisp Support:: Helper primitives for Emacs Lisp.
14 @end menu
15
16
17 @node Emacs Lisp Support
18 @subsection Emacs Lisp Support
19
20 @deffn {Scheme Procedure} nil-car x
21 @deffnx {C Function} scm_nil_car (x)
22 Return the car of @var{x}, but convert it to LISP nil if it
23 is Scheme's end-of-list.
24 @end deffn
25
26 @deffn {Scheme Procedure} nil-cdr x
27 @deffnx {C Function} scm_nil_cdr (x)
28 Return the cdr of @var{x}, but convert it to LISP nil if it
29 is Scheme's end-of-list.
30 @end deffn
31
32 @deffn {Scheme Procedure} nil-cons x y
33 @deffnx {C Function} scm_nil_cons (x, y)
34 Create a new cons cell with @var{x} as the car and @var{y} as
35 the cdr, but convert @var{y} to Scheme's end-of-list if it is
36 a Lisp nil.
37 @end deffn
38
39 @deffn {Scheme Procedure} nil-eq x y
40 Compare @var{x} and @var{y} and return Lisp's t if they are
41 @code{eq?}, return Lisp's nil otherwise.
42 @end deffn
43
44 @deffn {Scheme Procedure} null x
45 @deffnx {C Function} scm_null (x)
46 Return Lisp's @code{t} if @var{x} is nil in the LISP sense,
47 return Lisp's nil otherwise.
48 @end deffn
49
50
51 @c Local Variables:
52 @c TeX-master: "guile.texi"
53 @c End: