changeset 67077:251a74c1f668

(gdb-locals-watch-keymap): Add "\r" binding to local map.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 22 Nov 2005 03:35:33 +0000
parents 8d65a4f81b32
children 2cadd1e7bd46 69e184bbba16
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Tue Nov 22 03:32:50 2005 +0000
+++ b/lisp/progmodes/gdb-ui.el	Tue Nov 22 03:35:33 2005 +0000
@@ -2234,6 +2234,9 @@
 
 (defvar gdb-locals-watch-keymap
   (let ((map (make-sparse-keymap)))
+    (define-key map "\r" '(lambda () (interactive)
+			    (beginning-of-line)
+			    (gud-watch)))
     (define-key map [mouse-2] '(lambda (event) (interactive "e")
 				 (mouse-set-point event)
 				 (beginning-of-line)