Hi Nicolas,

On 2019-10-16 at 12:38 +02, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote...
> Note that what you want, i.e., to distinguish behaviour depending on
> the location of the call stack is cheesy, at best. Think about macros,
> user-defined functions, etc.

Yes, it felt a bit hackish. But I'm new to this level of Org coding.

> The Emacs' answer to this is usually to check if call to a function is
> interactive, or not.

Can you provide a more obvious hint? :) I've read the documentation on 
called-interactively-p but have not had success yet with that function. The 
bottom of that doc string suggests this is not an appropriate use for it.

I've read the manual part on "Distinguish Interactive Calls"[1] but working 
through those examples I can't get deeper called functions to know if the 
nth-parent was called interactively or not.

Would you solve this issue somewhere completely different? Like an advice 
around the org-ctrl-c-ctrl-c function or something?

Thanks,

  -k.

[1] 
https://www.gnu.org/software/emacs/manual/html_node/elisp/Distinguish-Interactive.html

Reply via email to