# HG changeset patch # User Jim Blandy # Date 736400179 0 # Node ID 137117f5c44cb10213471b29e9315917e291fcca # Parent 6b17fe69a82fc5b0008f52d4bda1bafffc8d642c * 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. diff -r 6b17fe69a82f -r 137117f5c44c lisp/emacs-lisp/edebug.el --- 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)