From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: key map entry for shift-return? Date: Thu, 09 Jul 2009 17:21:51 GMT Message-ID: References: <961bb7e9-56d4-40d5-b0dc-4c15e0da722b@x25g2000prf.googlegroups.com> <878wiykk2r.fsf@catnip.gol.com> <1648be38-5e41-4d7b-98d8-1f6e6494d2a2@g7g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247198307 13262 80.91.229.12 (10 Jul 2009 03:58:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 03:58:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 10 05:58:20 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 1MP7Fc-0000uf-5G for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Jul 2009 05:58:20 +0200 Original-Received: from localhost ([127.0.0.1]:60370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MP7Fb-0001Ff-FP for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Jul 2009 23:58:19 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!nwrddc02.gnilink.net.POSTED!d15a3661!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:ngSFssXMVHwHkkqTAHDzIDo1iAg= Original-Lines: 36 Original-NNTP-Posting-Host: 74.105.221.162 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: nwrddc02.gnilink.net 1247160111 74.105.221.162 (Thu, 09 Jul 2009 13:21:51 EDT) Original-NNTP-Posting-Date: Thu, 09 Jul 2009 13:21:51 EDT Original-Xref: news.stanford.edu gnu.emacs.help:170702 comp.emacs:98371 X-Mailman-Approved-At: Thu, 09 Jul 2009 23:57:54 -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:65915 Archived-At: Xah Lee writes: > On Jul 9, 7:27 am, Miles Bader wrote: >> Alan Mackenzie writes: >> > Hey, stop being so enigmatic! I think the OP only wants Shift Return >> > for his own use, which should be OK. So please tell him (and me) what >> > this other complexity is. >> >> He's just looking for an excuse to flog his screeds... > > Well, perhaps just a sentence or two to answer Alan. > > Basically, for good or bad, emacs does not capture the key by itself, > but goes thru ascii representation in its implementation... my > phrasing here is not exactl but don't want to spend too much time > writing this. Basically, the end result is that when people want to > map keys like Tab, Return, or with modifiers, it has many > complexities. Many threads asked or discussed these in the past year > or two here.... another example comes to mind is that emacs is unable > to capture Ctrl+Shift+key combos in terminal. Perhaps historically > justifiable... but today's apps that goes thru network don't have this > limitation... I'm not sure what this is all about, I never saw the original post. But binding something to shift return doesn't seem to be a big problem. Try evaling this: (define-key global-map [(S-return)] 'compile) It works for me. I don't expect it would work in a TTY, but that's an issue with the TTY not emacs. For some TTY programs even that can be fixed.