From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no spam Newsgroups: gmane.emacs.help Subject: Re: keymap problem Date: Sun, 20 Mar 2005 17:47:08 GMT Organization: SBC http://yahoo.sbc.com Message-ID: <423DB701.7070408@yahoo.com> References: <348%d.20410$Pz7.15394@newssvr13.news.prodigy.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111340890 8605 80.91.229.2 (20 Mar 2005 17:48:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 17:48:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 18:48:09 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD4Wx-0006sT-Ef for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2005 18:48:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD4nt-0007Bf-FE for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2005 13:05:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newscon02.news.prodigy.com!prodigy.net!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!20ac0f33!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 36 Original-NNTP-Posting-Host: 69.225.161.157 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr14.news.prodigy.com 1111340828 ST000 69.225.161.157 (Sun, 20 Mar 2005 12:47:08 EST) Original-NNTP-Posting-Date: Sun, 20 Mar 2005 12:47:08 EST X-UserInfo1: Q[R_@SVGQZTIBTLYWX^TJZUDFZ\@@FXLM@TDOCQDJ@_@FN\CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Original-Xref: shelby.stanford.edu gnu.emacs.help:129489 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25044 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25044 thanks, Joe, but there are still a few problems: 1) if I do M-x help k (the Backspace key) I get C-d runs the command delete-char (delete-char N ............) which means that backspace has already been mapped to C-d (that's why I suspected this required some sort of keymap wizardry). While I could live with C-d and Backspace both meaning delete-backward-char, I'd really rather have C-d continue to mean "delete forward" like it ought to. 2) your syntax doesn't work in my version: If I try (global-set-key "^d" 'backward-delete-char-untabify) I get an initialization error "Key sequence ^ d uses invalid prefix characters" I've also tried [C-d] which didn't get an error but also didn't have the desired effect. Neither did this: (global-set-key [delete] 'backward-delete-char-untabify) So how do I prevent Backspace from being mapped to C-d? Joe Corneli wrote: > Or rather `backward-delete-char-untabify' but if you had a function > `delete-backward-char-untabify' you could use the binding strategy > above to bind to it! > >