]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't have edebug bug out if C-x is rebound
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 25 May 2022 01:50:36 +0000 (03:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 25 May 2022 01:52:16 +0000 (03:52 +0200)
* lisp/emacs-lisp/edebug.el (edebug-global-prefix): Don't bug out
if C-x has been rebound (bug#55607).

lisp/emacs-lisp/edebug.el

index f350aef8fb15329ad9ec4c3d93662219d548da42..9dc5a1315e52f0c728f30442a5b3315b16994948 100644 (file)
@@ -3865,7 +3865,10 @@ be installed in `emacs-lisp-mode-map'.")
 
 (define-obsolete-variable-alias 'global-edebug-prefix
   'edebug-global-prefix "28.1")
-(defvar edebug-global-prefix "\^XX"
+(defvar edebug-global-prefix
+  (when-let ((binding
+              (car (where-is-internal 'Control-X-prefix (list global-map)))))
+    (concat binding [?X]))
   "Prefix key for global edebug commands, available from any buffer.")
 
 (define-obsolete-variable-alias 'global-edebug-map