all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps]
@ 2007-03-05  2:56 Richard Stallman
  2007-03-05 15:27 ` Chong Yidong
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Stallman @ 2007-03-05  2:56 UTC (permalink / raw)
  To: emacs-devel

Would someone please debug this and ack?

------- Start of forwarded message -------
Date: Thu, 22 Feb 2007 15:28:14 +0100
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
MIME-Version: 1.0
To: "emacs-pretest-bug@gnu.org" <emacs-pretest-bug@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Subject: C-h k does not catch text properies keymaps
X-Spam-Status: No, score=0.5 required=5.0 tests=TO_ADDRESS_EQ_REAL 
	autolearn=no version=3.0.4

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
------- End of forwarded message -------

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

end of thread, other threads:[~2007-03-21 17:01 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
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

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.