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 5743b74d4b 1/2: Improve mouse dragging Date: Fri, 13 May 2022 13:32:54 +0300 Message-ID: <837d6poh7t.fsf@gnu.org> References: <83sfpfp5p1.fsf@gnu.org> <87sfpfx8j8.fsf@yahoo.com> <83ilqaq5o9.fsf@gnu.org> <87fsleykdp.fsf@yahoo.com> <83h75uq4id.fsf@gnu.org> <87bkw2yjeg.fsf@yahoo.com> <83ee0yq2pg.fsf@gnu.org> <8735hexoo3.fsf@yahoo.com> <83h75unf94.fsf@gnu.org> <87czghx67w.fsf@yahoo.com> <83a6blope5.fsf@gnu.org> <878rr5x46w.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="742"; 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 Fri May 13 12:34:01 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 1npScS-000AcK-Vn for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 12:34:01 +0200 Original-Received: from localhost ([::1]:43730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npScR-0007Ek-JM for ged-emacs-devel@m.gmane-mx.org; Fri, 13 May 2022 06:33:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npSbK-0006Mi-Tp for emacs-devel@gnu.org; Fri, 13 May 2022 06:32:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npSbK-00043F-JJ; Fri, 13 May 2022 06:32:50 -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=GxY3tyFFbuRMD623eNrfI2b9rzwWSS655AXE1CPO/x0=; b=awCOHj7WDezk 00wjM5yOMHgmfz9JanehymS1xiZp3Jq4p1VMuQEYovlQXrcAPof1jCiOUDdtIeiYCrG5S6wNjCcXr kmfZSWb/FQPgQVLS9eU5irmuAd5wCTtY1ZD4tYjFzoKAfxixcv+1VFOhFISkdv6GD9tN+VXxjIPHV hGoNIjZRYYBdX+aJKcinjnjbl8Iq57hrkms/vwI3mYFsxTcAP9PFe0v8xO1lFh4Xxj5Egb+WVM0C3 noF+Skrt6k0LhV6APNqCKzPLI13mUOQWjsMyzCSzIRlIF9HLIWQa3rgCxLlRnmTXSEuoSNBdRsBjT qpJOw65Co3Yy6Uj8wWTwlA==; Original-Received: from [87.69.77.57] (port=4096 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 1npSbI-0002zW-0Z; Fri, 13 May 2022 06:32:50 -0400 In-Reply-To: <878rr5x46w.fsf@yahoo.com> (message from Po Lu on Fri, 13 May 2022 15:49:27 +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:289719 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Fri, 13 May 2022 15:49:27 +0800 > > Eli Zaretskii writes: > > > This can be countermanded by using a variant of tooltip-face that > > doesn't specify the variable-pitch inheritance. > > > > In general, though, the text should have the same typeface as the > > region you are dragging, right? IOW, if the region you are dragging > > uses variable-pitch, the tooltip should use that as well. > > Yes. But in most cases the user will be dragging text, which in Emacs > is typically fixed-pitch. That is in no way a given. For example, text displayed by EWW is not fixed-pitch at all. > > I would suggest refactoring tooltip-show and possibly the 'tooltip' > > face as well, so that use of the variable-pitch attribute could be > > controlled by the caller if the tooltips are used for something other > > than their original goal. > > I will look into that. Adding a FACE argument to `tooltip-show' that > specifies the face to use for the tooltip text and colors instead of > hard-coding `tooltip' could work neatly, I think. Yes, I think so. Thanks.