[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help create function alias
From: |
Marc Mientki |
Subject: |
Re: help create function alias |
Date: |
Wed, 08 Dec 2010 15:28:59 -0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 |
Am 20.09.2010 12:43, schrieb Adam:
(defun id ()
"insert date"
(interactive "P")
(insert-date t))
There two errors:
1. You say (interactive "P") but not provide argument to id.
When you use "P", then you must write:
(defun if (arg) ...
or
(defun if (&optional arg) ...
But actualy you don't need "P" in your example. So you can write:
(defun id ()
"insert date"
(interactive)
(insert-date t))
2. Function insert-date is not defined, at least not in my emacs.
HTH
Marc
- help create function alias, Adam, 2010/12/09
- Re: help create function alias,
Marc Mientki <=
- Re: help create function alias, Adam, 2010/12/09
- Re: help create function alias, Adam, 2010/12/09
- Re: help create function alias, Pascal J. Bourguignon, 2010/12/08
- Re: help create function alias, Adam, 2010/12/09
- Re: help create function alias, Andreas Politz, 2010/12/08
- Re: help create function alias, Adam, 2010/12/09
- Re: help create function alias, Barry Margolin, 2010/12/08
- Re: help create function alias, Pascal J. Bourguignon, 2010/12/08
Re: help create function alias, Stefan Monnier, 2010/12/08