From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Re: python sessions Date: Wed, 20 Mar 2013 21:22:20 -0400 Message-ID: References: <51496061.20706@easy-emacs.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=e89a8f646a198866d004d8652b1e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIUD3-0000DG-N9 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 21:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIUCz-0000BN-NF for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 21:22:25 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:41084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIUCz-0000BI-GP for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 21:22:21 -0400 Received: by mail-ob0-f177.google.com with SMTP id eh20so2290850obb.8 for ; Wed, 20 Mar 2013 18:22:20 -0700 (PDT) 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: Orgmode Mailing List --e89a8f646a198866d004d8652b1e Content-Type: multipart/alternative; boundary=e89a8f646a198866cd04d8652b1c --e89a8f646a198866cd04d8652b1c Content-Type: text/plain; charset=ISO-8859-1 I've attached a patch which works for me, at least in simple tests. It should set the buffer name more correctly in session mode. I also added a new defcustom for the python command to use for session mode specifically; that is required for Windows, and I don't think it hurts on other OSes. On Wed, Mar 20, 2013 at 8:20 PM, Gary Oberbrunner wrote: > > On Wed, Mar 20, 2013 at 1:00 PM, John Hendy wrote: > >> Some other things I noticed when modifying your custom config (just to >> clarify): >> - Org-mode git repo is located at "/emacs/site-lisp/org-mode/lisp"? >> - You shouldn't need (perhaps even as strongly as shouldn't use) >> =(require 'org)= >> > > Ah, I see -- once I add the proper dir, the proper version of org-mode > will get autoloaded from there (even with emacs -Q). > > But it wouldn't actually hurt, would it? > > -- > Gary > -- Gary --e89a8f646a198866cd04d8652b1c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've attached a patch which works for me, at least in = simple tests. =A0It should set the buffer name more correctly in session mo= de. =A0I also added a new defcustom for the python command to use for sessi= on mode specifically; that is required for Windows, and I don't think i= t hurts on other OSes.


On Wed, Mar 2= 0, 2013 at 8:20 PM, Gary Oberbrunner <garyo@oberbrunner.com> wrote:
=

On Wed, Mar 20, 2013 at 1:= 00 PM, John Hendy <jw.hendy@gmail.com> wrote:
Some other things I noticed when modify= ing your custom config (just to clarify):
- Org-mode git repo is located at "/emacs/site-lisp/org-mode/lisp"= ;?
- You shouldn't need (perhaps even as strongly as shouldn't use) =3D(require 'org)=3D

Ah,= I see -- once I add the proper dir, the proper version of org-mode will ge= t autoloaded from there (even with emacs -Q).

But it wouldn't actually hurt, wou= ld it?

--
Gary



--
Gary
--e89a8f646a198866cd04d8652b1c-- --e89a8f646a198866d004d8652b1e Content-Type: application/octet-stream; name="0001-ob-python-fixes-for-session-mode-buffer-name-and-new.patch" Content-Disposition: attachment; filename="0001-ob-python-fixes-for-session-mode-buffer-name-and-new.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hej8ie730 RnJvbSBkNjQ5NmM4YWY4ZmM0YzI2NGU5ZWM4N2FjMTNkMjg1ZDE0NTI0MWUyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHYXJ5IE9iZXJicnVubmVyIDxnYXJ5b0BnZW5hcnRzLmNvbT4K RGF0ZTogV2VkLCAyMCBNYXIgMjAxMyAyMToxMzozMyAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdIG9i LXB5dGhvbjogZml4ZXMgZm9yIHNlc3Npb24gbW9k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