unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: David Kastrup <dak@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps]
Date: Mon, 05 Mar 2007 22:33:41 +0100	[thread overview]
Message-ID: <45EC8CB5.60307@gmail.com> (raw)
In-Reply-To: <85r6s3jsib.fsf@lola.goethe.zz>

David Kastrup wrote:
> Chong Yidong <cyd@stupidchicken.com> writes:
> 
>> Richard Stallman <rms@gnu.org> writes:
>>
>>> Would someone please debug this and ack?
>> Didn't David Kastrup rewrite the key-binding code a few months ago, to
>> handle this case?
> 
> The "problem" is more with `describe-key'.  However:
> 
>>> (defun temp-test-mouse-ctrl-h-k()
>>>   (interactive)
>>>   (switch-to-buffer-other-window (get-buffer-create "test mouse buffer"))
>>>   (goto-char (point-max))
>>>   (let ((map (make-sparse-keymap))
>>>         (txt "click here"))
>>>     (define-key map [mouse-1] '(lambda()
>>>                                  "This is the lambda for mouse-1"
>>>                                  (interactive)
>>>                                  (message "lambda for mouse-1 here")))
>>>     (define-key map [f2] '(lambda()
>>>                             "This is the lambda for f2"
>>>                             (interactive)
>>>                             (message "lambda for f2 here")))
>>>     (put-text-property 0 (length txt) 'face '(:underline t :foreground
>>> "red") txt)
>>>     (put-text-property 0 (length txt) 'mouse-face 'highlight txt)
>>>     (put-text-property 0 (length txt) 'keymap map txt)
>>>     (insert "\n" txt)
>>>     ))
>>>
>>> Do
>>>
>>>    M-x temp-test-mouse-ctrl-h-k
>>>    C-h k
>>>
>>> and then click the red underlined text with mouse button 1. It will say
>>>
>>>   <down-mouse-1> at that spot runs the command mouse-drag-region
>>>
>>> which is not correct.
> 
> Actually, it _is_ correct.  Do
> 
> M-x debug-on-entry RET mouse-drag-region RET
> 
> and you'll find that clicking at that spot indeed first runs
> mouse-drag-region.


Ok, thanks. I can see it is partly correct and useful. But the 
information about the other function, should not that be shown too?

  reply	other threads:[~2007-03-05 21:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05  2:56 [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps] Richard Stallman
2007-03-05 15:27 ` Chong Yidong
2007-03-05 21:21   ` David Kastrup
2007-03-05 21:33     ` Lennart Borgman (gmail) [this message]
2007-03-05 22:11       ` Chong Yidong
2007-03-05 22:35         ` Lennart Borgman (gmail)
2007-03-05 22:38           ` Chong Yidong
2007-03-05 23:30             ` Lennart Borgman (gmail)
2007-03-06 22:36             ` Richard Stallman
2007-03-06 22:48               ` Lennart Borgman (gmail)
2007-03-07  9:10                 ` Richard Stallman
2007-03-07 12:01                   ` Lennart Borgman (gmail)
2007-03-17 20:32                     ` Viper doesn't properly handle C-h k for mouse clicks Chong Yidong
2007-03-21 16:19                       ` Chong Yidong
2007-03-21 17:01                         ` Michael Kifer
2007-03-06 16:01       ` [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps] Richard Stallman
2007-03-06 17:25         ` Lennart Borgman (gmail)
2007-03-05 21:50   ` Richard Stallman

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=45EC8CB5.60307@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=cyd@stupidchicken.com \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).