unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps]
Date: Mon, 05 Mar 2007 10:27:16 -0500	[thread overview]
Message-ID: <87r6s3zp63.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1HO3Mv-0002oc-Ip@fencepost.gnu.org> (Richard Stallman's message of "Sun\, 04 Mar 2007 21\:56\:09 -0500")

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?

> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
> Subject: C-h k does not catch text properies keymaps
> To: "emacs-pretest-bug@gnu.org" <emacs-pretest-bug@gnu.org>
>
> Using C-h k to check mouse bindings does not work for text property keymaps.
>
> To show this do
>
>    emacs -Q
>
> then paste the following code in the *Scratch* buffer and eval it:
>
> (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.
>
>
> In GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600)
>  of 2007-02-19
>
>
> _______________________________________________
> emacs-pretest-bug mailing list
> emacs-pretest-bug@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
> ----------
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2007-03-05 15:27 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 [this message]
2007-03-05 21:21   ` David Kastrup
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

  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=87r6s3zp63.fsf@stupidchicken.com \
    --to=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 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).