diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-10-08 08:03:42 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-10-08 08:03:42 +0000 |
commit | 208adda774a774e3748190dda0300c4f66d241b1 (patch) | |
tree | 0dad14c0d1a70a75b8ce3d439e14aa1d4e538420 /lisp/gud.el | |
parent | 07974e98c7ac7b8d4a735d1d3dca058bc86096a3 (diff) | |
download | emacs-208adda774a774e3748190dda0300c4f66d241b1.tar.gz |
Move two function definitions.
Diffstat (limited to 'lisp/gud.el')
-rw-r--r-- | lisp/gud.el | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index eb0a403dabb..ad279c082d7 100644 --- a/lisp/gud.el +++ b/lisp/gud.el @@ -227,21 +227,6 @@ we're in the GUD buffer)." output)) -(defun gud-new-keymap (map) - "Return a new keymap which inherits from MAP and has name `Gud'." - (nconc (make-sparse-keymap "Gud") map)) - -(defun gud-make-debug-menu () - "Make sure the current local map has a [menu-bar debug] submap. -If it doesn't, replace it with a new map that inherits it, -and create such a submap in that new map." - (if (and (current-local-map) - (lookup-key (current-local-map) [menu-bar debug])) - nil - (use-local-map (gud-new-keymap (current-local-map))) - (define-key (current-local-map) [menu-bar debug] - (cons "Gud" (gud-new-keymap gud-menu-map))))) - (defun gud-gdb-find-file (f) (save-excursion (let ((buf (find-file-noselect f))) @@ -1477,6 +1462,22 @@ Obeying it means displaying in another window the specified file and line." (or gud-last-frame (setq gud-last-frame gud-last-last-frame)) (gud-display-frame)) + +(defun gud-new-keymap (map) + "Return a new keymap which inherits from MAP and has name `Gud'." + (nconc (make-sparse-keymap "Gud") map)) + +(defun gud-make-debug-menu () + "Make sure the current local map has a [menu-bar debug] submap. +If it doesn't, replace it with a new map that inherits it, +and create such a submap in that new map." + (if (and (current-local-map) + (lookup-key (current-local-map) [menu-bar debug])) + nil + (use-local-map (gud-new-keymap (current-local-map))) + (define-key (current-local-map) [menu-bar debug] + (cons "Gud" (gud-new-keymap gud-menu-map))))) + ;;; Code for parsing expressions out of C code. The single entry point is ;;; find-c-expr, which tries to return an lvalue expression from around point. ;;; |