From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: remap question Date: Thu, 19 Oct 2006 13:36:48 +0200 Message-ID: References: <2504af190610180739n6cc80623le7fe7e9d128e4d4b@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161257909 32156 80.91.229.2 (19 Oct 2006 11:38:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2006 11:38:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 19 13:38:28 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GaWEC-0007Qx-HQ for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 13:38:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaWEC-0000uz-0A for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Oct 2006 07:38:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaWDN-0008JD-P3 for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 07:37:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GaWDM-0008Fn-2z for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 07:37:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaWDL-0008FT-Md for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 07:37:31 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GaWDL-0006iN-G9 for help-gnu-emacs@gnu.org; Thu, 19 Oct 2006 07:37:31 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 767F3FAC028; Thu, 19 Oct 2006 13:37:29 +0200 (CEST) Original-To: ray In-Reply-To: <2504af190610180739n6cc80623le7fe7e9d128e4d4b@mail.gmail.com> (ray's message of "Wed\, 18 Oct 2006 22\:39\:58 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:38131 Archived-At: ray writes: > Hi, all > artist-mode remap delete-char to it's own function: > (define-key picture-mode-map (vector remap delete-char) newfun)) > But it also defines this binding: > (define-key picture-mode-map "\C-c\C-d" 'delete-char) > It seem that it expects C-c C-d to excute the delete-char function, but the > result is that both delete-char's original key(C-d) and C-c C-d are binding > to newfun. > I referenced the emacs lisp and feels that this result is correct. My > question is: If I want C-c C-d bind to delete-char, how can I get it? Eg. (defalias 'delete-char-noremap 'delete-char) (define-key picture-mode-map "\C-c\C-d" 'delete-char-noremap) -- Kim F. Storm http://www.cua.dk