[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17446: 24.4.50; What is the situation around `called-interactively-p
From: |
Drew Adams |
Subject: |
bug#17446: 24.4.50; What is the situation around `called-interactively-p'? |
Date: |
Fri, 9 May 2014 07:28:13 -0700 (PDT) |
> > So what to do actually to fix such issues ?
>
> Use an additional argument (you can call it `interactive'),
> provided by the `interactive' spec?
>
> > Do you plan to make something better around the terrible
> > `called-interactively-p' ?
>
> We have that already: the extra arg, as suggested in C-h
> f called-interactively-p.
Sure, we already do that. But that doesn't help when you define
a "command similar to `repeat-complex-command'", as Thierry says,
and as I have done too. Such a command has little control over
the definition of the command that it invokes.
> > That's ok, but what to do when nothing else is possible ?
>
> AFAIK something else is always possible and preferable. But I don't
> know enough about your problem to know that it's indeed also the case in
> your situation.
I thought he described it pretty well. Write a command that is
similar to `repeat-complex-command'. Now make it work-around Emacs
bug #14136.
You end up doing for your new command something like what Emacs
does for `repeat-complex-command'. And AFAICT, that works only
when the helper function (similar to vanilla Emacs function
`repeat-complex-command--called-interactively-skip') is
byte-compiled.
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Thierry Volpiatto, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Drew Adams, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?,
Drew Adams <=
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Drew Adams, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Michael Heerdegen, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Thierry Volpiatto, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Drew Adams, 2014/05/09
- bug#17446: 24.4.50; What is the situation around `called-interactively-p'?, Stefan Monnier, 2014/05/09