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 16:03:17 -0600 Message-ID: <87y3n7jj2y.fsf@gmail.com> References: <5A0ABD41.5040402@gmx.at> <874lpwobsa.fsf@gmail.com> <5A0C0765.2040908@gmx.at> <87375fl3z1.fsf@gmail.com> <831skzjo2o.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510783430 9246 195.159.176.226 (15 Nov 2017 22:03:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2017 22:03:50 +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 Wed Nov 15 23:03:38 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 1eF5mS-0001hp-On for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2017 23:03:36 +0100 Original-Received: from localhost ([::1]:38053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF5mZ-0005OB-Vs for ged-emacs-devel@m.gmane.org; Wed, 15 Nov 2017 17:03:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF5mM-0005MV-Oh for emacs-devel@gnu.org; Wed, 15 Nov 2017 17:03:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eF5mK-0006wK-2h for emacs-devel@gnu.org; Wed, 15 Nov 2017 17:03:30 -0500 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:33767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eF5mJ-0006vy-U7; Wed, 15 Nov 2017 17:03:28 -0500 Original-Received: by mail-io0-x230.google.com with SMTP id 134so3173465ioo.0; Wed, 15 Nov 2017 14:03:27 -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=9/0oaoIkl6rhNfZijdmOQ7i8T1fxhISdL96+g3u3VLM=; b=C0Pc9J31h6lWQVzapBz0k1+k8u05P2lmApEFTOAaHFweaDWQswsakbEhYh48wmeMrS u+CDHUeFHMUIAvODai0mQysd2liS6T0/7YU+xFGrL5G616v/x5SLmT3GR/dch/GRrVSj GMK2vyIxX3Z5XznCSSiET8NLOx+QZP4kFhrvZq0SoDLm2CuoQbk/KfLd+VA7CcXy9QWY 0c5cIdKSBJy1Jywo6UV3U1M+XpQkH+/iBnDFyoEr1RKzrv73Z4eKV/kE4SgODME0BifH ZbaaHzYAcxD2wmd150PuJusWwsquE+6jVUkI8p1ralJhaXSSgNgYzNwtgjKfipWryc3m OGTw== 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=9/0oaoIkl6rhNfZijdmOQ7i8T1fxhISdL96+g3u3VLM=; b=kzFVMvrandiMuGkrvi0UG++bh6jeZUU6+20HVPvjdtuU8gs2xhkYL9rJxVwgj/SGzt FSEwbZ8Llfv9rsFZkz4d/Ack6oPPTmArP9tuHBIbIwGCKJwB3NeZw2tibUW/38x4MhzH BxxrKi8F8ITTWyBJ1U9dXLldF8cKFU9e3hEx3wwpkpowYHuTzZMHe+mN25mweq580UiL AlOXhrKS5aiNJVHHtPZThcQVq077rnpaAwdnQpnbxG10DxgUgF+abAOP5MsSgoWKVBGZ uw2u0ISA2b/nBN1sxCdwl4iSXBLD/J7+X0i8OnedjEVHT3zoq/9a6gk4T8+ozUmWDVDw awKg== X-Gm-Message-State: AJaThX7ODws5+Xr3DgzYms4LMe1CCkSynWIwcR/Yog8KO+yndxsmwF3a I/BA51QWg5fy3ED7qZjrOEoUoQ== X-Google-Smtp-Source: AGs4zMaZ9oyMCqYK5LaRbBeqCib5ClINT/Stbj/9Lu59WCq6+NlF9nM1bFVoFouBM7cOAhBIXCadlA== X-Received: by 10.107.212.15 with SMTP id l15mr20623372iog.257.1510783406739; Wed, 15 Nov 2017 14:03:26 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id h124sm2401229ioa.33.2017.11.15.14.03.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2017 14:03:25 -0800 (PST) In-Reply-To: <831skzjo2o.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Nov 2017 22:15:27 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::230 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:220214 Archived-At: Eli Zaretskii writes: >> From: Alex >> Cc: Eli Zaretskii , tak.kunihiro@gmail.com, emacs-devel >> Date: Wed, 15 Nov 2017 13:46:42 -0600 >> >> I suppose (display-graphic-p) should be supplied as the 2nd argument to >> `tooltip-show', then? > > display-multi-frame-p is more appropriate. That appears to be an alias to `display-graphic-p'. > But I think the tooltip should not be shown at all on TTY frames, it > looks unnecessary and even silly to show the dragged text in the echo > area. That sounds better. Though I wonder if tooltips could be shown in TTY frames using a method similar to how `x-popup-menu' displays a menu in them? >> I also noticed that when dragging in an X window, the tooltip flickers >> quite a bit. Is there any easy remedy for this? > > We constantly redisplay the tooltip frame, don't we? Or does this > happen only with GTK tooltips? I don't know the details, but it appears that there are some redisplay cycles that don't show the tooltip, leading to flickering. I've only tested this with GTK tooltips so far. There's also a side issue that subsequent mouse-movement events appear to only be generated after moving a character rather than by a configurable amount of pixels, which leads to the tooltip movement being a bit jerky.