From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [lennart.borgman@gmail.com: C-h k does not catch text properies keymaps] Date: Mon, 05 Mar 2007 10:27:16 -0500 Message-ID: <87r6s3zp63.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173108530 22106 80.91.229.12 (5 Mar 2007 15:28:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 15:28:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 16:28:43 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 1HOF7C-0002K9-Vh for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 16:28:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOF7C-0008OD-Co for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 10:28:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOF5z-0007wI-5m for emacs-devel@gnu.org; Mon, 05 Mar 2007 10:27:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOF5y-0007vh-M9 for emacs-devel@gnu.org; Mon, 05 Mar 2007 10:27:26 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HOF5y-0005bN-DL; Mon, 05 Mar 2007 10:27:26 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l25FROSe009994; Mon, 5 Mar 2007 10:27:24 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l25FRGEN020212; Mon, 5 Mar 2007 10:27:16 -0500 (EST) Original-Received: from localhost (SYDNEYPACIFIC-FIVE-THIRTY-ONE.MIT.EDU [18.95.7.20]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l25FRGVU027646; Mon, 5 Mar 2007 10:27:16 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HOF5o-0000sK-00; Mon, 05 Mar 2007 10:27:16 -0500 In-Reply-To: (Richard Stallman's message of "Sun\, 04 Mar 2007 21\:56\:09 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.1 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:67363 Archived-At: Richard Stallman 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)" > Subject: C-h k does not catch text properies keymaps > To: "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 > > 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