From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: elisp mouse programming problems Date: Wed, 20 Aug 2003 13:40:11 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7263-Wed20Aug2003134011+0300-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061399216 10978 80.91.224.253 (20 Aug 2003 17:06:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2003 17:06:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 19:06:54 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19pWQ9-00019b-00 for ; Wed, 20 Aug 2003 19:06:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19pVWA-0006UP-EH for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2003 12:09:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19pSuK-0006UT-V7 for help-gnu-emacs@gnu.org; Wed, 20 Aug 2003 09:21:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19pSGf-0001bf-Lk for help-gnu-emacs@gnu.org; Wed, 20 Aug 2003 08:41:22 -0400 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.20) id 19pQST-00019V-DW for help-gnu-emacs@gnu.org; Wed, 20 Aug 2003 06:44:53 -0400 Original-Received: from zaretski (pns03-199-157.inter.net.il [80.230.199.157]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id BFM53933; Wed, 20 Aug 2003 13:44:43 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (DJV1@Austin.RR.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11932 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11932 > From: "David Vanderschel" > Newsgroups: gnu.emacs.help > Date: Tue, 19 Aug 2003 22:17:22 -0500 > > I am having a problem with overriding the global map > for some mouse events. For example, I can bind > C-mouse-1 in a major mode mode-map for a major mode I > created. Yet when that mode is in effect, such a > mouse click still goes to mouse-select-buffer (as it > is correctly bound globally) and never reaches the > function I bound to the key for the mode. Did you try to bind C-down-mouse-1 to the same command? The Elisp manual has a chapter about mouse events that you may wish to read. > The bindings which fail to work are those for > C-mouse-1 and drag-mouse-2. They keep getting handled > by the functions which are bound to them globally. What does Emacs say when you type "C-h c" followed by one of those two mouse gestures that fail?