unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: emacs-devel@gnu.org
Subject: Re: [lennart.borgman.073@student.lu.se: Keys bound to [t] does not give any help]
Date: Tue, 29 Nov 2005 07:50:25 +0100	[thread overview]
Message-ID: <438BFA31.8050808@student.lu.se> (raw)
In-Reply-To: <87ek506sn2.fsf@stupidchicken.com>

Chong Yidong wrote:

>LENNART BORGMAN <lennart.borgman.073@student.lu.se> writes:
>
>  
>
>>>>>>If you bind default keyboard keys like this
>>>>>>   (define-key bw-keymap [t]  'bw-exit-resize-mode)
>>>>>>then
>>>>>>   C-h k
>>>>>>says that the key "is undefined".
>>>>>>            
>>>>>>
>>>OK, now I get it.  But wouldn't C-h be overwritten when you bind [t]?
>>>How did you get C-h to work?
>>>      
>>>
>>I have bount it in `bw-keymap' only.
>>    
>>
>
>Does this change do what you want?
>
>*** emacs/lisp/help.el.~1.287.~	2005-11-28 22:26:04.000000000 -0500
>--- emacs/lisp/help.el	2005-11-28 22:22:13.000000000 -0500
>***************
>*** 635,641 ****
>        (when (windowp window)
>  	    (set-buffer (window-buffer window))
>  	(goto-char position))
>!       (let ((defn (or (string-key-binding key) (key-binding key))))
>  	(if (or (null defn) (integerp defn) (equal defn 'undefined))
>  	    (message "%s is undefined" (help-key-description key untranslated))
>  	  (help-setup-xref (list #'describe-function defn) (interactive-p))
>--- 635,641 ----
>        (when (windowp window)
>  	    (set-buffer (window-buffer window))
>  	(goto-char position))
>!       (let ((defn (or (string-key-binding key) (key-binding key t))))
>  	(if (or (null defn) (integerp defn) (equal defn 'undefined))
>  	    (message "%s is undefined" (help-key-description key untranslated))
>  	  (help-setup-xref (list #'describe-function defn) (interactive-p))
>
>  
>
Yes and no. It gives the correct answer for "C-h k" I believe, but not 
for "C-h c".

BTW I just saw that C-h c gives a bit different results when using [t]:

     C-h c a: a runs the command self-insert-command
     C-h c RET: <return> is undefined

  reply	other threads:[~2005-11-29  6:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28 18:52 [lennart.borgman.073@student.lu.se: Keys bound to [t] does not give any help] LENNART BORGMAN
2005-11-29  3:26 ` Chong Yidong
2005-11-29  6:50   ` Lennart Borgman [this message]
2005-11-29 15:43     ` Chong Yidong
2005-11-30 15:12       ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2005-11-24  3:58 Richard M. Stallman
2005-11-28  2:41 ` Chong Yidong
2005-11-28  6:56   ` Lennart Borgman
2005-11-28 18:50     ` Chong Yidong

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=438BFA31.8050808@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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