emacs-devel
[Top][All Lists]
Advanced

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

Toggle view in gdba


From: Nick Roberts
Subject: Toggle view in gdba
Date: Mon, 18 Oct 2004 14:49:42 +1300

It can currently be toggled from the menubar but providing a keyboard
interface can only help. However, it needs a different keybinding e.g 
`C-c C-something':

   * The key sequences bound in a major mode keymap should usually
     start with `C-c', followed by a control character, a digit, or `{',
     `}', `<', `>', `:' or `;'.  The other punctuation characters are
     reserved for minor modes, and ordinary letters are reserved for
     users.

Nick

Masatake YAMATO writes:
 > Is there any strong reason that gdba doesn't provides keyboard 
 > interface for the its great functions?
 > 
 > 2004-10-18  Masatake YAMATO  <address@hidden>
 > 
 >      * progmodes/gdb-ui.el (gdb-ann3): Define a key which toggles
 >      source view and assembler view.
 > 
 > Index: lisp/progmodes/gdb-ui.el
 > ===================================================================
 > RCS file: /cvsroot/emacs/emacs/lisp/progmodes/gdb-ui.el,v
 > retrieving revision 1.24
 > diff -u -r1.24 gdb-ui.el
 > --- lisp/progmodes/gdb-ui.el 6 Oct 2004 07:20:53 -0000       1.24
 > +++ lisp/progmodes/gdb-ui.el 17 Oct 2004 15:23:05 -0000
 > @@ -169,6 +169,14 @@
 >                        (forward-char 2)
 >                        (gud-call "until *%a" arg)))
 >         "\C-u" "Continue to current line or address.")
 > +  ;;
 > +  (gud-def gud-toggle-view (cond
 > +                        ((eq gdb-selected-view 'assembler)
 > +                         (gdb-view-source-function))
 > +                        ((eq gdb-selected-view 'source)
 > +                         (gdb-view-assembler)))
 > +       "t" "Toggle source and assembler view.")
 > +                         
 >  
 >    (define-key gud-minor-mode-map [left-margin mouse-1]
 >      'gdb-mouse-toggle-breakpoint)




reply via email to

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