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 17:11:42 -0500 Message-ID: <87zm6rmjc1.fsf@stupidchicken.com> References: <87r6s3zp63.fsf@stupidchicken.com> <85r6s3jsib.fsf@lola.goethe.zz> <45EC8CB5.60307@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173133706 24161 80.91.229.12 (5 Mar 2007 22:28:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 22:28:26 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 23:28:15 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 1HOLfB-0003WS-Qw for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 23:28:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOLfB-0002Y2-6v for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 17:28:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOLez-0002Xc-1e for emacs-devel@gnu.org; Mon, 05 Mar 2007 17:28:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOLex-0002XU-Nm for emacs-devel@gnu.org; Mon, 05 Mar 2007 17:27:59 -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 1HOLex-0003Y1-F0; Mon, 05 Mar 2007 17:27:59 -0500 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l25MRoNG026544; Mon, 5 Mar 2007 17:27:57 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id l25MBg7p006388; Mon, 5 Mar 2007 17:11:43 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-FIFTY-SIX.MIT.EDU [18.19.5.56]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l25MBgXQ018041; Mon, 5 Mar 2007 17:11:42 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HOLPC-0001Xe-00; Mon, 05 Mar 2007 17:11:42 -0500 In-Reply-To: <45EC8CB5.60307@gmail.com> (Lennart Borgman's message of "Mon\, 05 Mar 2007 22\:33\:41 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.066 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:67387 Archived-At: "Lennart Borgman (gmail)" writes: >> 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. > > > Ok, thanks. I can see it is partly correct and useful. But the > information about the other function, should not that be shown too? What I see in the help buffer, following your test code, is the following; both the down-mouse and up-mouse event are reported, so I don't think there's a bug present: at that spot runs the command mouse-drag-region which is an interactive compiled Lisp function in `mouse.el'. It is bound to . (mouse-drag-region start-event) Set the region to the text that the mouse is dragged over. Highlight the drag area as you move the mouse. This must be bound to a button-down mouse event. In Transient Mark mode, the highlighting remains as long as the mark remains active. Otherwise, it remains until the next input event. If the click is in the echo area, display the `*Messages*' buffer. ----------------- up-event ---------------- at that spot runs the command (lambda nil "This is the lambda for mouse-1" (interactive) (message "lambda for mouse-1 here")) which is an interactive Lisp function. It is bound to . (anonymous) This is the lambda for mouse-1