Re: Toggling the same key combination between two options
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Toggling the same key combination between two options         

Group: gnu.emacs.help · Group Profile
Author: Nick 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.

no comments
diggit! del.icio.us! reddit!