aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-10-08 08:03:42 +0000
committerRichard M. Stallman1996-10-08 08:03:42 +0000
commit67580ab56650c7b8d688930dfee3ed6b37d7310a (patch)
tree7524f67dc4123b2f0261efb8a82a6281cc6d196b /lisp
parent21a6f23c3074ceec1347a86610be43457cffbb25 (diff)
downloademacs-67580ab56650c7b8d688930dfee3ed6b37d7310a.tar.gz
emacs-67580ab56650c7b8d688930dfee3ed6b37d7310a.zip
Move two function definitions.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gud.el31
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)."
227 227
228 output)) 228 output))
229 229
230(defun gud-new-keymap (map)
231 "Return a new keymap which inherits from MAP and has name `Gud'."
232 (nconc (make-sparse-keymap "Gud") map))
233
234(defun gud-make-debug-menu ()
235 "Make sure the current local map has a [menu-bar debug] submap.
236If it doesn't, replace it with a new map that inherits it,
237and create such a submap in that new map."
238 (if (and (current-local-map)
239 (lookup-key (current-local-map) [menu-bar debug]))
240 nil
241 (use-local-map (gud-new-keymap (current-local-map)))
242 (define-key (current-local-map) [menu-bar debug]
243 (cons "Gud" (gud-new-keymap gud-menu-map)))))
244
245(defun gud-gdb-find-file (f) 230(defun gud-gdb-find-file (f)
246 (save-excursion 231 (save-excursion
247 (let ((buf (find-file-noselect f))) 232 (let ((buf (find-file-noselect f)))
@@ -1477,6 +1462,22 @@ Obeying it means displaying in another window the specified file and line."
1477 (or gud-last-frame (setq gud-last-frame gud-last-last-frame)) 1462 (or gud-last-frame (setq gud-last-frame gud-last-last-frame))
1478 (gud-display-frame)) 1463 (gud-display-frame))
1479 1464
1465
1466(defun gud-new-keymap (map)
1467 "Return a new keymap which inherits from MAP and has name `Gud'."
1468 (nconc (make-sparse-keymap "Gud") map))
1469
1470(defun gud-make-debug-menu ()
1471 "Make sure the current local map has a [menu-bar debug] submap.
1472If it doesn't, replace it with a new map that inherits it,
1473and create such a submap in that new map."
1474 (if (and (current-local-map)
1475 (lookup-key (current-local-map) [menu-bar debug]))
1476 nil
1477 (use-local-map (gud-new-keymap (current-local-map)))
1478 (define-key (current-local-map) [menu-bar debug]
1479 (cons "Gud" (gud-new-keymap gud-menu-map)))))
1480
1480;;; Code for parsing expressions out of C code. The single entry point is 1481;;; Code for parsing expressions out of C code. The single entry point is
1481;;; find-c-expr, which tries to return an lvalue expression from around point. 1482;;; find-c-expr, which tries to return an lvalue expression from around point.
1482;;; 1483;;;