From: no-spam@cua.dk (Kim F. Storm)
Cc: help-gnu-emacs@gnu.org
Subject: Re: remap question
Date: Thu, 19 Oct 2006 13:36:48 +0200 [thread overview]
Message-ID: <m3d58ok04v.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <2504af190610180739n6cc80623le7fe7e9d128e4d4b@mail.gmail.com> (ray's message of "Wed\, 18 Oct 2006 22\:39\:58 +0800")
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
prev parent reply other threads:[~2006-10-19 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-18 14:39 remap question ray
2006-10-19 11:36 ` Kim F. Storm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d58ok04v.fsf@kfs-l.imdomain.dk \
--to=no-spam@cua.dk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.