From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: How to bind a command to mouse-1 properly? Date: Wed, 12 Dec 2012 14:01:35 +0400 Message-ID: <50C855FF.7000407@yandex.ru> References: 87y5h3lo2e.fsf@yandex.ru <50C85185.3070904@gmx.at> 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 1355306530 9823 80.91.229.3 (12 Dec 2012 10:02:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 10:02:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: martin rudalics Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 11:02:24 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 1Tij8v-0006kp-TT for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 11:02:22 +0100 Original-Received: from localhost ([::1]:55116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tij8j-0001q7-5T for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 05:02:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tij8U-0001YY-4F for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 05:02:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tij8H-0005Pj-5I for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 05:01:53 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:65441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tij8G-0005P3-U4 for help-gnu-emacs@gnu.org; Wed, 12 Dec 2012 05:01:41 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so427133lbb.0 for ; Wed, 12 Dec 2012 02:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=FE1nzd2GH1jU/M66F6URUDaKgfNXPc3Iz7K5NYg49b0=; b=mJtdvUH2gAPVizOLz0Avukys/Zn0VVJeCRVflF9cvuHn8IMvDOBjEGyOx/NJGqT+0s YFmtVDCMubtSeAPG8WhhCoo0Yjvck/xaR38pFL0EXhwiWO/roSGZ4XBOtoVZ/X4Vj68i Xy3HxlNCsgvfFOmhPaoVrbq1ZBAQkRZENuYxNoN+8SGqPpeCViBUDMt77NSuQRzLgiPD kw1RwoQjno8kWTjlKDWuKwv5Cb0Gs9gX2IOjdEEAs7bpZVljY0h3L4FqkOLdA5g+f3vT xSM0231TNgnmybZXdMr+UWpMTJn3Ke1OrJcCVVm/Zt22Q0KnEdNcCRooFmG3WBbd0z/i xPjQ== Original-Received: by 10.152.106.171 with SMTP id gv11mr467703lab.26.1355306499257; Wed, 12 Dec 2012 02:01:39 -0800 (PST) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPS id t3sm6131314lbl.17.2012.12.12.02.01.36 (version=SSLv3 cipher=OTHER); Wed, 12 Dec 2012 02:01:37 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50C85185.3070904@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 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:88146 Archived-At: On 12.12.2012 13:42, martin rudalics wrote: > > If I bind a command other than `mouse-set-point' to [mouse-1], the mark > > is active after the mouse click. > > I suppose this issue was discussed in bug#9541 and in > > http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00399.html They look related, but I don't see anything helpful there. The bug discusses clicking inside scroll-margin (I'm not), and the fact the mouse-clicks set the mark is declared intended at the end. The emacs-devel link describes a problem which I don't encounter, and seems to fizzle out in the end, without resolution. (setq deactivate-mark t) works, by the way. I just don't understand why I have to do that, and if I should do something else.