From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 47dcf72: Fix tooltip text properties showing up in dragged text Date: Thu, 17 Mar 2022 08:49:36 +0200 Message-ID: <83pmmlgjjz.fsf@gnu.org> References: <8335jihy8v.fsf@gnu.org> <87y21aowkb.fsf@yahoo.com> <83wnguggjr.fsf@gnu.org> <87sfriovsw.fsf@yahoo.com> <83v8wegej3.fsf@gnu.org> <87a6dppgd5.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21476"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 17 07:50:40 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUjy2-0005Rx-F7 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 07:50:38 +0100 Original-Received: from localhost ([::1]:45890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUjy0-0007nz-P2 for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Mar 2022 02:50:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUjx7-00076A-LB for emacs-devel@gnu.org; Thu, 17 Mar 2022 02:49:41 -0400 Original-Received: from [2001:470:142:3::e] (port=49820 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUjx7-0000LZ-Ba; Thu, 17 Mar 2022 02:49:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0xzuZBbKge6dLIPLhKI5HCVRtisT6qjDmYdpWX6xoKQ=; b=neyaqx9PY7Xp JpuVVKYHy2Nk3muBNh3o1/VZ8ffKH8O2qQxb/5oQHOmUjDn1OEuGkcveVzzF6xEf+AfzaaFd4RmJf Rf1TugGXOpF45Isenunc6YSRcxylnxTo7FkH0FJmEEcmJzi39HeSp5V5+douxScGbdny5ia0rtyx4 2YaZVcartqKsR3PnrQtfF2GQ124JBirDuwuOFRA72Rf7jztYNpScqqcaLao1foj66kZLyfTXnTTlE bb99jNC1ePMnY9KN/8H11ETm50WdFB14piBWpwqI3h+qUfWkq7VLy6kWpMJ1eQX2TsSsh33p1c4QC Wf0CF/WK5ke7ICPsxy0mJg==; Original-Received: from [87.69.77.57] (port=4279 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUjx6-0007OE-Pu; Thu, 17 Mar 2022 02:49:41 -0400 In-Reply-To: <87a6dppgd5.fsf@yahoo.com> (message from Po Lu on Thu, 17 Mar 2022 08:33:42 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287244 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Thu, 17 Mar 2022 08:33:42 +0800 > > Eli Zaretskii writes: > > > The tooltip display in the echo area also doesn't follow the mouse, so > > it doesn't sound to me as if this case is a significant difference. > > Users who have tooltip-use-echo-area non-nil already indicate that > > they "give up" the position of the tool-tip text display on the > > screen, and don't mind to see all the tool-tips in the same place > > regardless of where the mouse is. > > I thought the reason for displaying tooltips during mouse dragging was > that it allowed to provide some visual feedback as to what text is being > dragged and where it will end up. > > Displaying tooltips in the echo area will naturally give up on the > latter. But isn't that better than not showing anything at all (which is what will happen with the current code)? Suppose we are talking about a terminal where x-show-tip doesn't work at all, like a TTY with a mouse, or when tooltip-mode is turned off? > But if you insist, I can make the changes conditional on tooltips being > displayed normally (i.e. not in the echo area). I'd rather suggest that you call tooltip-show-help-non-mode directly when tooltip-use-echo-area is non-nil. Or am I missing something?