unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: The display margin
Date: 25 Nov 2003 23:42:57 +0100	[thread overview]
Message-ID: <m37k1oxe6m.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <16323.50586.988.440316@nick.uklinux.net>

Nick Roberts <nick@nick.uklinux.net> writes:

>  > It's not necessary to have a display margin -- as clicking on the left
>  > fringe will also generate an event to toggle the breakpoint ...
>  > provided that the buffer's local-map is setup to the
>  > gud-minor-mode-map.  
>  > 
>  > So once you click in the fringe to set a breakpoint, you can open the
>  > margin.
> 
> Thats interesting. If I try this with M-x gdb (and presumably any other
> debugger in GUD) it doesn't open the margin (as these don't currently display
> breakpoint icons) but it does set a breakpoint. However, clicking at the same
> location on the fringe in this case it doesn't seem to toggle the breakpoint
> but sets another one on the same line.
> 
> Can gdb-mouse-toggle-breakpoint be modified so that it works in the fringe
> for these debuggers too?

Of course, but that's for you to find out :-)

My current implementation of gdb-mouse-toggle-breakpoint was just a
proof of concept, so it cheats by checking whether it is clicked on an
object (blindly assuming that it's a breakpoint icon) or not.  If
there is an object, it clears the breakpoint; otherwise it sets it.

I suppose you will have to improve that so that it consults the list
of breakpoints (somehow) and determines whether there already is a
breakpoint at the current line (and deletes it).

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2003-11-25 22:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-25 16:22 The display margin Nick Roberts
2003-05-25 16:36 ` Stefan Monnier
2003-05-26 23:42   ` Nick Roberts
2003-11-23  2:08     ` Kim F. Storm
2003-11-23 22:53       ` Nick Roberts
2003-11-23 23:12         ` David Kastrup
2003-11-24  9:52           ` Kim F. Storm
2003-11-24 15:33             ` Kim F. Storm
2003-11-27 23:08           ` Kim F. Storm
2003-11-27 22:30             ` David Kastrup
2003-11-27 23:17               ` Stefan Monnier
2003-11-28 11:09               ` Kim F. Storm
2003-11-28 10:53                 ` David Kastrup
2003-11-28 14:23                   ` Thien-Thi Nguyen
2003-11-28 16:02                     ` David Kastrup
2003-11-28 17:01                       ` Thien-Thi Nguyen
2003-11-29  3:15                   ` Kim F. Storm
2003-11-29 11:37                     ` David Kastrup
2003-12-01 10:15                       ` Kim F. Storm
2003-12-01 13:08                         ` David Kastrup
2003-12-28  1:43                           ` Kim F. Storm
2003-12-29 11:54                             ` Richard Stallman
2003-11-24  0:09         ` Kim F. Storm
2003-11-25 21:11           ` Nick Roberts
2003-11-25 22:42             ` Kim F. Storm [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-28 12:47 David PONCE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37k1oxe6m.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).