emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift selection using interactive spec


From: Juri Linkov
Subject: Re: Shift selection using interactive spec
Date: Mon, 31 Mar 2008 01:46:47 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>     Then the second arg to `interactive' could be just a lambda
>     with one argument with the value this function returns, e.g.
>
> I guess that is the best design option, for when you want to use
> a Lisp expression.  But the simple case should be a string -- perhaps
> a format string.

Then in case of using a format string my suggestion for using t is
not necessary, because it would be easy to specify this with just "%s":

   (defun command ()
     (interactive
       nil
       "%s")
     ...
     (let ((return-value ...))
       ...
       return-value))

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]