From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ray Newsgroups: gmane.emacs.help Subject: remap question Date: Wed, 18 Oct 2006 22:39:58 +0800 Message-ID: <2504af190610180739n6cc80623le7fe7e9d128e4d4b@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0750096019==" X-Trace: sea.gmane.org 1161182504 19456 80.91.229.2 (18 Oct 2006 14:41:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2006 14:41:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 18 16:41:41 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 1GaCbW-0007HN-VN for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Oct 2006 16:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaCbW-0005JF-FX for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Oct 2006 10:41:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GaCaX-00048W-Ri for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 10:40:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GaCaS-0003wM-Dx for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 10:40:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GaCaR-0003vq-VY for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 10:40:04 -0400 Original-Received: from [66.249.92.169] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GaCaR-0004bg-LU for help-gnu-emacs@gnu.org; Wed, 18 Oct 2006 10:40:03 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 36so210416uga for ; Wed, 18 Oct 2006 07:40:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=b2llaLvOzaeOiXEmcktaux3HYaA4di3CAScGkj1KVykk6Qrry1rIpdSSLggG8nkz7Rf/XtdP+ZMyk6WgG35HwGAiOjc5CP4W6JHCFeXIgI6Kya3WAllgsSEUEdqALz22YDG5+WpgZ/W45cjXjXS+bqQFCgunXz4U67DPnWsqPR0= Original-Received: by 10.67.24.13 with SMTP id b13mr11896138ugj; Wed, 18 Oct 2006 07:39:58 -0700 (PDT) Original-Received: by 10.66.255.3 with HTTP; Wed, 18 Oct 2006 07:39:58 -0700 (PDT) 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 Xref: news.gmane.org gmane.emacs.help:38105 Archived-At: --===============0750096019== Content-Type: multipart/alternative; boundary="----=_Part_190656_14489190.1161182398435" ------=_Part_190656_14489190.1161182398435 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? ------=_Part_190656_14489190.1161182398435 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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?
------=_Part_190656_14489190.1161182398435-- --===============0750096019== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0750096019==--