From: David Kastrup <dak@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 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:21:48 +0100 [thread overview]
Message-ID: <85r6s3jsib.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87r6s3zp63.fsf@stupidchicken.com> (Chong Yidong's message of "Mon\, 05 Mar 2007 10\:27\:16 -0500")
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.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-03-05 21:21 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 [this message]
2007-03-05 21:33 ` Lennart Borgman (gmail)
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85r6s3jsib.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=cyd@stupidchicken.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.