changeset 2629:137117f5c44c

* edebug.el (edebug-display): Call the `mark' function with the FORCE argument non-nil, so that we don't get an error if the mark isn't set yet. * edebug.el (global-edebug-prefix, global-edebug-map): Add autoload cookies for these, so they are present when Emacs starts up. * edebug.el (global-edebug-map): Bind `C-x X d' to edebug-defun in this map; we can't bind it to `C-x x', as the installation instructions suggest, because that conflicts with copy-to-register.
author Jim Blandy <jimb@redhat.com>
date Mon, 03 May 1993 03:36:19 +0000
parents 6b17fe69a82f
children 47cf3a387530
files lisp/emacs-lisp/edebug.el
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/edebug.el	Mon May 03 03:35:53 1993 +0000
+++ b/lisp/emacs-lisp/edebug.el	Mon May 03 03:36:19 1993 +0000
@@ -1297,7 +1297,7 @@
 	(edebug-outside-window (selected-window))
 	(edebug-outside-buffer (current-buffer))
 	(edebug-outside-point (point))
-	(edebug-outside-mark (mark))
+	(edebug-outside-mark (mark t))
 	edebug-outside-windows		; window or screen configuration
 	edebug-outside-edebug-point	; old point in edebug buffer
 	edebug-outside-edebug-mark
@@ -1340,7 +1340,7 @@
       (if edebug-save-point
 	  (progn
 	    (setq edebug-outside-edebug-point (point))
-	    (setq edebug-outside-edebug-mark (mark))))
+	    (setq edebug-outside-edebug-mark (mark t))))
 
       (edebug-save-restriction
        (setq edebug-outside-point-min (point-min))
@@ -2209,13 +2209,15 @@
     (define-key edebug-mode-map "-" 'negative-argument)
     ))
 
-
+;;;###autoload
 (defvar global-edebug-prefix "\^XX"
   "Prefix key for global edebug commands, available from any buffer.")
 
+;;;###autoload
 (defvar global-edebug-map nil
   "Global map of edebug commands, available from any buffer.")
 
+;;;###autoload
 (if global-edebug-map
     nil
   (setq global-edebug-map (make-sparse-keymap))
@@ -2224,6 +2226,7 @@
   (global-set-key global-edebug-prefix global-edebug-map)
 
 ;;  (define-key global-edebug-map "X" 'edebug-step-through)
+  (define-key global-edebug-map "d" 'edebug-defun)
   (define-key global-edebug-map " " 'edebug-step-through)
   (define-key global-edebug-map "g" 'edebug-go)
   (define-key global-edebug-map "G" 'edebug-Go-nonstop)