From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.python-mode,gmane.emacs.devel Subject: Re: python.el cleanup Date: Wed, 30 Mar 2011 16:10:11 +0200 Message-ID: <4D9339C3.7070104@online.de> References: <86ipv28xk5.fsf@gmail.com> <86pqp971rz.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301493813 12969 80.91.229.12 (30 Mar 2011 14:03:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2011 14:03:33 +0000 (UTC) Cc: python-mode@python.org To: emacs-devel@gnu.org Original-X-From: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Wed Mar 30 16:03:29 2011 Return-path: Envelope-to: gcpp-python-mode@m.gmane.org Original-Received: from mail.python.org ([82.94.164.166]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4vzd-0005gj-Ir for gcpp-python-mode@m.gmane.org; Wed, 30 Mar 2011 16:03:29 +0200 Original-Received: from albatross.python.org (localhost [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 3Q09g52WxSz7LkB for ; Wed, 30 Mar 2011 16:03:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1301493809; bh=Pd7RIfHSGSVNVwAHhoNc16k8NnT4YvKtJiwIEaTSctU=; h=Message-ID:Date:From:MIME-Version:To:References:In-Reply-To:Cc: Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Content-Transfer-Encoding:Content-Type:Sender; b=aP6C1UeqDe7JSZXJklPyJJgPKehiH+DCmnr63qpS4GTF2Pq5whvhKmSvmcCsEOZ5w lLdyydk4J7v9hoB/KmZ1SAFNgMNydZ9soMRKIw9pG8GsRK11qtBXAgglnuJwBHFwuL LYZXEPHFADuS+qljP/bu8AtnGHddfC+ugHJRKXLk= Original-Received: from albatross.python.org (localhost [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 3Q09fz1j7gz7LjM; Wed, 30 Mar 2011 16:03:23 +0200 (CEST) X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:192.168.178': 0.05; 'think,': 0.05; 'installed.': 0.07; 'interpreter': 0.07; 'skip:` 10': 0.07; 'python': 0.07; 'buffer.': 0.09; 'cc:addr:barry': 0.09; 'correct.': 0.09; 'historically': 0.09; 'interpreter.': 0.09; 'ironpython': 0.09; 'obsolete': 0.09; 'skip:` 30': 0.09; 'that).': 0.09; 'url:launchpad': 0.09; 'url:code': 0.11; 'users,': 0.14; 'andreas': 0.16; 'blaming': 0.16; 'cc:name:barry warsaw': 0.16; 'cpython,': 0.16; 'emacs': 0.16; 'from:charset:iso-8859-15': 0.16; 'interwoven': 0.16; 'jython': 0.16; 'monnier': 0.16; 'perspective': 0.16; 'predates': 0.16; 'pypy': 0.16; 'received:192.168.178.29': 0.16; 'side.': 0.16; 'traced': 0.16; 'hopefully': 0.16; 'shell': 0.19; 'writes:': 0.20; 'cc:no real name:2**0': 0.20; 'code': 0.22; 'header:In- Reply-To:1': 0.22; 'right.': 0.22; 'skip:` 20': 0.23; '(e.g.': 0.26; '(see': 0.26 Original-Received: from localhost (HELO mail.python.org) (127.0.0.1) by albatross.python.org with SMTP; 30 Mar 2011 16:03:23 +0200 Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mail.python.org (Postfix) with ESMTP; Wed, 30 Mar 2011 16:03:23 +0200 (CEST) Original-Received: from [192.168.178.29] (brln-d9ba3057.pool.mediaWays.net [217.186.48.87]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MPIxM-1Q0W992iQa-004aj9; Wed, 30 Mar 2011 16:03:20 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: <86pqp971rz.fsf@gmail.com> X-Provags-ID: V02:K0:rjRI54JHvlkRen3DSAsTxZDfVzokLYVCqJcxxIHfpcx oADZaiaIPlCb+6RwAlKOHKK43FY77p10oYRp4XoF4XP/SKN3Fb cefP7d4r4CJ6Lk26pwNnptl+R1AqbLZzoJnra6e+MmPQLRJ7+Z b4w+gyr9l6SkjYRyeodmXGXdvcXmAa2514yQTkZF7r/qgtrXC/ ZWIoFCa7yHBWxU2RpAg2RJ5n0L9HGN1TJb6PiMrUmc= X-BeenThere: python-mode@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: For issues concerning python-mode for X/Emacs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Errors-To: python-mode-bounces+gcpp-python-mode=m.gmane.org@python.org Xref: news.gmane.org gmane.emacs.python-mode:700 gmane.emacs.devel:137912 Archived-At: Am 30.03.2011 04:58, schrieb Christoph Scholtes: > Stefan Monnier writes: > >> Could you just clarify why they're considered obsolete (e.g. what would >> the user use instead)? > > `python-shell' is not needed since Dave's mode already had > 'run-python' to invoke the python interpreter. It offers no advantages > over run-python as far as I can tell except being able to toggle > between a Python and a Jython shell (see below for comments on that). > > `python-comint-filter-function' is only called from `python-shell'. > > `python-file-queue' is never populated anywhere, only read from > `python-comint filter-function'. > > `python-default-interpreter' is only used by `python-shell' and not, > as advertised in its documentation, on first visiting a Python mode > buffer. > > `python-python-command-args' and `python-jython-command-args' are only > used in the `python-toggle-shell' function. > > `python-which-shell', `python-which-args' and `python-which-bufname' > are used for toggling between the Python and Jython shell. > > Finally, `python-toggle-shell'. I think, that we should provide a better > solution for this and therefore remove the current implementation. This > code came from python-mode.el, if I traced that back right. Hi Christoph, glad to see Emacs python facilities improve. As you mention python-mode.el, there are some remarks in python.el which I feel are not correct. If some solution predates historically another, there are usually some setbacks from being the first. OTOH from my perspective python-mode.el has still some point in proceding. Hopefully we may discuss the pro and cons to the benefit of users, which flavour they may choose finally. As you might have been remarked, its interwoven to an extend, you can seldom discern it clearly to the one or other origin. BTW I'm not blaming the GNU's side. Just wanted to point at the issue so we might hopefully reduce the obstacles. Cheers Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/ > > Python interpreter selection should be universal and not only support Jython > and CPython, but also IronPyton, PyPy etc. I would like to implement a > better solution for this as soon as Fabian's changes are installed. I am > using IronPython quite a bit and it would be nice to be able to switch > flexibly between different interpreters. > > Christoph > >