From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: writing Python in Emacs Date: Sat, 19 Jan 2008 19:08:44 +0100 Message-ID: <87wsq5zo0j.fsf@thievol.homelinux.org> References: <160ed936-c8c0-432e-81c8-c62b8f164136@s13g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200765691 6512 80.91.229.12 (19 Jan 2008 18:01:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2008 18:01:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Richard Szopa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 19 19:01:49 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JGI0q-00076U-G8 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 19:01:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGI0R-00058r-CC for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 13:01:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGI07-00055J-PR for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 13:01:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGI06-00053c-CN for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 13:01:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGI06-00053T-44 for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 13:01:02 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.155]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JGI05-0006yN-Im for help-gnu-emacs@gnu.org; Sat, 19 Jan 2008 13:01:01 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so1511017fga.30 for ; Sat, 19 Jan 2008 10:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=jYoN+dnM4x6SPN8wezCR+onWGWRsah73RPLe3XIBeNQ=; b=CABU8GFB/jdJLo5PWnHdec5a+/eCtOGZd/3i9pVMXtTCgXsLqsp48PoIHkqC1h2ijEl+PG7XgUEKYTM88ohQ0jCAZqgYb/lGxBLu91bQKB0OhZ18G4J5TM4CnADCSxfXM6HO90CetmcBjmM4g1PrmKYS6Ez7piqD32+zQ0Jd09Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=lBGILbZ8Egn+aJZBxATqADcDsUOSPuzYt+Zn3tlYXLQ+aMeJC3VyJ7ZuDymFWcvMtje7lzrPGptbMvkOa4lx+487GMjdI1KxetG819XAk7ikTGI2ltz6vdWUU+BE2uZix1aOp2wo0TkVzzeQTdrsQLWHp90u5tszqwrZVBLEZZU= Original-Received: by 10.82.152.16 with SMTP id z16mr8648910bud.17.1200765659856; Sat, 19 Jan 2008 10:00:59 -0800 (PST) Original-Received: from thievol.homelinux.org ( [79.81.61.30]) by mx.google.com with ESMTPS id v23sm4047321fkd.1.2008.01.19.10.00.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Jan 2008 10:00:57 -0800 (PST) In-Reply-To: <160ed936-c8c0-432e-81c8-c62b8f164136@s13g2000prd.googlegroups.com> (Richard Szopa's message of "Sat, 19 Jan 2008 04:01:48 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50824 Archived-At: I started to use Ipython in emacs recently and it's quite nice. There is not all the features you require (hints like in idle) but the output is in color and nice for debugging. The completion is also much better. Richard Szopa writes: > Hi All, > > I am a devoted Emacs user and I write a lot in Python. However, I > never managed to get my Emacs configuration right for this purpose. > There were some discussions on this, but the threads that show if I > search the group are either old or not so relevant. > > I need the following features: > > 0) Of course, syntax coloring and so on... But this works good enough > ootb in the two most popular python-modes. > > 1) Tab completion, ideally Slime like. That is, when there's not > enough letters to unambiguously complete a symbol, I want it to show a > buffer (w/o taking the focus) w/ the possible completions. In an ideal > world, it would be able to complete fo.ba to foo.bar. I imagine > this would require quite tight Emacs-Python integration. > > 2) Sending the toplevel definition (class or function) to the Python > buffer. > > 3) Hints on function/method arguments. IDLE has this done nearly > right, but the hints are a bit too intrusive for me. I would like to > see them in the minibuffer. > > 4) (optional) I would like to see the definition of a function > function or class by hitting M-. on its name. (I understand that this > may be impossible for methods, as Emacs would have to automagically > infer the type of the object). > > I have tried a couple of times both python-modes (the one shipped w/ > Python and the one shipped w/ Emacs), pymacs and stuff like that... > And, as I said, never got it right. But, maybe I just cannot find the > way to configure it, and some configuration hints will be enough... > > As for other editors, I have tried Eclipse and Komodo... But I cannot > get used to them. As for non-emacs stuff, the most comfortable for me > has been IDLE. > > Cheers and thanks in advance, > > -- Richard > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs > -- A + Thierry Pub key: http://pgp.mit.edu