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 00:48:27 -0600 Message-ID: <87ine8qdz8.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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510987753 9062 195.159.176.226 (18 Nov 2017 06:49:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Nov 2017 06:49:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: rudalics@gmx.at, tak.kunihiro@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 18 07:49:09 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 1eFww5-0001uO-8s for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2017 07:49:05 +0100 Original-Received: from localhost ([::1]:48973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFwwC-00020G-N8 for ged-emacs-devel@m.gmane.org; Sat, 18 Nov 2017 01:49:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFwva-00020B-OO for emacs-devel@gnu.org; Sat, 18 Nov 2017 01:48:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFwvX-0005sP-Lg for emacs-devel@gnu.org; Sat, 18 Nov 2017 01:48:34 -0500 Original-Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:42902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFwvX-0005sJ-Gm; Sat, 18 Nov 2017 01:48:31 -0500 Original-Received: by mail-it0-x235.google.com with SMTP id n134so6623914itg.1; Fri, 17 Nov 2017 22:48:31 -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=tP2fFfdWwMBIliWBU9wMBuXtH/BKKeLss7ceiojASWg=; b=GMjP8NMj9zziYeolnh0U908QWH4clcTefBHjjbWHnMEUFUqGyd4MLsxA65Ly/Av8EM ks/Bzv2hfOzw2ajSXnPpkJOuSc23Gf5UirJqB4RuFbg6T2Dl5fa4VdZkniHgNuZE801Z U5dIWUDvrIb6LqRlmXrB3d4Hb98Ca7eMwAxnTCl1R4DEfMuzyICng1xSTrs92mVIokMb YCm1uRyh0pP1x9aCepoWAIg/PlH6FKJVjzD4oBE3TriyCYBCwL5FmRr7LgJ4fUkS0KcT ZazAhNGmU6Xgy7waxnHb4zY4T4tU8O6X7nAJRJowLaQGQSOP3Jm155iMVox3K772Un/1 iHvw== 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=tP2fFfdWwMBIliWBU9wMBuXtH/BKKeLss7ceiojASWg=; b=OhuWuQPf9KMEu9saWs98dYBbmX1eRKliftH1lyi6gnbDkAJMbEZ4BFXN53uQJ24qsA mJsmZAvVmBIhwYFN/Oh2d2IN3Jn/cbD/IMA9QjPxZNESdNh3tb9EcaXNAzT/5MzAvCN2 aoIkMHd/Wv2UeKdqkjErqV7I97ZSg3I4iBljF/scjomfIgGqgF/Xxfeg8JI5vQXI5a9F lZm0ohPv6HkRr59jxzEHpRFgwEDpm7J67phvQ2DsDVjWSLlnFFGKl8i4grRcY8VWAlZA cnNh3DQqCrbw67ZgCiRvUjLW1VGX4/FCET+2PQWaj3iNWMcguNi3Z0udhg2CQk+zguLm Vb7Q== X-Gm-Message-State: AJaThX5UWJfAvog8DoXzXjysFQ8PbSXkcM/IWWVD/F3an2MVBzaxcMgQ kKgJIqHPoIRAV25Ss/Oo/mVKWg== X-Google-Smtp-Source: AGs4zMYh8I2a08EILtb0/KmTYG3lxWEpLO7LMZAIn2sczQ/0b2VbphNwIBvFizhWA7FPVeJdv+HgBQ== X-Received: by 10.36.48.82 with SMTP id q79mr10862613itq.75.1510987710474; Fri, 17 Nov 2017 22:48:30 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id w186sm2830947itd.12.2017.11.17.22.48.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Nov 2017 22:48:29 -0800 (PST) In-Reply-To: <837eupiclf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 Nov 2017 09:33:16 +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:220257 Archived-At: Eli Zaretskii writes: >> If so, do you know why? > > Because TTY menus are implemented by overwriting parts of the glyph > matrix with text that comes "out of nowhere", as far as the normal > redisplay is concerned. IOW, there's no buffer or display string or > overlay string that the display engine knows about that produce this > text. So if we let the command loop do its thing, it will eventually > enter redisplay, and the menu will be erased, partially or fully. Oh, that's unfortunate. Thanks for the explanation. >> > If that, too, disappears when GTK tooltips are not used, then maybe >> > it's due to the way we show GTK tooltips. >> >> I don't believe this one has to do with GTK. If you set `track-mouse' to >> t, then, after the first pixel movement, you will only see >> mouse-movement events when you move the mouse to a whole character >> position. This might be intentional, but I think it's poor behaviour. > > 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. It also messages after a down-click, which feels like a bug.