GNU bug report logs -
#25188
Initialization of `global-edebug-map' is not safe
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25188 in the body.
You can then email your comments to 25188 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25188
; Package
emacs
.
(Mon, 12 Dec 2016 23:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 12 Dec 2016 23:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Added tag(s) easy.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Mon, 12 Jun 2017 00:36:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25188
; Package
emacs
.
(Wed, 09 Oct 2019 07:28:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 25188 <at> debbugs.gnu.org (full text, mbox):
Alexander Shukaev <emacs <at> Alexander.Shukaev.name> writes:
> (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.
I've now made it check whether global-edebug-prefix is nil before using
in Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 09 Oct 2019 07:29:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
25188 <at> debbugs.gnu.org and Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 09 Oct 2019 07:29:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 06 Nov 2019 12:24:15 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 171 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.