From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Withers Newsgroups: gmane.emacs.help Subject: Re: key map entry for shift-return? Date: Wed, 08 Jul 2009 14:39:27 +0100 Message-ID: <4A54A18F.8030900@simplistix.co.uk> References: <4A546774.1010303@simplistix.co.uk> <4A546C8D.1000107@simplistix.co.uk> <600595E1-2563-41CC-AABA-612649E502AA@Web.DE> <4A548841.2000803@simplistix.co.uk> <8B68B5D4-3BA5-4E03-9FD7-78F99AB53018@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247060599 7053 80.91.229.12 (8 Jul 2009 13:43:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 13:43:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 15:43:12 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 1MOXQV-0004qd-Lq for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 15:43:12 +0200 Original-Received: from localhost ([127.0.0.1]:38235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOXQV-000103-3d for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 09:43:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOXMm-0007GP-Jr for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 09:39:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOXMk-0007Fk-BY for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 09:39:19 -0400 Original-Received: from [199.232.76.173] (port=34555 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOXMk-0007Fh-7x for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 09:39:18 -0400 Original-Received: from server1.simplistix.co.uk ([89.151.125.140]:59791) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOXMi-0002Ef-Uh for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 09:39:17 -0400 Original-Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id E29AB4F80AF; Wed, 8 Jul 2009 14:39:15 +0100 (BST) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <8B68B5D4-3BA5-4E03-9FD7-78F99AB53018@Web.DE> X-detected-operating-system: by monty-python.gnu.org: GNU/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:65847 Archived-At: Peter Dyballa wrote: > >> (add-hook 'python-mode-hook '(lambda () (define-key python-mode-map >> "S-return" 'newline))) >> >> The first one works, the second one doesn't. What did I do wrong? > > I think the syntax needs to use the vector form in this case: > > (add-hook 'python-mode-hook '(lambda () (define-key python-mode-map > [S-return] 'newline))) Excellent, that was it, thanks. Chris - can you guess I don't speak lisp? ;-) -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk