[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Code, Sessions, and org-edit-special
From: |
Ken Mankoff |
Subject: |
Re: [O] Code, Sessions, and org-edit-special |
Date: |
Sun, 23 Nov 2014 14:50:41 -0500 |
* On 2014-11-22 at 19:17, Ken Mankoff wrote:
> Hi List,
>
> A simpler phrasing of my previous question.
>
> How do I find out if an Org function, `org-ctrl-c-ctrl-c`, was called
> somewhere up the stack. I'm trying to modify a function
> "python-shell-get-process-name", but I don't want it to be modified
> when somewhere, possibly far upstream, Org is happening.
(equal this-command 'org-ctrl-c-ctrl-c)
Tells me if a function is in a call stack initiated by C-c C-c from Org.
I now have Org behaving as it always has with un-named sessions or named
sessions. Importantly, something Org was lacking, I can edit a file via
C-' (org-edit-special), and when I execute the code from there, which is
not part of Org, I can send it to the named session, rather than to the
standard executable as before.
If anyone wants this feature for Python let me know and I can share the
code.
-k.