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: Wed, 15 Nov 2017 13:46:42 -0600 Message-ID: <87375fl3z1.fsf@gmail.com> References: <5A0ABD41.5040402@gmx.at> <874lpwobsa.fsf@gmail.com> <5A0C0765.2040908@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510775257 7856 195.159.176.226 (15 Nov 2017 19:47:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2017 19:47:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Eli Zaretskii , tak.kunihiro@gmail.com, emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 15 20:47:33 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 1eF3em-0001jI-GM for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2017 20:47:32 +0100 Original-Received: from localhost ([::1]:37552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF3et-00046p-Vm for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2017 14:47:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF3eA-00044Y-HH for emacs-devel@gnu.org; Wed, 15 Nov 2017 14:46:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eF3e5-0007Bk-Iv for emacs-devel@gnu.org; Wed, 15 Nov 2017 14:46:54 -0500 Original-Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:42756) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eF3e5-0007BF-C9; Wed, 15 Nov 2017 14:46:49 -0500 Original-Received: by mail-it0-x22c.google.com with SMTP id n134so3106193itg.1; Wed, 15 Nov 2017 11:46:48 -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:content-transfer-encoding; bh=2qCZiwqnU+02JZAkHhat8HGSlO7tWHu98ox7W4fellc=; b=NqSkT30n/eLZgPhGAD37pcbzuKRYq/+4LMXd7SOkUCB7bsfku1HSKbBb0gg8PlwiCk FrB1kUpuZVkbZGTzk+hQlQVDASVAXLjJArlIss3erbN6pJQFARwFJsy62DXMVmFnPDmC 4jcNQwHY3sXKbMYei8hKOS6T1yQkr8av3tONVbzLh2z46dpKuZmUy7U1LrDyPLmgx+4D OJ0EoKuYamLfbdPz6f0eLAoDYlM+Vu5hRkJGH25XEk1RHrVbc5c6zjuTsgFoeiizOzqG LgO+oUJ4wjrH5odEg6ufKys+S1h1Q0HlhK15wFaSB8aMxfkbrqDWLEsSD6HUn194P2DD qbfQ== 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:content-transfer-encoding; bh=2qCZiwqnU+02JZAkHhat8HGSlO7tWHu98ox7W4fellc=; b=Lh7i3Ze9JzYJ0Uv8tiB5vghnkxxuKWUKwt+5aBn9h1Aol122sACO4F0SXuePn+sBcV BNaHDIPafYP/QXDQVh98gSqq6hd4WGyFIDsfB5ojN+hKkIIwYgz/DhkBis7C+6gGRoH5 CWA/hvTJZ0a/ZvqTl6IBmo7bOijcVnl6FjUmdqT60rBdMIOhTTDDQIdNovutLRITlwhP BVwqi3oNE9WxrYKjLdptFdc0krnjmQbio1Lm7S1guzIE/VnwCWrHVuHS5sZPSuqygA0Y u7mVZ2BdVF0UvEZvS8IsnVw/67OY8+bIO40OVLkj2r3ILrCTskaD7luWNNOIy22EfVTp WjyA== X-Gm-Message-State: AJaThX7tTA4/08Rup2eWfQpIjBg59tIy7Pain7gCJynjJvU90np9iDIx enBV9bJDc1VpFPTdD80m9vjNzw== X-Google-Smtp-Source: AGs4zMazNntpejFg+b+lwXy/Hed+Ea4aEdP/qOP8YshuUKQyRAKS+vx3HpcqK01aKbZGElMo90zpew== X-Received: by 10.36.74.83 with SMTP id k80mr3879117itb.133.1510775208026; Wed, 15 Nov 2017 11:46:48 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id t69sm7372446itt.37.2017.11.15.11.46.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2017 11:46:47 -0800 (PST) In-Reply-To: <5A0C0765.2040908@gmx.at> (martin rudalics's message of "Wed, 15 Nov 2017 10:22:45 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22c 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:220210 Archived-At: martin rudalics writes: >> I imagine that this has to do with inputting a non-mouse-movement event >> before moving the mouse at all. If you use your change and press "C-g" >> before moving the mouse, then the region will still be pasted. >> >> Doing the above without your change currently results in an error due to >> `insert' using a nil `value-selection', though. So it's faulty either >> way. > > I'm missing you. Doesn't C-g deactivate the mark? Usually, but I don't think it does in this case. To be clear, it's not just C-g that does this. Here's a recipe: 1. Select a region. 2. Hold down-mouse-1 inside of this region. 3. Press any key before moving or releasing the mouse. Doing this yields an error without your change, and it pastes the region with your change. Even when this key is C-g, `mark-active' is t after step 3. >>> (3) Showing tooltips can be distracting and should be optional. Note >>> also, that usurping tooltips this way may prevent them from showing >>> interesting properties of the drop area like whether the text there >>> is read only. OTOH we might consider retaining properties of the >>> text in (non-GTK) tooltips. >> >> Also, trying to use `tooltip-show' in text-terminals using >> `xterm-mouse-mode' yields a lot of "Error while displaying tooltip" >> messages. > > That's a plain bug. =E2=80=98tooltip-show=E2=80=99 on a text terminal mu= st use the echo > area. > >> Perhaps (3) should be fixed before release as well (at least disabling >> tooltips when they can't be shown)? > > Sure. I suppose (display-graphic-p) should be supplied as the 2nd argument to `tooltip-show', then? I also noticed that when dragging in an X window, the tooltip flickers quite a bit. Is there any easy remedy for this? Removing the `mouse-set-point' call in `track-mouse' helps in some cases, but not completely.