From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "weber" Newsgroups: gmane.emacs.help Subject: Re: Looking for a sneaky key binding Date: 4 Mar 2007 18:02:02 -0800 Organization: http://groups.google.com Message-ID: <1173060122.176430.305800@t69g2000cwt.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1173062496 15587 80.91.229.12 (5 Mar 2007 02:41:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 02:41: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 Mon Mar 05 03:41:30 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 1HO38j-00027T-Li for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Mar 2007 03:41:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO38j-0007rQ-73 for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Mar 2007 21:41:29 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!t69g2000cwt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 200.213.41.24 Original-X-Trace: posting.google.com 1173060136 12277 127.0.0.1 (5 Mar 2007 02:02:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 5 Mar 2007 02:02:16 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t69g2000cwt.googlegroups.com; posting-host=200.213.41.24; posting-account=pG57fA0AAADtQ-4h1MyvjXjZpSNZC0zj Original-Xref: shelby.stanford.edu gnu.emacs.help:146056 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:41663 Archived-At: On 4 mar, 22:09, Dan Bensen wrote: > After making a new command, I wanted to bind it to M-C-|. > This form didn't work: > (global-set-key 'my-command) > > where was equal to > "\M-\C-|" > "\M-\C-\|" > "|\M-\C-\||" > > on separate attempts. The error message was always > "Invalid modifier in string". > > So is there another trick somewhere that does this, > or is it not supported? > > -- > Danwww.prairienet.org/~dsb Yes, i had some problems too.. But with this syntax worked: (global-set-key (kbd "M-C-\|") '(lambda() (interactive) (message "Teste"))) It's hard combo to type though: you have to hold Ctrl, Alt and Shift! :) Cheers, weber