From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps] Date: Sun, 04 Mar 2007 21:56:09 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1173063868 18266 80.91.229.12 (5 Mar 2007 03:04:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 03:04:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 04:04:22 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HO3Us-0002P8-8F for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 04:04:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO3Ur-0000lF-N1 for ged-emacs-devel@m.gmane.org; Sun, 04 Mar 2007 22:04:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HO3Oa-0005Er-RC for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:57:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HO3Oa-0005EN-Aq for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:57:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HO3OZ-0005EG-U6 for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:57:51 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HO3OZ-0001bH-76 for emacs-devel@gnu.org; Sun, 04 Mar 2007 21:57:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HO3Mv-0002oc-Ip; Sun, 04 Mar 2007 21:56:09 -0500 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67343 Archived-At: Would someone please debug this and ack? ------- Start of forwarded message ------- Date: Thu, 22 Feb 2007 15:28:14 +0100 From: "Lennart Borgman (gmail)" MIME-Version: 1.0 To: "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 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 -------