From: Harry Putnam <reader@newsguy.com>
Subject: define-key .. whats wrong here?
Date: Thu, 26 Jun 2003 17:48:10 -0700 [thread overview]
Message-ID: <m33chwtkfp.fsf@newsguy.com> (raw)
This is ocurring in gnus but is an elisp or emacs question so
properly belongs here I guess.
Attempting to define a keys that run macros
>From .gnus.el
(fset 'delall
[?M ?P ?b ?B backspace ?y])
(define-key gnus-summary-mode-map "D" 'delall)
(fset 'sendto_spam1
[?M ?P ?b ?B ?m ?\C-a ?\C-k ?n ?n ?m ?l ?: ?s ?p ?a ?m ?1 return])
(define-key gnus-summary-mode-map "\C-ss" 'send2_spam1)
The first one works.
And pressing C-h k <RET> D <RET> in summary buffer shows
it bound to the macro
The second doesn't throw errors but shows undefined when
running C-h k <RET> C-c s <RET> in summary mode.
I got the example from emacs info:
[...]
(define-key texinfo-mode-map "\C-cp"
'backward-paragraph)
(define-key texinfo-mode-map "\C-cn"
'forward-paragraph)))
Where it is discussing adding hooks.
next reply other threads:[~2003-06-27 0:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-27 0:48 Harry Putnam [this message]
2003-06-27 1:01 ` define-key .. whats wrong here? Harry Putnam
[not found] ` <mailman.8724.1056675775.21513.help-gnu-emacs@gnu.org>
2003-06-27 9:48 ` Andy Sawyer
2003-07-01 7:30 ` Harry Putnam
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m33chwtkfp.fsf@newsguy.com \
--to=reader@newsguy.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).