From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alexander Tsamutali" Newsgroups: gmane.emacs.help Subject: Indentation in python.el after "Enter" Date: Wed, 11 Jul 2007 12:35:11 +0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184139336 16046 80.91.229.12 (11 Jul 2007 07:35:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2007 07:35:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 09:35:34 2007 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 1I8WjV-0001wg-Qi for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 09:35:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8WjV-0000H7-4f for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2007 03:35:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8WjD-0000Gx-Vl for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 03:35:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8WjC-0000Gg-Uv for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 03:35:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8WjC-0000GZ-Rk for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 03:35:14 -0400 Original-Received: from py-out-1112.google.com ([64.233.166.179]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8WjC-0007q3-Ch for help-gnu-emacs@gnu.org; Wed, 11 Jul 2007 03:35:14 -0400 Original-Received: by py-out-1112.google.com with SMTP id f31so3541431pyh for ; Wed, 11 Jul 2007 00:35:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=g0HC8lJB6oaYHHZ9KRSXD5yEGXDBKMfYo5DZ+NI7JbhsZePBlpVWXFyQNbWqq/djKqcVJSKKK2h4ILMkaIjdoUAb/EhGOIQbPQXgYuOlixDk5Hx2xdNaxXrtwKaMZDuhPoFPGOXegXmIojSmZK39GRu0z/d2Sxftt2/6U5L92ms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=lxE0RgYzd11Kp6Q9xteO4JC6K5HX7MvUyqAy3ehAikWJGSc3V+P8C7IMLNuxGRgh5OiqRoR5+2E/R55I0Tu5V56+yR9I7tRBEoCZUW4w5oUA7phimX7a/RDw9bCorX8Mkxj+zB9ZxRMrP/P+qQ652Qp3PPowrbIQODWc9dBzVO0= Original-Received: by 10.64.76.15 with SMTP id y15mr6020634qba.1184139312685; Wed, 11 Jul 2007 00:35:12 -0700 (PDT) Original-Received: by 10.65.196.1 with HTTP; Wed, 11 Jul 2007 00:35:09 -0700 (PDT) Content-Disposition: inline X-detected-kernel: 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:45584 Archived-At: Hi, all! I am novice emacs user and i'm using emacs to write python programs. I used python-mode.el from http://python-mode.sourceforge.net and was quite happy. A few days ago i updated emacs to 22.1 and read that the default python.el mode is updated and recommended for use. I removed python-mode.el and yes, python.el works good. The only thing i miss form the old python-mode.el is that when i hit "Enter" on the line which is indented by itself or opens the new block, emacs maintains/creates indentation on the new line, so i don't need to hit "Tab". For ex.: def foo(): a = 1 # hit "Enter" b = 2 # this line was already indented if a == b: # hit "Enter" # cursor jumps here because i opened the block When using python.el cursor always jumps to the first column and i need to hit "Tab" to indent new line properly. Can someone help me to make my emacs smarter in this area? :) -- Alexander Tsamutali