From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: The display margin Date: Sun, 23 Nov 2003 22:53:17 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16321.14941.117864.117597@nick.uklinux.net> References: <16080.60869.212521.952911@nick.uklinux.net> <200305251636.h4PGa1ll021935@rum.cs.yale.edu> <16082.42589.935105.932019@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1069628751 8461 80.91.224.253 (23 Nov 2003 23:05:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2003 23:05:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Nov 24 00:05:48 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AO3Ia-0004vN-00 for ; Mon, 24 Nov 2003 00:05:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AO3Ia-0006TE-00 for ; Mon, 24 Nov 2003 00:05:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AO4Db-0006WV-Hh for emacs-devel@quimby.gnus.org; Sun, 23 Nov 2003 19:04:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AO4DN-0006Vt-Ms for emacs-devel@gnu.org; Sun, 23 Nov 2003 19:04:29 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AO4Cr-0006Mp-CK for emacs-devel@gnu.org; Sun, 23 Nov 2003 19:04:28 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AO4Cq-0006L7-Sa for emacs-devel@gnu.org; Sun, 23 Nov 2003 19:03:56 -0500 Original-Received: from [194.247.49.252] (helo=nick.uklinux.net) by mx20.gnu.org with esmtp (Exim 4.24) id 1AO3Ds-00050Q-2V for emacs-devel@gnu.org; Sun, 23 Nov 2003 18:00:56 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id C7E2675FDE; Sun, 23 Nov 2003 22:53:17 +0000 (GMT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.2.1 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:18061 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18061 > I have just checked in fixes to improve event handling for mouse > clicks in the marginal areas and on the fringes. Events now have > additional information: > > (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)) > > AREA-OR-POS is not changed as such -- but it may now contain > left-fringe and right-fringe. > > For clicks in the text area, POS is the same as AREA-OR-POS (the > buffer position clicked on). For clicks in other areas, POS is the > buffer position of the first visible glyph on the corresponding row. > > As an example, try M-x gdba and click mouse-1 on the left margin or > fringe of a source window [it should toggle breakpoint on that line]. Kim, I like this very much. This means that at some stage the unintuitive tool bar buttons for gud-break and gud-remove could go. Well for M-x gdba, at least. Other debuggers in GUD would still need them. I will try to arrange for the source buffer to always display the margin so that this feature can be used when there are no prior breakpoints. Also the GDB command 'info line' says which lines contain code. When I have time, I will try to work this in so that breakpoints can only be set on those lines. Thanks, Nick