From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philip Ganchev Newsgroups: gmane.emacs.help Subject: Re: global-set-key C-next Date: Thu, 9 Dec 2010 18:41:30 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291945778 8134 80.91.229.12 (10 Dec 2010 01:49:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 01:49:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 02:49:32 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 1PQs71-0007pf-LH for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 02:49:32 +0100 Original-Received: from localhost ([127.0.0.1]:48818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQqAg-0007Ms-Hp for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 18:45:10 -0500 Original-Received: from [140.186.70.92] (port=58190 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQq7c-0007GA-9V for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 18:42:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQq7U-0002Yn-DW for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 18:41:58 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:34622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQq7U-0002YG-63 for help-gnu-emacs@gnu.org; Thu, 09 Dec 2010 18:41:52 -0500 Original-Received: by wwb17 with SMTP id 17so3028926wwb.30 for ; Thu, 09 Dec 2010 15:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ZAiUJtwSzm4SSQp+EopCNX6rpcwznw8yFK4pcCoJ9sU=; b=Od6nz9AC9AK196vxsZVtqbsOU1yjsTvAFaIVecdh4Eag2MzmJInXzWSk4HHueO9gT+ YHVzcVGBOTtRCAnJSDmBHOO97Z5YIp/ZBpq89jSwAybvS2eyTrju26A2yfJkJCPvuTM4 ReaaTBd8jLg1ot6txZnBaWv+y4n7UEX9I2AtM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=pT2M27GRMRmyodf8rBUx0p6TniwFXt49OeYcW3HRHChCHdvjy1d28hR0TDKr1D8QHo gjJLZfBEqXAFagSV5rUZHQDn8fcsNihRl5o/3ifcoxaw80wjovk+eK8MbaMZbezezk90 A9my0eLLKXS9TDcYvITApcRe8saBBIConU6Yw= Original-Received: by 10.216.185.76 with SMTP id t54mr99523wem.6.1291938110420; Thu, 09 Dec 2010 15:41:50 -0800 (PST) Original-Received: by 10.227.133.143 with HTTP; Thu, 9 Dec 2010 15:41:30 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.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:77155 Archived-At: On Thu, Dec 9, 2010 at 5:19 PM, Drew Adams wrote: >> 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).