From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YSK Newsgroups: gmane.emacs.help Subject: Re: redefine C-h Date: Sat, 9 Aug 2008 09:00:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <24e08128-d392-4920-9433-0a4f7a522e9b@2g2000hsn.googlegroups.com> References: <6c2a4df0-eaa7-4617-9cb5-94f0ca4bd888@w7g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218385333 14488 80.91.229.12 (10 Aug 2008 16:22:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Aug 2008 16:22:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 10 18:23:04 2008 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 1KSDgu-0007Xw-OJ for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2008 18:22:49 +0200 Original-Received: from localhost ([127.0.0.1]:45580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSDfy-0002XM-K6 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Aug 2008 12:21:50 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 69.121.149.235 Original-X-Trace: posting.google.com 1218297627 419 127.0.0.1 (9 Aug 2008 16:00:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 9 Aug 2008 16:00:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=69.121.149.235; posting-account=z6ITewoAAABmlG9vONzLvdFrBL9rvvvn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 (CK-IBM) Firefox/3.0.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161018 X-Mailman-Approved-At: Sun, 10 Aug 2008 12:21:24 -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:56405 Archived-At: On Aug 9, 10:14=A0am, Kevin Rodgers wrote: > YSK wrote: > > C-h is a normally prefix key, but I want to bind 'backward-char- > > delete' to it. My .emacs has this: > > > (global-unset-key "\C-h") > > (global-set-key "\C-\M-h" 'help-command) > > (global-set-key [C-h] 'delete-backward-char) > > > I want to use C-M-h for help-command instead and use C-h for > > backspace. However...it's not working. C-h remains a prefix key. My > > understanding of prefix keys is basically nil, so there's probably > > something pretty basic I'm missing here. Would anyone here be kind > > enough to clue me in? > > [C-h] is not the same thing as "\C-h". > > Also, you need to (setq help-char ?\C-\M-h) > > -- > Kevin Rodgers > Denver, Colorado, USA Kevin, I did not know that - what is the difference between [C-h] and "\C-h"? I thought they were interchangeable. Thanks