From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#23341: x-show-tip does not respect the value of tooltip-hide-delay, and the default tooltip timeout isn't configurable Date: Mon, 2 May 2022 14:53:57 +0000 Message-ID: References: <571AE240.2090103@live.com> <8735hu1u9o.fsf@gnus.org> <83zgk27fn6.fsf@gnu.org> <87r15ezim2.fsf@gnus.org> <83y1zm7e6q.fsf@gnu.org> <87a6c2zglu.fsf@gnus.org> <87ee1ertza.fsf@yahoo.com> <87k0b5tzqu.fsf@gnus.org> <87o80hr4nb.fsf@yahoo.com> <87zgk1poi2.fsf@gnus.org> <87h769r10l.fsf@yahoo.com> <874k29pme6.fsf@gnus.org> <87a6c1qzzk.fsf@yahoo.com> <875ympo4vy.fsf@gnus.org> <8735htqum4.fsf@yahoo.com> <87tua8py9y.fsf@yahoo.com> <871qxcps0w.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17907"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "clement.pitclaudel@live.com" , Lars Ingebrigtsen , "23341@debbugs.gnu.org" <23341@debbugs.gnu.org> To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 02 16:55:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nlXSK-0004V0-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 May 2022 16:55:20 +0200 Original-Received: from localhost ([::1]:48056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlXSJ-0008LK-EY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 May 2022 10:55:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlXS2-0008Hw-Si for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 10:55:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlXS2-00051I-J7 for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 10:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlXS2-0005eW-IC for bug-gnu-emacs@gnu.org; Mon, 02 May 2022 10:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 May 2022 14:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23341 X-GNU-PR-Package: emacs Original-Received: via spool by 23341-submit@debbugs.gnu.org id=B23341.165150324721613 (code B ref 23341); Mon, 02 May 2022 14:55:02 +0000 Original-Received: (at 23341) by debbugs.gnu.org; 2 May 2022 14:54:07 +0000 Original-Received: from localhost ([127.0.0.1]:37656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlXR9-0005cX-79 for submit@debbugs.gnu.org; Mon, 02 May 2022 10:54:07 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:34284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlXR5-0005cM-6f for 23341@debbugs.gnu.org; Mon, 02 May 2022 10:54:06 -0400 Original-Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 242CmPZT030007; Mon, 2 May 2022 14:54:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=fEceLBBt8rgWyq44NoiIM8DSIyDUwYuh4tXp0dyTs6E=; b=akvs2QMCefbTs3MOHnx0nfzmkom5c63RrgZGW7D6rujXAt7C0C191065DiDJ5DeM9zBo LnrGgGE851/Bi0+cjtpY0lqZEUgyq/tHNWhcPVrKdycrT61fBVy4/uO/TlViLyug4cBz JoJfYKgHbgZo9s7scpnLKN1l19+SXbvl6iY5lO4NQls/lQCx/K+QGqVM0n3T+7vUDQoc vPZ8wxKHbj8idE24X75CMjGzbkYUj9YITBm14biyqhEFAQSTPID93sE4pG4itXdQ76c9 /nYI3iihpWrtB5/ICjkYsBek1pcTVJYYWR8cVko8qtY0vIg9X7kL3WfkLW1XEhWFQtc1 Kg== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fruq0bf84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 May 2022 14:54:00 +0000 Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 242EklFo018032; Mon, 2 May 2022 14:53:58 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2107.outbound.protection.outlook.com [104.47.70.107]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3fruj83mfx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 May 2022 14:53:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FcuLNlkbkx5tCERkMJjbft3cjKx8BaFIgQzHq65RKuyQzrzmrRXy0v8mP8Y/aTkXolppPP7OWCyOqihPmzvohrwvbzGBEkym7aN92ebvY1Jr+KUJeJNj4A0El3rtnuudX+MEUb6LoyzRuHehDQPyox6Hroo7cXX81XGzePWJMuBGPzg7JJp9ou2Rb0mALm9pXKf3o5tezqqAsFyHsuAQYH5YuAhU55hFaQM8FdoYlGhkDP6Geg0qkOOmAVsyNcxZiLtlWJtnc/IsfZVKavtzLbWSRApDVxFK+XoZX7LBGttTalPVP0gZ5jDVHprXnACyMODCkY9Kn/+jDAaqF8mHsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fEceLBBt8rgWyq44NoiIM8DSIyDUwYuh4tXp0dyTs6E=; b=fPDnbautI+zXgbGDmRVla4GDAzWsPBZ95fRF2+AdlIO/TtFIZmZeuCwTtGbslAINROIp3DvacjZnT0aFayx1gIZ9iio8yLjezXi8OWPUSyyPeKcaRcldPeJrzvGusr8+KMbZlNFZbFDS8m9+bXIeEd+wvwvvAgnZPEbuIjWqpMw3351f8CwE1oc9RA/xzjOOa+F1R4f2D4E0SHs2uvYbc0s7SHzGG8PntaxvV/FVrOfvXBO5QOJdPpniiVk/lClzUvoyG7eKuGkdCGaTTS++SYyRS+zJZ3pldd4de5kSzzuaZGb3GtV35++t901KTlXmoNqHHsi3LJyL5s+MhrYyQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fEceLBBt8rgWyq44NoiIM8DSIyDUwYuh4tXp0dyTs6E=; b=o4WoRhVv19S6/kv0IdIBXtsZIC+XLFRKMjajpVxYFm51sxio61xWxuVjElXp+PFVpXVZaGIuN1gul7tdq0qxAPLVL4vStuQOas5+gK53b0QpGdq9sSy8tbnyNF097berRzL5EeX+K1tMpn5Z7CwpzRQwKeXH39LfenV1qKkHQso= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB4566.namprd10.prod.outlook.com (2603:10b6:510:36::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Mon, 2 May 2022 14:53:57 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123%9]) with mapi id 15.20.5206.013; Mon, 2 May 2022 14:53:57 +0000 Thread-Topic: [External] : bug#23341: x-show-tip does not respect the value of tooltip-hide-delay, and the default tooltip timeout isn't configurable Thread-Index: AQHYXc9eWaySsy62lEyfjKJbMyU9l60LpDGA In-Reply-To: <871qxcps0w.fsf@yahoo.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a2bdb44b-d386-4017-b109-08da2c4b95a3 x-ms-traffictypediagnostic: PH0PR10MB4566:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Fd7iBMwAjGN5/o/zKbriTOzX9OMFPr3j6r8XSwT1le2HFjnb4NY7GFMwbxvbWTghBUoYQSdMa0OgNYPiTodnaoFgN4oB4YVy5MYTGyRGQblI//TJiJbZPe/R4aH5UaOlpoNblUwb72aAbEvoawpx45vu7fD+OScCgi/CHkz/r8Aj0/+BQC1vEEVCHs78ED4DDEuMpJC2JlwpF4MOcG/bGzBFoIOQ28dJNPWmrKQ7ou+qLP8BmEnz2Udsn1VA44w4bQ1KICE8/2hHX+TxuSIT8G9X96VPqJFwO5E9Jl7y0GXZT5gKdO3JWfp1CB2lPtf4wISPzlnX/B6P7oLVwV6sZYZR42Po1QWAzpAkQdZuer0WPLSVnn319C7Ifhs3itzZmRXMOWcXbLAfg6uoodvKEdRRrouc7aOEFIWy/7prmJ0KZmn8erjkyqAv2hSypDX7p3hYMNWbJmlYetIlptzhAfXEjgV0zXWr74z4n8qXwJLriBty6U+uqrhVjj/So1Knnu1/4yjDqZsPTo+jsNK+d7sgjAFrTmTYIeH/9n82wMZaItw0aNCMhOZW9oRdCGPsCPDCtWDB1bRQp12TleHE7NJNBZnGfgBlnyKG2uTjRDhR9knXfO22PVARNX+527l5p2r3OFU2SIqohlWb5zMkuiWfkI9mVV0HMfLrf7QLmDU+1yjnAAu48sw5tBH3TV+hr7toet3kbZCfIGfc8s51UQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6916009)(316002)(54906003)(38070700005)(38100700002)(33656002)(55016003)(122000001)(66476007)(66556008)(8676002)(4326008)(66446008)(64756008)(66946007)(76116006)(83380400001)(7696005)(71200400001)(44832011)(6506007)(9686003)(5660300002)(26005)(86362001)(508600001)(2906002)(186003)(8936002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Zaf0+ClgIOU3hhbgWh/wdylEMM6AsF4dDETZBR5CKZ+bwebA2MDh3wDsjvoCNqzscX6k2Tr8pAuzyT7Km9hAURA3c59sptWeEKWiRXbsH26WXDBUNsYuV4olTywE+3bh0+X37/j4a9g0Cv96orU+2cfIVbkO1cuykRo4UdLjWf5BjPRNDKLCNIb4dPeZUrgBkHFkgzqNP5swT/bWfnZUxEAgqV1goYA9i5MQeHNrj4k5YT9kJY2TPDZDlIpVEpig9u56d/Qul7NX8H827cO8uJ74Dtx8S012AiojTFUuWVN1OQk/Ms7FlvWnhFZksKSS5sLr3JSOAlu6yIl30RLmx/Lmn994s0lIrh2/vCpDkD9nIJJ8w5nEOqobGeOalgkJ4Gehs0gKn9UfO0JH6alrkIIz8dqBl7OUhaZwel57u2DHKz7CSQR7omS62ZpfqDYPt6ICacl3BAr0d5iNjJ9aINtpHIKalMSbkRzf4NIsuIzcksfBbcl007VMHJk/lAnPXhuygdlfNosgZzM8IBRVEPCtzjQrW8SiEi98bA1PVJdSJf8/DIUV6XAlAUkxYWyqJ+61egLLyWWhGYEg4E37KCKUefxDtuwL4BZjkXCXKgdo6Mr6EpdM8CetCuHtauZSmhtfzrkIopUDM1UFzX6yOa94BsoOvfD13ujALnhxQFR1TozVTvPzQd5TMfIBezJNyH5JZBWMFTMof51YHy3Mnxs3cFKowBIva/+RN4Uuq8PVNt1cKehSK3MGn5 jfUCIA78pePY9BakId4w9DSz+kLQAyV0oYR3xJWUE0KmBrZSOO9jlmwpxRuQTfIBq7kPcYSKmlBRwMevp8Vvpbu3Ai2uaq7n9b X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2bdb44b-d386-4017-b109-08da2c4b95a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2022 14:53:57.0892 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wTAwxeRRJyftaiVayNrXegFxVfuzMaNnl4QLuMVHgT+2S8YcTEsmx2bCDb6H4ZraxcDLVZpi+HKvOULLIqd7UQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4566 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-05-02_04:2022-05-02, 2022-05-02 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 suspectscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205020116 X-Proofpoint-ORIG-GUID: o5W0q5ancXNcroT2drtveSax6wWGx9A3 X-Proofpoint-GUID: o5W0q5ancXNcroT2drtveSax6wWGx9A3 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231260 Archived-At: > > Lots of things can happen unpredictably with > > frames, per different window managers. >=20 > Not if you use `tooltip-show', I think. That's like saying "not if you use `forward-char'. `tooltip-show' doesn't let you do what `x-show-tip' does. That's what this discussion is about (IMHO). > > And invisible frames are used seldom - so > > much so that Emacs has even (misguidedly) > > toyed with the idea of getting rid of their > > support. > > > > But pray, please do elaborate? What's so > > special about tooltips here? >=20 > Tooltips are made transient for the frame they are displayed in. > Compositing managers look at the WM_TRANSIENT_FOR property on tooltip > frames (which are a special kind of frame created without any widgets > that are always override redirect) to determine how to display the > tooltip. Those frames are also displayed outside the usual redisplay > machinery, and only once, inside `x-show-tip'. If `tooltip-show' can use `x-show-tip' then so can user code. That's the point. Whatever guidance applies to _how_ `tooltip-show' uses `x-show-tip' - whatever super-careful, wise, limited use is deemed necessary or desirable, can be made just as well by user code. Make that guidance explicit, and please be sure to make clear just what is really necessary and what is extra, helpful, nice-to-know guidance. That will add, not subtract, from Emacs. > > Please consider documenting it, whatever > > it is - especially the "dangerous" bit. > > > > And if this happens with tooltips then what > > makes you think it's limited to the use of > > `x-show-tip'? Just what is `x-show-tip'- > > specific? >=20 > That cannot happen with `tooltip-show'. See above. If that's the case then it means that `tooltip-show' uses `x-show-tip' in a particular way. Document that guidance. That's all that's needed (if really needed). > > Some things? In 'params'? (PARMS maybe?) > > > > Any crash is an Emacs bug (in C code). Needs to > > be fixed, regardless of who's authorized to use > > `x-show-tip'. >=20 > So crashing on some kinds of invalid bytecode is > an Emacs bug, for that same reason? Emacs has long held that _any_ crash is an Emacs bug, yes. If nothing else, Emacs should catch the error and handle it more gracefully than an out-and-out crash. > > If there are problems/gotchas/bugs/mysteries wrt > > PARMS, or anything else your vague response is > > meant to intimate, please fix or document them. >=20 > `tool-bar-position' is one example of such a problematic frame > parameter, and there are many others, but I never enumerated all of > them. Enumerate them. Or not, if you can't. That's the proper approach. What's good for the `tooltip-show' goose's use of `x-show-tip' is also good for user uses of `x-show-tip'. > Lisp code should _never_ manipulate tooltip frames. > They are special on > the C level in that many assumptions (such as there being a GTK or Xt > widget for each frame), or that the frame has at least one window that > isn't a "pseudo window" do not hold. This is also why we bend over > backwards to not make tooltip frames visible to Lisp inside frame lists > and probably the display-buffer stuff as well. Again, whatever is sane for `tooltip-show's use of `x-show-tip' is just as sane for user use of it. The same caveats and guidance, if any, apply - equally. There's nothing magical about Lisp function `tooltip-show'. > > There's no difference in this regard between what > > "core Emacs developers" need (and need to know) > > when using `x-show-tip' and what other Emacs > > developers need (i.e., users who develop 3rd-party > > libraries) need. > > > > Fix it or document it. That's the proper response > > for something useful that (you think) has problems. >=20 > It is documented. The doc string says: >=20 > This is an internal function; Lisp code should call `tooltip-show'. That's misguided. Let's not promulgate the old user/developer divide from the 1960s. That's not doc of how to use it. If that's the only thing you can say, then remove its use from `tooltip-show' - the same considerations apply. If you have something useful to say, about how `x-show-tip' should (let only must) be used, then provide users with that guidance. That's what "fix it or document it" means.