From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Display feature request: gud-overlay-arrow Date: Tue, 21 Mar 2006 22:35:46 +1200 Message-ID: <17439.55042.159116.120699@kahikatea.snap.net.nz> References: <17439.13250.269939.241145@kahikatea.snap.net.nz> <17439.31049.393782.938907@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142937476 1386 80.91.229.2 (21 Mar 2006 10:37:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Mar 2006 10:37:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 21 11:37:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FLeFE-0001zQ-6R for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 11:37:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLeFK-0007Gg-03 for ged-emacs-devel@m.gmane.org; Tue, 21 Mar 2006 05:37:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FLeF2-0007Fj-GB for emacs-devel@gnu.org; Tue, 21 Mar 2006 05:37:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FLeF1-0007FX-00 for emacs-devel@gnu.org; Tue, 21 Mar 2006 05:37:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FLeF0-0007FU-S0 for emacs-devel@gnu.org; Tue, 21 Mar 2006 05:37:30 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FLeF1-0005Cm-E3 for emacs-devel@gnu.org; Tue, 21 Mar 2006 05:37:32 -0500 Original-Received: from kahikatea.snap.net.nz (p202-124-114-219.snap.net.nz [202.124.114.219]) by viper.snap.net.nz (Postfix) with ESMTP id 98125749F67; Tue, 21 Mar 2006 22:37:18 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 714FC88E8; Tue, 21 Mar 2006 22:35:47 +1200 (NZST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.85 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:51927 Archived-At: > There is no reason to define the new bitmap as "built-in". > > Just use define-fringe-bitmap to define the new bitmap in your > own Lisp code. Yes, of course. That's much simpler. > As an alternative to the hollow triangle, you could use a filled > triangle (identical to the current bitmap), but give it is less > prominent color, e.g. medium gray. > > You could call the bitmap something like "gud-inactive-arrow", and > put a face named "gud-inactive-arrow" (inherit from "fringe") on > it -- then people could customize it to their own liking. I don't really know how to put a face on a bitmap but I don't mind if someone more familiar with faces wants to play around with it. I'm more concerned that it doesn't update properly (perhaps thats what you alluded to with "post-switch-buffer-hook", but I don't think so): If you have a program that calls a procedure and you set a breakpoint on that procedure and then enter "run", the source buffer should display correctly with the solid arrow. If you now do "up", the main routine displays, again with a solid arrow, but this time it should be hollow. Dragging the mode line corrects this. If you now do "down", the called procedure displays, but with a hollow arrow. Again dragging the mode line corrects this. It seems to me that the buffer is not being re-displayed even though I have deleted (set to nil) and re-computed the marker gud-overlay-arrow-position. I think this is a display bug, and that Emacs should realise that the appearance of this buffer has changed. Although this might be hard to do, in practice. I've committed my changes to gdb-ui.el so you can see what I mean. If the re-display in Emacs can't be changed, I will back my changes out. > > It includes some minor corrections > > to the doco. > > Please install that part of the patch. Done. -- Nick http://www.inet.net.nz/~nickrob