[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to bind a function with argument?
From: |
LanX |
Subject: |
Re: How to bind a function with argument? |
Date: |
Fri, 17 Dec 2010 18:00:35 -0800 (PST) |
User-agent: |
G2/1.0 |
> Read the documentation of org-insert-link. Follow the link to the
> source. See that it has a (interactive "P") declaration. Read the
> documentation of interactive. See that "P" means prefix arg in raw
> form.
>
> If you don't know it, search in emacs lisp documentation, and you'll
> find that the prefix arg in raw form, for a single C-u, is passed as
> (4), not 4, and for C-u C-u, it's (16).
or just do M-x repeat-complex-command to see the lisp code of your
last command. :)