From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Szopa Newsgroups: gmane.emacs.help Subject: writing Python in Emacs Date: Sat, 19 Jan 2008 04:01:48 -0800 (PST) Organization: http://groups.google.com Message-ID: <160ed936-c8c0-432e-81c8-c62b8f164136__1414.69574668935$1200761913$gmane$org@s13g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200761888 27276 80.91.229.12 (19 Jan 2008 16:58:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2008 16:58:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 19 17:58:27 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 1JGH1U-0003Xi-J4 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 17:58:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGH15-0007RE-JF for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jan 2008 11:57:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s13g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: comp.lang.python, gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 87.206.141.66 Original-X-Trace: posting.google.com 1200744108 15118 127.0.0.1 (19 Jan 2008 12:01:48 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 19 Jan 2008 12:01:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s13g2000prd.googlegroups.com; posting-host=87.206.141.66; posting-account=pjZ2-AgAAACZ832qWb19rEUi_E5Z3xHT User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu comp.lang.python:527991 gnu.emacs.help:155414 X-Mailman-Approved-At: Sat, 19 Jan 2008 11:57:42 -0500 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:50822 Archived-At: 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