From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: How to bind a command to mouse-1 properly? Date: Wed, 12 Dec 2012 13:43:36 +0100 Message-ID: <50C87BF8.8060204@gmx.at> References: 87y5h3lo2e.fsf@yandex.ru <50C85185.3070904@gmx.at> <50C855FF.7000407@yandex.ru> <50C85ABD.5060802@gmx.at> <50C869A7.5050808@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1355316236 30981 80.91.229.3 (12 Dec 2012 12:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 12:43:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 13:44:10 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TilfV-0001zt-P4 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 13:44:09 +0100 Original-Received: from localhost ([::1]:46835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TilfI-0006pJ-I9 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 07:43:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tilf7-0006p3-G4 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 07:43:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tilf1-0003eZ-Mw for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 07:43:45 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:54703) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Tilf1-0003eV-Bc for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 07:43:39 -0500 Original-Received: (qmail invoked by alias); 12 Dec 2012 12:43:38 -0000 Original-Received: from 62-47-36-179.adsl.highway.telekom.at (EHLO [62.47.36.179]) [62.47.36.179] by mail.gmx.net (mp033) with SMTP; 12 Dec 2012 13:43:38 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/hfPMHoWfhiPjaUKBoyov9JImQyqnu//FJnHeILk D9MUYCa8uxEoJ4 In-Reply-To: <50C869A7.5050808@yandex.ru> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88148 Archived-At: > If you look at my examples, the "non-working" one does exactly the same > thing as the working one. The only difference is the command name. > I guess the reason is in this mouse-drag-track code: > > ;; Find its binding. > (let* ((fun (key-binding (vector (car event)))) > (do-multi-click (and (> (event-click-count event) 0) > (functionp fun) > (not (memq fun '(mouse-set-point > mouse-set-region)))))) Probably. Ever since that change I get an active region in at least three independent contexts, one of them being Info. But I was too lazy to look into this issue yet. martin