From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: key map entry for shift-return? Date: Wed, 8 Jul 2009 14:42:52 +0200 Message-ID: <8B68B5D4-3BA5-4E03-9FD7-78F99AB53018@Web.DE> References: <4A546774.1010303@simplistix.co.uk> <4A546C8D.1000107@simplistix.co.uk> <600595E1-2563-41CC-AABA-612649E502AA@Web.DE> <4A548841.2000803@simplistix.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247058253 31087 80.91.229.12 (8 Jul 2009 13:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 13:04:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Chris Withers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 15:04:06 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 1MOWoe-0001Rt-Gc for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 15:04:04 +0200 Original-Received: from localhost ([127.0.0.1]:37805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOWod-0005E5-Va for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 09:04:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOWWq-0002OE-Mw for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 08:45:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOWWi-0002MH-Q8 for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 08:45:37 -0400 Original-Received: from [199.232.76.173] (port=51473 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOWWh-0002M6-Kw for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 08:45:32 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:50503) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOWWh-0000ji-6F for help-gnu-emacs@gnu.org; Wed, 08 Jul 2009 08:45:31 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 89536107F111F; Wed, 8 Jul 2009 14:42:55 +0200 (CEST) Original-Received: from [91.35.209.14] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (WEB.DE 4.110 #277) id 1MOWUA-0005Rz-00; Wed, 08 Jul 2009 14:42:54 +0200 In-Reply-To: <4A548841.2000803@simplistix.co.uk> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX189keJwAJpG64Dod63tYaS2Q+0cWhHSTJk2b6S9 cGduzfU42vwGFAFUVN+0X2VcEPH6u+tvFPa2ZaXT0SsfQhpe3w 4Rimh/DI85S+nrIA5pEg== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:65846 Archived-At: Am 08.07.2009 um 13:51 schrieb Chris Withers: > (add-hook 'python-mode-hook '(lambda () (define-key python-mode-map =20= > "\C-m" 'newline-and-indent))) > > (add-hook 'python-mode-hook '(lambda () (define-key python-mode-map =20= > "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 =20 [S-return] 'newline))) -- Greetings Pete (: _ / __ - - _/ \__/_/ - - (=B4`) (=B4`) - - `=B4 `=B4