help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toggling the same key combination between two options


From: Nick Roberts
Subject: Re: Toggling the same key combination between two options
Date: Sat, 13 Sep 2008 10:51:03 +1200

 > > I have F8 and F9 mapped to gud-remove and gud-break (respectively) in
 > > gud-mode.
 > > I'd like to mimic the behaviour of Visual Studio where F9 toggles
 > > between setting and removing the breakpoint. Is it possible to
 > > configure emacs so that it will toggle between the two bindings every
 > > time the key is pressed?
 > 
 > IIRC, there is function, called gdb-toggle-breakpoint, which can
 > be what you need.

This function doesn't set/clear breakoints but enables/disables them.  It
also works from the breakpoints buffer, not the source buffer.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]