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: David Kastrup
Subject: Re: Shift selection using interactive spec
Date: Wed, 26 Mar 2008 14:26:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

address@hidden (Johan Bockgård) writes:

> David Kastrup <address@hidden> writes:
>
>> The interactive specifications are made part of _functions_ for a
>> reason, even though it makes it somewhat harder to extract them
>> explicitly (using interactive-form). It is inconsistent to attach
>> stuff like that to a property-list that is more or less incidentally
>> part of a symbol that might or might not be the accessor to a function
>> cell.
>
> Too late ;)
>
>> (call-interactively 'woozle)
>>
>> currently is equivalent to
>>
>> (call-interactively (symbol-function 'woozle))
>
> (defun foo (&optional x) (interactive) x)
>
> (fset 'bar 'foo)
> (put 'bar 'interactive-form '(interactive (list 1)))
>
> (call-interactively 'bar)
>   => 1
>
> (call-interactively (symbol-function 'bar))
>   => nil

If your point is that a single inconsistency should be sufficient excuse
to open the floodgates, that actually is a strong argument _against_
introducing _any_ inconsistency.  And it means that we should probably
get rid of that earlier inconsistency.

-- 
David Kastrup




reply via email to

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