From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: global-set-key C-next Date: Thu, 9 Dec 2010 20:43:24 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291959531 21840 80.91.229.12 (10 Dec 2010 05:38:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 05:38:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Philip Ganchev'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 06:38:47 2010 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.69) (envelope-from ) id 1PQvgr-0001rs-4W for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 06:38:45 +0100 Original-Received: from localhost ([127.0.0.1]:37028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQvcf-0001t4-Gi for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 00:34:25 -0500 Original-Received: from [140.186.70.92] (port=60652 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQuq1-0005jX-7G for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 23:44:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQuq0-0001u3-1L for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 23:44:08 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:28886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQupz-0001ty-PP for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 23:44:07 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBA4i4BA024879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Dec 2010 04:44:05 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBA4hrB4010843; Fri, 10 Dec 2010 04:44:00 GMT Original-Received: from abhmt008.oracle.com by acsmt353.oracle.com with ESMTP id 842142401291956205; Thu, 09 Dec 2010 20:43:25 -0800 Original-Received: from dradamslap1 (/10.159.225.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Dec 2010 20:43:24 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuX+qeefukmy9/fRwCRqhnmNvtesgAKe9zA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:77358 Archived-At: > >> I want to bind the key Control+PageDown. I tried > >> (global-set-key (kbd "C-next") bury-buffer) > >> (global-set-key (kbd "C-") bury-buffer) > >> but those don't work. How can I describe the key? > > > > (global-set-key (kbd "C-") 'bury-buffer) or > > (global-set-key [(control next)] 'bury-buffer) > > > > You forgot a quote. > > Thanks. Although I forgot a quote in my post to the list, I had the > quote in my .emacs file. It tried with both expressions and it does > not work. When I press Ctrl+PageDown, "5~" is inserted (without the > quotes). Dunno what to say. Both of those work for me. Without defining any bindings, starting with `emacs -Q', what does `C-h k' followed by hitting Ctrl+PageDown tell you?