* remap question
@ 2006-10-18 14:39 ray
2006-10-19 11:36 ` Kim F. Storm
0 siblings, 1 reply; 2+ messages in thread
From: ray @ 2006-10-18 14:39 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 524 bytes --]
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?
[-- Attachment #1.2: Type: text/html, Size: 588 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: remap question
2006-10-18 14:39 remap question ray
@ 2006-10-19 11:36 ` Kim F. Storm
0 siblings, 0 replies; 2+ messages in thread
From: Kim F. Storm @ 2006-10-19 11:36 UTC (permalink / raw)
Cc: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-19 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 14:39 remap question ray
2006-10-19 11:36 ` Kim F. Storm
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.