From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Re: function arguments
Date: Fri, 25 Oct 2013 06:50:25 +0200 [thread overview]
Message-ID: <87mwlykl7y.fsf@web.de> (raw)
In-Reply-To: CAJ+Teof_J7AOxnh-dkJ3=6WBLDciKHWHfunboB1_WbFj4__v4A@mail.gmail.com
Rustom Mody <rustompmody@gmail.com> 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.
next prev parent reply other threads:[~2013-10-25 4:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 4:07 function arguments Rustom Mody
2013-10-25 4:50 ` Michael Heerdegen [this message]
2013-10-25 5:18 ` Rustom Mody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwlykl7y.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.