unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* define-key .. whats wrong here?
@ 2003-06-27  0:48 Harry Putnam
  2003-06-27  1:01 ` Harry Putnam
       [not found] ` <mailman.8724.1056675775.21513.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Harry Putnam @ 2003-06-27  0:48 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-01  7:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-27  0:48 define-key .. whats wrong here? Harry Putnam
2003-06-27  1:01 ` 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

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).