[Top][All Lists]
[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
- Re: Shift selection using interactive spec, (continued)
- Re: Shift selection using interactive spec, Kim F. Storm, 2008/03/18
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/18
- Re: Shift selection using interactive spec, M Jared Finder, 2008/03/19
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Juri Linkov, 2008/03/26
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/26
- Re: Shift selection using interactive spec, Juri Linkov, 2008/03/26
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/26
- Re: Shift selection using interactive spec, Johan Bockgård, 2008/03/26
- Re: Shift selection using interactive spec,
David Kastrup <=
- Re: Shift selection using interactive spec, Stefan Monnier, 2008/03/26
- Re: Shift selection using interactive spec, Juri Linkov, 2008/03/26
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/26
- Re: Shift selection using interactive spec, Richard Stallman, 2008/03/26
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/26
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/27
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/27
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/27
- Re: Shift selection using interactive spec, Lennart Borgman (gmail), 2008/03/27
- Re: Shift selection using interactive spec, David Kastrup, 2008/03/27