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: [PATCH] User-defined fringe tooltips (a request for review) Date: Sat, 13 Apr 2024 14:21:23 +0300 Message-ID: <86frvppky4.fsf@gnu.org> References: <83sf3xgimq.fsf@gnu.org> <83plyzfoe4.fsf@gnu.org> <83plyxca0t.fsf@gnu.org> <8334vrczig.fsf@gnu.org> <86frwejkxe.fsf@gnu.org> <86il12bxwj.fsf@gnu.org> <86y19pz6j9.fsf@gnu.org> <86le5pyq1p.fsf@gnu.org> <86zftxpqtg.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30615"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Vladimir Kazanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 13 13:22:14 2024 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 1rvbSY-0007lV-L5 for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Apr 2024 13:22:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvbRt-0005V6-J4; Sat, 13 Apr 2024 07:21:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvbRo-0005UX-6F for emacs-devel@gnu.org; Sat, 13 Apr 2024 07:21:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rvbRn-0007Un-Te; Sat, 13 Apr 2024 07:21:27 -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=9yogwun3nMbKv5jHi+xBbBONFzRY8TEu30fNMa9U52o=; b=W0o9fkY4dQ7S wt4W+PA3XAupz7ybt2HA+0E8bwCTfochSjptcXT9XSRgoATMVZVe097AO9CsQj0w71R+zO7+eSQMS 8+jPAIKzZFGCVCtaQZqTWu63f1qtDPdOi4IBQ8oGK//TcQ3DNCe0MblYjdlRIhJztlqnrCc/axXSm Bk3G0sg9gDSz9cQrEUuN2nS6O1HP2aNpX544/ODKzmMl3NgyqNxK24ujNvPlh7PO8JORaqpqBOWez Kd66mBWTiT8U2lntce1GLKJ0Gpsrw9Js3/6Za3WsKEw+OxQoLYhpXqpyaNTHIM3Q+Rg7a9RxMYzdl 3jcqqEoCYB3X4qNmcZ8Ztg==; In-Reply-To: (message from Vladimir Kazanov on Sat, 13 Apr 2024 10:32:01 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317707 Archived-At: > From: Vladimir Kazanov > Date: Sat, 13 Apr 2024 10:32:01 +0100 > Cc: emacs-devel@gnu.org > > Sure, here's the code I used to test tooltips. Just eval the > corresponding forms: > > (insert (propertize "foo" 'left-fringe-help "left tooltip")) > (insert (propertize "foo" 'right-fringe-help "right tooltip")) > > (overlay-put > (make-overlay (point) (1+ (point))) > 'after-string > (propertize > "lll" > 'left-fringe-help "left tooltip")) > > (overlay-put > (make-overlay (point) (1+ (point))) > 'after-string > (propertize > "rrr" > 'right-fringe-help "right tooltip")) Thanks, I've now installed the changes on the master branch.