From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: New function for gdb-ui.el? Date: Tue, 25 Oct 2005 11:12:45 +0200 Message-ID: References: <17243.21638.138477.436126@kahikatea.snap.net.nz> <17243.61878.582737.703030@kahikatea.snap.net.nz> <20051024063354.419F683AE@kahikatea.snap.net.nz> <17245.35301.465398.977861@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130246212 22288 80.91.229.2 (25 Oct 2005 13:16:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 13:16:52 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 25 15:16:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUObV-0002b1-VS for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 15:12:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUObV-0006ja-6K for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 09:12:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EULUB-0001V0-56 for emacs-devel@gnu.org; Tue, 25 Oct 2005 05:52:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUL6g-0006l5-DF for emacs-devel@gnu.org; Tue, 25 Oct 2005 05:28:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUKsH-00065e-Bo for emacs-devel@gnu.org; Tue, 25 Oct 2005 05:13:42 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EUKsD-0006U1-7I; Tue, 25 Oct 2005 05:13:37 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id E386C262879; Tue, 25 Oct 2005 11:13:35 +0200 (CEST) Original-To: Nick Roberts In-Reply-To: <17245.35301.465398.977861@kahikatea.snap.net.nz> (Nick Roberts's message of "Tue, 25 Oct 2005 14:27:01 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44806 Archived-At: Nick Roberts writes: > > I installed my patch, so now mouse-3 on a fringe breakpoint bitmap > > enables/disables the breakpoint... > > I tried to follow this to add a help-echo (and a hand pointer) to the icon in > the fringe (to copy whats already implemented for the margin). This change in > gdb-put-string didn't work for the help-echo: > > (if sprops > (add-text-properties > 0 1 > (append > '(help-echo "mouse-1: clear bkpt, mouse-3: enable/disable bkpt") > sprops) string)) > > Is it possible? Currently, no. Problem is that the redisplay engine does not check whether mouse is over a fringe bitmap, and consequently, it does not try to find the origin of that bitmap (the overlay string), so it doesn't know where to find the help-echo string either. It would be a good thing to fix this, but it is not trivial. In any case, I would put the help-echo property into the arglist to the place where you call gdb-put-string so you avoid the append here. Like this: (gdb-put-string ... 'gdb-bptno bptno 'gdb-enabled enabled 'help-echo "...") -- Kim F. Storm http://www.cua.dk