From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: prad Newsgroups: gmane.emacs.help Subject: Re: enter key behaviour Date: Sun, 14 Jun 2009 00:43:24 -0700 Message-ID: <20090614004324.1bea22a8@gom> References: <20090612133824.51238d57@gom> <4A349465.7090509@pobox.com> <4A3495C9.2080402@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245004026 26763 80.91.229.12 (14 Jun 2009 18:27:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jun 2009 18:27:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 14 20:27:03 2009 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 1MFuQ2-0002Wa-Uy for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jun 2009 20:27:03 +0200 Original-Received: from localhost ([127.0.0.1]:39077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFuQ2-0004MX-D8 for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jun 2009 14:27:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFkdO-00016r-DD for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 04:00:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFkdJ-00015Y-Tw for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 04:00:09 -0400 Original-Received: from [199.232.76.173] (port=46888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFkdJ-00015S-KB for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 04:00:05 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:60283 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFkdJ-0005Ru-5G for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 04:00:05 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MFkdG-0007UP-Df for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 08:00:02 +0000 Original-Received: from s0106001cf0c835a7.du.shawcable.net ([70.67.176.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 08:00:02 +0000 Original-Received: from prad by s0106001cf0c835a7.du.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 08:00:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s0106001cf0c835a7.du.shawcable.net X-Newsreader: Claws Mail 3.7.1 (GTK+ 2.16.2; x86_64-unknown-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 14 Jun 2009 14:25:53 -0400 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:65287 Archived-At: On Sun, 14 Jun 2009 16:16:41 +1000 Bernardo wrote: > e.g. C-h k RET > thank you bernado! i used the above and found that in python-mode the key is bound to newline-and-indent, but the rest of the time it is not because simple.el is used instead of python-mode.el so i just commented out this line (define-key py-mode-map "\C-m" 'py-newline-and-indent) in the python-mode.el file to get the desired behavior. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's