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: Fri, 17 Nov 2017 00:02:11 -0600 Message-ID: <87vai94f4s.fsf@gmail.com> References: <5A0ABD41.5040402@gmx.at> <874lpwobsa.fsf@gmail.com> <5A0C0765.2040908@gmx.at> <87375fl3z1.fsf@gmail.com> <5A0D54AB.8060909@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510898555 23792 195.159.176.226 (17 Nov 2017 06:02:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 06:02:35 +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 Fri Nov 17 07:02:25 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 1eFZjJ-0005OM-PX for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 07:02:21 +0100 Original-Received: from localhost ([::1]:44019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFZjR-00057Z-6F for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 01:02:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFZjK-00057T-VL for emacs-devel@gnu.org; Fri, 17 Nov 2017 01:02:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFZjH-00081g-23 for emacs-devel@gnu.org; Fri, 17 Nov 2017 01:02:23 -0500 Original-Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:34340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFZjG-00080N-SV; Fri, 17 Nov 2017 01:02:18 -0500 Original-Received: by mail-io0-x22e.google.com with SMTP id q101so7687797ioi.1; Thu, 16 Nov 2017 22:02:18 -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=Wnyfx0BSEwfgFENFLR6KURcfm9wVCZTZbqe6zE6uX/M=; b=mjHFy1jmneCvhTgZ0dtT7IeCA8HqIxkuF8qWuhKmAXZ4yqLfaDdK1zVv8F2Cm0Z/Jt 1iVCpAkBOq0i//Z3bR5EcCbawXEWSZbABFozGb4OzrbGtIUOsa5XFAwSFVGEp1zzj5qN 1+FlOFNQXphTeLy1R7whQMEPta7e+2BfEbnD3TA3KptziI9jBa3RGqnrL7WpfRdUURr3 PJxaZDX99qz+maO7Ek/iZNUbz8M43bxQL+hPJHlWKovbBNuWtXHcL1ip5ShzuxVxq8DD MM2TpAk4Do3zKw52A/yxgsX1DQJEQSB0ejCw1j14ut1cuAtIzBJ33auLvVIzslStQ39t MmJA== 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=Wnyfx0BSEwfgFENFLR6KURcfm9wVCZTZbqe6zE6uX/M=; b=ar3zMt4tEzfkeJTZ26kadrKB6zZvo4vaxsVhoZ3oqYhDF+s+vYFeK8bed5gJIHBZBo 9aJ5w+rFJx4f0Lw/2cQZAoYzlDtBPP0lTLoPvetK4YMWrgXKrxGgmsTYQl5XwpesfJZe 8l4ipVK6+wih4hnfzIXfUzGND2QULHkk1YsrnGIHCx5GqgZrBQ+Lvw3X0FB2hAVmnxKs RjE+hVC5bANf5vIIgYsthzRd7OjABMWJfdSeB7nwYmqrY+QoYEtT5Zpc2JjB2cAAxteH +RjM4T3XtDFOb5tfEt5PL+1m8Ee+Be1tdYjHBhfM3wKXmrbRRcworyEWPYG129QDaClY IWVg== X-Gm-Message-State: AJaThX7Xy2pMO0arTJYwqpguHSLKHHhP2MqS56jdcg/OU3n6pQ8+icfn bsLSC2DCe/17OF9cbFioQVF5PA== X-Google-Smtp-Source: AGs4zMbpqGpfxvXtvAfnAgiqeUo+rHa6b7KizNTOwGdBHmiAf4yWr32b1cWTcztL81swLxv9kuz6tg== X-Received: by 10.107.182.7 with SMTP id g7mr1540787iof.39.1510898537484; Thu, 16 Nov 2017 22:02:17 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id w195sm1621852ita.44.2017.11.16.22.02.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Nov 2017 22:02:16 -0800 (PST) In-Reply-To: <5A0D54AB.8060909@gmx.at> (martin rudalics's message of "Thu, 16 Nov 2017 10:04:43 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22e 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:220238 Archived-At: martin rudalics writes: >> 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, > > Something like > > mouse-drag-region: Wrong type argument: char-or-string-p, nil > > I suppose. 'value-selection' must have been nil then. Right, that's the issue. Or perhaps _an_ issue, since `kill-region' is sent nil arguments in this case. >> and it pastes the region >> with your change. Even when this key is C-g, `mark-active' is t after >> step 3. > > Not much better. But doing mouse-down and pressing another key at the > same time is somewhat obscure behavior. Somewhat obscure, but it should be handled better, right? >> 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. > > Would customizing 'tooltip-reuse-hidden-frame' change anything or are > you using GTK tooltips? It appears that it only happens with GTK tooltips.