| Re: Toggling the same key combination between two options |
|
 |
|
 |
|
 |
|
 |
Group: gnu.emacs.help · Group Profile
Author: Nick RobertsNick Roberts Date: Sep 12, 2008 15:51
>> 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.
|