From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Recent changes in gdb-ui.el Date: 06 Mar 2004 02:59:55 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16450.6926.750772.12628@nick.uklinux.net> <16457.4874.687630.805845@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078889624 7343 80.91.224.253 (10 Mar 2004 03:33:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Mar 2004 03:33:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 10 04:33:38 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B0uTS-0008Ua-00 for ; Wed, 10 Mar 2004 04:33:38 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B0uTR-0001Jn-00 for ; Wed, 10 Mar 2004 04:33:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B0uQl-0001q3-M1 for emacs-devel@quimby.gnus.org; Tue, 09 Mar 2004 22:30:51 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AzQBY-0007o8-4l for emacs-devel@gnu.org; Fri, 05 Mar 2004 20:01:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AzQAu-0007WW-GF for emacs-devel@gnu.org; Fri, 05 Mar 2004 20:00:52 -0500 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AzQAt-0007WT-K6 for emacs-devel@gnu.org; Fri, 05 Mar 2004 20:00:19 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 8DDC8262829; Sat, 6 Mar 2004 02:00:15 +0100 (CET) Original-To: Nick Roberts In-Reply-To: <16457.4874.687630.805845@nick.uklinux.net> Original-Lines: 41 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20287 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20287 Nick Roberts writes: > > I have just installed changed to properly support multiple overlay arrows. > > > > [Some packages attempts to do this by making overlay-arrow-position > > buffer local, but that doesn't really work well with the redisplay > > code, as it may fail to notice changes to an overlay arrow in some > > cases.] > > > > To do so, create a new variable similar to overlay-arrow-position, > > e.g. gdb-asm-overlay-arrow-position and add it to the new variable > > overlay-arrow-variable-list; like this: > > > > (push 'gdb-asm-overlay-arrow-position overlay-arrow-variable-list) > > > > Then you can use gdb-asm-overlay-arrow-position just like the > > overlay-arrow-position variable. > > I've committed this change which seems to work fine on a graphical display but > not on a text-only terminal. Roughly, I've taken code from gud-display-line > and put it in gdb-assembler-custom. In this manner, I've created a variable > called gdb-overlay-arrow-string (set to "=>") but this doesn't have the > meaning given to overlay-arrow-string. I forgot to mention this: You should use something like this to associate a string with a custom overlay-arrow variable: (put 'gdb-overlay-arrow-position 'overlay-arrow-string "=>") > > On a related note, I see that the overlay arrow is only represented as a > string on a text-only terminal. It seems to me that, now fringes can be > toggled, this should be extended to graphical displays where there is no > left-hand fringe. Yes, that makes sense. I will look at it. -- Kim F. Storm http://www.cua.dk