From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: [patch] edebug.el: emacs-lisp-mode keys Date: Wed, 27 Aug 2003 22:12:08 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87brua5psn.quack@quack.hfb.quarl.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1062049659 24606 80.91.224.253 (28 Aug 2003 05:47:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2003 05:47:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Aug 28 07:47:37 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19sFdB-0006xT-00 for ; Thu, 28 Aug 2003 07:47:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19sFjx-0001Rg-00 for ; Thu, 28 Aug 2003 07:54:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sFcq-0001uC-6p for emacs-devel@quimby.gnus.org; Thu, 28 Aug 2003 01:47:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19sFUQ-0000Me-JT for emacs-devel@gnu.org; Thu, 28 Aug 2003 01:38:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19sFTQ-00086m-DD for emacs-devel@gnu.org; Thu, 28 Aug 2003 01:37:33 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sFTB-0007tz-A9 for emacs-devel@gnu.org; Thu, 28 Aug 2003 01:37:17 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19sFCp-0005Yj-00 for ; Thu, 28 Aug 2003 07:20:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19sF5h-0005Vl-00 for ; Thu, 28 Aug 2003 07:13:01 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19sF4x-0005c4-00 for ; Thu, 28 Aug 2003 07:12:15 +0200 Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Quack-Archive: 1 User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:FmPGsDjZABUvwQoFJYtzxmq4hAI= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16171 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16171 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