From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: Change C-d binding from delete-char to backward-delete-char-untabify Date: Thu, 07 Apr 2011 11:19:06 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1302168072 24071 80.91.229.12 (7 Apr 2011 09:21:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2011 09:21:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "B. T. Raven" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 11:21:08 2011 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 1Q7lOm-0003rq-Fa for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 11:21:08 +0200 Original-Received: from localhost ([127.0.0.1]:45328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7lOl-0006T5-Bk for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Apr 2011 05:21:07 -0400 Original-Received: from [140.186.70.92] (port=43630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7lNq-0006Mq-Do for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 05:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7lNo-0007SH-31 for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 05:20:09 -0400 Original-Received: from mta-1.ms.rz.rwth-aachen.de ([134.130.7.72]:65221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7lNn-0007Rk-U1 for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 05:20:08 -0400 Original-Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-1.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LJ900BZNZ9IEUC0@mta-1.ms.rz.RWTH-Aachen.de> for help-gnu-emacs@gnu.org; Thu, 07 Apr 2011 11:20:06 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.63,315,1299452400"; d="scan'208";a="105038813" Original-Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Thu, 07 Apr 2011 11:19:06 +0200 Original-Received: from plaetekopp (plaetekopp.informatik.RWTH-Aachen.DE [137.226.59.97]) by relay.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id p379J60d026912; Thu, 07 Apr 2011 11:19:06 +0200 (CEST) Original-Received: from crotti by plaetekopp with local (Exim 4.72) (envelope-from ) id 1Q7lMo-0002yD-7P; Thu, 07 Apr 2011 11:19:06 +0200 In-reply-to: User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 134.130.7.72 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:80651 Archived-At: "B. T. Raven" writes: > I notice that I use both of these functions in my .emacs: > > global-set-key > define-key global-map > > Is it enough to make the new binding with either of these or does the > default binding have to be unbound first? What is the difference between > using those two methods? Can I then use the same method to bind > [backspace] to delete-char? I always use global-set-key, I'm not sure what could be the difference between the two methods anyway. Bu yes you don't need to unbound anything before, and just use global-set-key after everything else is loaded and you'll be fine. -- GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-03-04 on plaetekopp