unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55607: 28.1; C-x is hardcoded, but should use the keymap ctl-x-map
@ 2022-05-24  6:22 Teika Kazura
  2022-05-25  1:50 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Teika Kazura @ 2022-05-24  6:22 UTC (permalink / raw)
  To: 55607

Hi, the emacs world.

At least in the file emacs-28.1/lisp/emacs-lisp/edebug.el, the prefix
key C-x is hardcoded. An error will be produced if you bind C-x to
something else.  Instead `ctl-x-map' should be respected.

How to reproduce it:
$ emacs -Q -l foo.el
------------------------------------------------------------------------

The content of foo.el:
------------------------------------------------------------------------
(setq debug-on-error t)
(global-set-key "\C-x" 'fill-paragraph) ; or whatever
(require 'edebug)
------------------------------------------------------------------------

Sorry that I fail to report exactly; if you don't set
(setq debug-on-error t), emacs can start without an error, only
showing a message in the minibuffer and in *Messages*. (However with my
personal configuration, it produces an error and emacs initialization
fails due to this problem, *without* debug-on-error. "edebug" is
require-ed from the package "helm", more precisely from the file
helm-eval.el .)

I cannot write a patch for this; I don't understand the code in edebug.el.

In fact, there seem to be other files with this problem. but I neglect
them this time. And it is not the only prefix keymap. (See the section
"prefix keymaps" in the emacs manual.)

Another minor issue: In edebug.el, the lines 43-44 read:
------------------------------------------------------------------------
;; If you wish to change the default edebug global command prefix, change:
;; (setq global-edebug-prefix "\C-xX")
------------------------------------------------------------------------
but `global-edebug-prefix' is obsolete since 28.1 .

Thank you very much indeed for developing Emacs.
Best regards.

# BTW 10 years ago I reported a similar problem:
#  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10566
# Maybe not few aren't aware of prefix keymaps. ;-)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#55607: 28.1; C-x is hardcoded, but should use the keymap ctl-x-map
  2022-05-24  6:22 bug#55607: 28.1; C-x is hardcoded, but should use the keymap ctl-x-map Teika Kazura
@ 2022-05-25  1:50 ` Lars Ingebrigtsen
  2022-05-25 12:12   ` Teika Kazura
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-25  1:50 UTC (permalink / raw)
  To: Teika Kazura; +Cc: 55607

Teika Kazura <teika@gmx.com> writes:

> At least in the file emacs-28.1/lisp/emacs-lisp/edebug.el, the prefix
> key C-x is hardcoded. An error will be produced if you bind C-x to
> something else.  Instead `ctl-x-map' should be respected.
>
> How to reproduce it:
> $ emacs -Q -l foo.el
> ------------------------------------------------------------------------
>
> The content of foo.el:
> ------------------------------------------------------------------------
> (setq debug-on-error t)
> (global-set-key "\C-x" 'fill-paragraph) ; or whatever
> (require 'edebug)
> ------------------------------------------------------------------------

[...]

> Another minor issue: In edebug.el, the lines 43-44 read:
> ------------------------------------------------------------------------
> ;; If you wish to change the default edebug global command prefix, change:
> ;; (setq global-edebug-prefix "\C-xX")
> ------------------------------------------------------------------------
> but `global-edebug-prefix' is obsolete since 28.1 .

I've now fixed this in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#55607: 28.1; C-x is hardcoded, but should use the keymap ctl-x-map
  2022-05-25  1:50 ` Lars Ingebrigtsen
@ 2022-05-25 12:12   ` Teika Kazura
  0 siblings, 0 replies; 3+ messages in thread
From: Teika Kazura @ 2022-05-25 12:12 UTC (permalink / raw)
  To: 55607

The bug was fixed in the commit abd3411827, in the master branch:
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=abd3411827d77edee6f2a38d9fc1c3a61fba88ed

Thanks Lars for a very quick action.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-25 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24  6:22 bug#55607: 28.1; C-x is hardcoded, but should use the keymap ctl-x-map Teika Kazura
2022-05-25  1:50 ` Lars Ingebrigtsen
2022-05-25 12:12   ` Teika Kazura

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).