[Top][All Lists]

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

Re: interactive and &optional arguments

From: Thorsten Jolitz
Subject: Re: interactive and &optional arguments
Date: Tue, 26 Feb 2013 05:18:36 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Stefan Monnier <> writes:

>> sometimes I want a function with &optional args to be interactive, and I
>> wonder if there is a way to, as default action, interactively call the
>> function via M-x without args, except the user does something special -
>> e.g. C-u M-x - and only then ask the user for input?
> Just use a (interactive <spec>) where <spec> is not a string but some
> Elisp expression that computes the arguments you want to provide to
> the function.

I see, thanks, its even described in the manual, but somehow I couldn't
relate the dense paragraph to my problem without some external hint.


reply via email to

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