[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function arguments
From: |
Michael Heerdegen |
Subject: |
Re: function arguments |
Date: |
Fri, 25 Oct 2013 06:50:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Rustom Mody <address@hidden> writes:
> The function make-translation-table shows its help like so:
>
> -----------------------
> make-translation-table is a compiled Lisp function in `mule.el'.
>
> (make-translation-table &rest ARGS)
>
> Make a translation table from arguments.
> <etc etc>
> ----------------
>
>
> However Ive to call it like so
>
> (defvar apl-translation-table
> (make-translation-table '((?a . ?α) (?b . ?β) (?c . ?γ) (?d . ?δ)
> (?e . ?ε))))
>
> and not
>
> (make-translation-table (?a . ?α) (?b . ?β) (?c . ?γ) (?d . ?δ) (?e . ?ε)))
>
>
> Am I missing something basic??
>From the doc:
,----------------------------------------------------------------------
| Each argument is a list of elements of the form (FROM . TO), where FROM
| is a character to be translated to TO.
`----------------------------------------------------------------------
Your first example is valid (with one such argument given), but not
your second (because your arguments are not _lists_ of elements of the
form (FROM . TO)). So, the doc seems to be correct, but you must not
get confused by the list of lists of blah structure ;-)
Regards,
Michael.