unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* define-key
@ 2011-11-07 21:23 Cecil Westerhof
       [not found] ` <jwvobwntl1s.fsf-monnier+gnu.emacs.help@gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Cecil Westerhof @ 2011-11-07 21:23 UTC (permalink / raw)
  To: help-gnu-emacs

For one reason or another C-M-k does not work in gnus-summary-mode. I
tried the following:
    (define-key gnus-summary-mode-map [?\C-?\M-k]
      'gnus-summary-kill-thread)

But this gives:
    Debugger entered--Lisp error: (invalid-read-syntax "?")
      read(#<buffer *scratch*>)
      preceding-sexp()
      eval-last-sexp-1(nil)
      eval-last-sexp(nil)
      call-interactively(eval-last-sexp nil nil)

When I use:
    (define-key gnus-summary-mode-map [?\C-?\M-k]
      'gnus-summary-kill-thread)

I do not get an error, but the key combination does not work also.
What is the correct way to define the key combination?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


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

* Re: define-key
       [not found]     ` <jwv39dysphw.fsf-monnier+gnu.emacs.help@gnu.org>
@ 2011-11-08 15:12       ` Cecil Westerhof
  0 siblings, 0 replies; 2+ messages in thread
From: Cecil Westerhof @ 2011-11-08 15:12 UTC (permalink / raw)
  To: help-gnu-emacs

Op dinsdag 8 nov 2011 14:39 CET schreef Stefan Monnier:

>> I now have:
>> (define-key gnus-summary-mode-map [?\C-\M-k]
>> 'gnus-summary-kill-thread)
>
> Where do you have it?

At this moment I execute it in the scratch buffer. (That is not the
problem, because when I use [T x] that combination does work.)


>> But it still does not work. I do not get an error, but the key
>> combination still does not get activated.
>
> What does C-h k C-M-k (in gnus-summary mode) tell you?

Nothing. That is why I know it is not activated.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


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

end of thread, other threads:[~2011-11-08 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 21:23 define-key Cecil Westerhof
     [not found] ` <jwvobwntl1s.fsf-monnier+gnu.emacs.help@gnu.org>
     [not found]   ` <87sjlzdltx.fsf@Compaq.site>
     [not found]     ` <jwv39dysphw.fsf-monnier+gnu.emacs.help@gnu.org>
2011-11-08 15:12       ` define-key Cecil Westerhof

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