From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Sat, 18 Nov 2017 15:58:17 -0600 Message-ID: <877eun5jwm.fsf@gmail.com> References: <5A0ABD41.5040402@gmx.at> <874lpwobsa.fsf@gmail.com> <5A0C0765.2040908@gmx.at> <87375fl3z1.fsf@gmail.com> <831skzjo2o.fsf@gnu.org> <87y3n7jj2y.fsf@gmail.com> <83r2syi5h6.fsf@gnu.org> <87r2sx4do3.fsf@gmail.com> <837eupiclf.fsf@gnu.org> <87ine8qdz8.fsf@gmail.com> <8360a8gdk9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511042331 27291 195.159.176.226 (18 Nov 2017 21:58:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2017 21:58:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 18 22:58:44 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGB8N-0006cn-EF for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2017 22:58:43 +0100 Original-Received: from localhost ([::1]:51222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGB8U-0003hP-UC for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2017 16:58:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGB8A-0003bk-VR for emacs-devel@gnu.org; Sat, 18 Nov 2017 16:58:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGB85-0002Gs-FM for emacs-devel@gnu.org; Sat, 18 Nov 2017 16:58:28 -0500 Original-Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:37603) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGB85-0002Gi-AO; Sat, 18 Nov 2017 16:58:25 -0500 Original-Received: by mail-it0-x235.google.com with SMTP id m191so7942630itg.2; Sat, 18 Nov 2017 13:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Dykbx6X9ndS00995+3SnNzGNFsv5/lToeFM9fudOSZM=; b=fLd+Ant1EopFMlV5HIago3nRf9Bbx3CI0Rcap/gN/FiIly5BJvVFs5Jifpkk9v82g5 Yqokj9OcodGIPvLcnQUV3BpjJ1qaEif8DuxWcp6DWoEyA8S/iU7Ya7rR1JwuTwQQCea5 rnmtgzWJhHeH+jSLbHWKT3SjEeV+e07G8ZulzCKwdMXEMRBQ5hvMeJ2A9EgBROQOs8oC LMMk+KL9FXAh1HRruUuVJcVbORsGj9zVuE9AUq+OKaQ3GuQ2LZ7m6pf83rZWR74PApCC RmL3oIcgjNWRUGF0Yla4xmyYaD7dy3LCVCVf+h8Yeft+MFogmfEIisETExBZ9xN9ldCN 9RKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Dykbx6X9ndS00995+3SnNzGNFsv5/lToeFM9fudOSZM=; b=bH2XcS/tLZcbToUShJYtrzIoKKgeRzNoRoXYWCalB8Qm4Ip3HdMvBvu4RPsmfOpDvu fyVBAWBW6PrmWLp7MAqjQrG9iM5TAS2ODXkLd9RWCT0XCPXyvLasMhzjlByYhsZq5udr SJMMZDsfTl6YAjB030kTLVx6pFFOFw2IE5sjfS15Ng0raae6LvQlwkrf4trPcjTajXGn j+FY/ENoDSgrlxW1WBZvQVIMBqBaV3K7NAevDg6Z6ItrouY2UXV9gRgRiX4mk6dEXtgK b9xC+EjYhX0Xp92lIvzg3RD0wXb5G9uMvKg/jHUqc7nz3l992aKfdXdApWUlrLkMZ4ET xi8w== X-Gm-Message-State: AJaThX79nrSm64iS1EcOxkGOaRXO1AuqjN9whq9di++hIQPHuMWvBmyy 8M8Wi8OIx+YfCXwJ6sxBEe4oMQ== X-Google-Smtp-Source: AGs4zMb0jNlignfw5aUKKlMkOl0lM1qVkraWEAGbezJMXymFBidWQKnrFR6Q52dO9z3QvtZShx9vJA== X-Received: by 10.36.44.200 with SMTP id i191mr12261678iti.120.1511042304262; Sat, 18 Nov 2017 13:58:24 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id m31sm3470481iti.3.2017.11.18.13.58.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 Nov 2017 13:58:23 -0800 (PST) In-Reply-To: <8360a8gdk9.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Nov 2017 11:07:34 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220270 Archived-At: Eli Zaretskii writes: >> > Can you show a Lisp recipe to reproduce this? >> >> (setq track-mouse t) >> (setq count 0) >> >> (global-set-key [mouse-movement] >> (lambda () >> (interactive) >> (message "%d" (setq count (1+ count))))) >> >> This will only message on the first mouse-movement event (after a >> non-mouse-movement event), and after moving to a new character position. > > That's the intended behavior, see note_mouse_movement. Thanks for pointing me to it. I can understand the intention, but I think it would be useful to be able to track the mouse with every pixel change in addition to the current behaviour. On topic, it should make dragging the tooltip a lot smoother. Would such a feature be considered? I'm not sure what the best way to implement it would be; perhaps a new value for track-mouse? Then note_mouse_movement could conditionally use last_mouse_motion_{x,y}? >> It also messages after a down-click, which feels like a bug. > > Not here, it doesn't. I only see a message after a movement to > another glyph. That's odd, you can't reproduce it at all? On my end, I sometimes have to click a few times (sometimes slowly) before an erroneous message appears.