all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [patch] edebug.el: emacs-lisp-mode keys
@ 2003-08-28  5:12 Karl Chen
  0 siblings, 0 replies; only message in thread
From: Karl Chen @ 2003-08-28  5:12 UTC (permalink / raw)


Hi, please consider this patch to edebug.el.  It allows changing the
emacs-lisp-mode-map prefix of C-x C-a to something else.

Karl



--- edebug.el	2003-05-31 18:26:47.000000000 -0700
+++ /usr/local/stow/emacs-cvs/share/emacs/21.3.50/lisp/emacs-lisp/edebug.el	2003-08-27 22:09:05.000000000 -0700
@@ -43,7 +43,7 @@
 ;; See the Emacs Lisp Reference Manual for more details.
 
 ;; If you wish to change the default edebug global command prefix, change:
-;; (setq edebug-global-prefix "\C-xX")
+;; (setq global-edebug-prefix "\C-xX")
 
 ;; Edebug was written by
 ;; Daniel LaLiberte
@@ -3698,11 +3698,20 @@
 
 ;;; Edebug Minor Mode
 
-;; Global GUD bindings for all emacs-lisp-mode buffers.
-(define-key emacs-lisp-mode-map "\C-x\C-a\C-s" 'edebug-step-mode)
-(define-key emacs-lisp-mode-map "\C-x\C-a\C-n" 'edebug-next-mode)
-(define-key emacs-lisp-mode-map "\C-x\C-a\C-c" 'edebug-go-mode)
-(define-key emacs-lisp-mode-map "\C-x\C-a\C-l" 'edebug-where)
+(defvar edebug-lisp-mode-prefix "\C-x\C-a"
+  "Prefix key for emacs-lisp-mode edebug commands.")
+
+(defvar edebug-lisp-mode-map
+  (let ((map (make-sparse-keymap)))
+
+    (define-key map "\C-s" 'edebug-step-mode)
+    (define-key map "\C-n" 'edebug-next-mode)
+    (define-key map "\C-c" 'edebug-go-mode)
+    (define-key map "\C-l" 'edebug-where)
+    map)
+  "Global GUD bindings for all emacs-lisp-mode buffers.")
+
+(define-key emacs-lisp-mode-map edebug-lisp-mode-prefix edebug-lisp-mode-map)
 
 
 (defvar edebug-mode-map



-- 
Karl Chen / quarl@quarl.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-28  5:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28  5:12 [patch] edebug.el: emacs-lisp-mode keys Karl Chen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.