From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Code, Sessions, and org-edit-special Date: Sun, 23 Nov 2014 14:50:41 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsdBN-0003DL-IR for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 14:51:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsdBD-00050i-Un for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 14:50:53 -0500 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:40523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsdBD-00050e-Pv for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 14:50:43 -0500 Received: by mail-qg0-f54.google.com with SMTP id q107so5993707qgd.27 for ; Sun, 23 Nov 2014 11:50:43 -0800 (PST) Received: from gorgonzola (c-71-58-77-153.hsd1.pa.comcast.net. [71.58.77.153]) by mx.google.com with ESMTPSA id v16sm7438294qaw.30.2014.11.23.11.50.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Nov 2014 11:50:42 -0800 (PST) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * 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.