From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Fri, 17 Nov 2017 10:58:57 -0500 Message-ID: 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 1510934368 27204 195.159.176.226 (17 Nov 2017 15:59:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 17 Nov 2017 15:59:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 17 16:59:21 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 1eFj32-0006fC-M2 for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 16:59:20 +0100 Original-Received: from localhost ([::1]:46570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFj3A-0007u6-2q for ged-emacs-devel@m.gmane.org; Fri, 17 Nov 2017 10:59:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFj34-0007u0-J1 for emacs-devel@gnu.org; Fri, 17 Nov 2017 10:59:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFj2z-0006ME-Oc for emacs-devel@gnu.org; Fri, 17 Nov 2017 10:59:22 -0500 Original-Received: from [195.159.176.226] (port=43991 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFj2z-0006Kh-Hz for emacs-devel@gnu.org; Fri, 17 Nov 2017 10:59:17 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eFj2k-0005ck-4B for emacs-devel@gnu.org; Fri, 17 Nov 2017 16:59:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:vm9PDPT+AI2Tx26ky5CuIby/LnM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:220251 Archived-At: >> >> 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? [...] > 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. If we really wanted, we could implement some kind of tooltips in a similar way, tho: - overwrite parts of the glyph matrix - register some "pre-redisplay hook" - return to the normal command loop the "pre-redisplay hook" would then remove the tooltip-overwrite from the glyph matrix before the redisplay bumps into it. Then if we want the tooltip to last longer than "until the next redisplay" (which sounds rather likely), we'd need some way to re-add the tooltip after the redisplay is done. Sounds pretty ugly/messy, obviously. A more general solution could be to add two more glyph matrices (one for overlay thingies like menus and tooltips, and another that combines the "normal" glyph matrix with the one for overlay thingies (and it's this one which is then sent to be displayed)). Stefan