GNU bug report logs -
#25188
Initialization of `global-edebug-map' is not safe
Previous Next
Full log
View this message in rfc822 format
Hi,
first of all, in 'edebug.el', the
;; If you wish to change the default edebug global command prefix, change:
;; (setq edebug-global-prefix "\C-xX")
is invalid because the name of the variable is actually
`global-edebug-prefix'. But that's just a minor point.
Consider
(defvar global-edebug-map
(let ((map (make-sparse-keymap)))
(define-key map " " 'edebug-step-mode)
(define-key map "g" 'edebug-go-mode)
(define-key map "G" 'edebug-Go-nonstop-mode)
(define-key map "t" 'edebug-trace-mode)
(define-key map "T" 'edebug-Trace-fast-mode)
(define-key map "c" 'edebug-continue-mode)
(define-key map "C" 'edebug-Continue-fast-mode)
;; breakpoints
(define-key map "b" 'edebug-set-breakpoint)
(define-key map "u" 'edebug-unset-breakpoint)
(define-key map "x" 'edebug-set-conditional-breakpoint)
(define-key map "X" 'edebug-set-global-break-condition)
;; views
(define-key map "w" 'edebug-where)
(define-key map "W" 'edebug-toggle-save-windows)
;; quitting
(define-key map "q" 'top-level)
(define-key map "Q" 'edebug-top-level-nonstop)
(define-key map "a" 'abort-recursive-edit)
;; statistics
(define-key map "=" 'edebug-display-freq-count)
map)
"Global map of edebug commands, available from any buffer.")
(global-unset-key global-edebug-prefix)
(global-set-key global-edebug-prefix global-edebug-map)
and imagine that somebody has customized `global-map' in such a way that
it has no "\C-x" prefix command at all. Then of course the above code
will fail. Furthermore, if one does not want to pollute the
`global-map' with `global-edebug-map', one cannot simply set
`global-edebug-prefix' to nil because this would also fail. I believe
`global-edebug-map' should support the nil value which would mean that
the above code is disabled completely.
Looking forward to fix.
Regards,
Alexander
This bug report was last modified 5 years and 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.