help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remap question


From: Kim F. Storm
Subject: Re: remap question
Date: Thu, 19 Oct 2006 13:36:48 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

ray <hantechs@gmail.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]