From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Subject: Re: [PATCH] session with python-mode.el complains of void py-toggle-shells Date: Fri, 22 Feb 2013 09:25:50 +0100 Message-ID: <51272B8E.9040304@easy-emacs.de> References: <87ham8y5rw.fsf@gmail.com> <3314.1358914289@alphaville> <87fw1sxe15.fsf@gmail.com> <87pq0w2gq6.fsf@bzg.ath.cx> <51002599.6000404@online.de> <87mwvy659o.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060208080407000301070602" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8nwi-0001Py-Mg for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 03:25:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8nwg-0007gn-Uq for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 03:25:32 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:63422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8nwg-0007ga-K9 for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 03:25:30 -0500 In-Reply-To: <87mwvy659o.fsf@bzg.ath.cx> 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 Cc: Bastien This is a multi-part message in MIME format. --------------060208080407000301070602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Am 24.01.2013 15:10, schrieb Bastien: > Hi Andreas, > > Andreas Röhler writes: > >> Okay, I'll dig into. >> >> For the moment: assume this code should not be needed, >> python-mode.el should act that all. But let me have a closer look, > > Great, thanks a lot! > ob-python.el patch again better provision for XEmacs users --------------060208080407000301070602 Content-Type: text/x-patch; name="ob-python.el.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ob-python.el.diff" commit 0fd2ac7ede3d7c8602a0a71fe1dc1678773baee4 Author: Andreas Roehler Date: Fri Feb 22 09:08:28 2013 +0100 Depend default python-mode from existing feature The former (if (featurep 'xemacs) 'python-mode 'python) makes a wrong assumption, as python-mode.el provides 'python-mode which does not depend from use of XEmacs python-mode.el should provide a defcustom still to choose environment TINYCHANGE diff --git a/lisp/ob-python.el b/lisp/ob-python.el index 02d762c..c9118e9 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el @@ -43,7 +43,7 @@ (defvar org-babel-python-command "python" "Name of the command for executing Python code.") -(defvar org-babel-python-mode (if (featurep 'xemacs) 'python-mode 'python) +(defvar org-babel-python-mode (if (or (featurep 'python-mode)(featurep 'xemacs)) 'python-mode 'python) "Preferred python mode for use in running python interactively. This will typically be either 'python or 'python-mode.") --------------060208080407000301070602--