unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
@ 2012-03-15  5:16 Michael Heerdegen
  2012-03-15  9:35 ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2012-03-15  5:16 UTC (permalink / raw)
  To: 11018

Hi,

in emacs -Q, open an elisp file and enable `view-mode'.

Now, instrument any defun in this buffer and eval something that
causes that function to be called.

You enter an edebug session, but nearly all edebug bindings won't work
because they trigger `view-mode' bindings in this buffer instead.


In GNU Emacs 24.0.94.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3)
 of 2012-03-12 on zelenka, modified by Debian
 (emacs-snapshot package, version 2:20120312-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11103901
Configured using:
 `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.94/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.94/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/'
 '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes'
 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'
 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''






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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2012-03-15  5:16 bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode Michael Heerdegen
@ 2012-03-15  9:35 ` Andreas Schwab
  2012-03-16  1:48   ` Michael Heerdegen
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2012-03-15  9:35 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 11018

Michael Heerdegen <michael_heerdegen@web.de> writes:

> You enter an edebug session, but nearly all edebug bindings won't work
> because they trigger `view-mode' bindings in this buffer instead.

Every edebug binding is also available under the C-x X prefix.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2012-03-15  9:35 ` Andreas Schwab
@ 2012-03-16  1:48   ` Michael Heerdegen
  2012-03-16  2:47     ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Heerdegen @ 2012-03-16  1:48 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 11018

Andreas Schwab <schwab@linux-m68k.org> writes:

> > You enter an edebug session, but nearly all edebug bindings won't work
> > because they trigger `view-mode' bindings in this buffer instead.
>
> Every edebug binding is also available under the C-x X prefix.

Yes, that's `global-edebug-prefix'.  In the header, there is a typo,
here:

;; If you wish to change the default edebug global command prefix, change:
;; (setq edebug-global-prefix "\C-xX")
         -------------      

There is no binding for `edebug-next-mode' (i.e. n in `edebug-mode-map')
in `global-edebug-map' (why?).

I would have to type C-x X SPC C-x X SPC ... to step through the code -
a pain in the ass.

I don't have an elegant solution for this problem.  It is not a problem
especially with `view-mode'.  All minor mode bindings shadow
`edebug-mode-map' which is used as local map.

If there was an `edebug-mode-hook', then the user could deactivate
interfering minor modes there.


Michael.





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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2012-03-16  1:48   ` Michael Heerdegen
@ 2012-03-16  2:47     ` Stefan Monnier
  2012-03-16  3:41       ` Stefan Monnier
  2019-10-20  7:56       ` Lars Ingebrigtsen
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Monnier @ 2012-03-16  2:47 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: Andreas Schwab, 11018

> I don't have an elegant solution for this problem.  It is not a problem
> especially with `view-mode'.  All minor mode bindings shadow
> `edebug-mode-map' which is used as local map.

Maybe it should be installed with higher precedence, by virtue of
being transient.

> If there was an `edebug-mode-hook', then the user could deactivate
> interfering minor modes there.

That could be an alternative, but then you'd probably want to re-enable
it when leaving edebug mode, which would enable&disable it very often
and could be difficult to implement efficiently.


        Stefan





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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2012-03-16  2:47     ` Stefan Monnier
@ 2012-03-16  3:41       ` Stefan Monnier
  2019-10-20  7:56       ` Lars Ingebrigtsen
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2012-03-16  3:41 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: Andreas Schwab, 11018

> That could be an alternative, but then you'd probably want to re-enable
> it when leaving edebug mode, which would enable&disable it very often
> and could be difficult to implement efficiently.
                                      ^^^^^^^^^^^
                                      reliably
Sorry, wasn't thinking right,


        Stefan





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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2012-03-16  2:47     ` Stefan Monnier
  2012-03-16  3:41       ` Stefan Monnier
@ 2019-10-20  7:56       ` Lars Ingebrigtsen
  2019-10-20 14:50         ` Stefan Monnier
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-20  7:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Michael Heerdegen, Andreas Schwab, 11018

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I don't have an elegant solution for this problem.  It is not a problem
>> especially with `view-mode'.  All minor mode bindings shadow
>> `edebug-mode-map' which is used as local map.
>
> Maybe it should be installed with higher precedence, by virtue of
> being transient.

That sounds like a good idea.  How is the precedence of minor mode maps
determined?

Hm...  I see that minor-mode-overriding-map-alist exists -- should
edebug put its keymap there instead of minor-mode-map-alist?

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





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

* bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2019-10-20  7:56       ` Lars Ingebrigtsen
@ 2019-10-20 14:50         ` Stefan Monnier
  2019-10-20 15:08           ` bug#15451: " Lars Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2019-10-20 14:50 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Michael Heerdegen, Andreas Schwab, 11018

>>> I don't have an elegant solution for this problem.  It is not a problem
>>> especially with `view-mode'.  All minor mode bindings shadow
>>> `edebug-mode-map' which is used as local map.
>>
>> Maybe it should be installed with higher precedence, by virtue of
>> being transient.
>
> That sounds like a good idea.  How is the precedence of minor mode maps
> determined?
>
> Hm...  I see that minor-mode-overriding-map-alist exists -- should
> edebug put its keymap there instead of minor-mode-map-alist?

That might work,


        Stefan






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

* bug#15451: bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode
  2019-10-20 14:50         ` Stefan Monnier
@ 2019-10-20 15:08           ` Lars Ingebrigtsen
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-20 15:08 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Michael Heerdegen, 15451, Andreas Schwab, 11018

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Hm...  I see that minor-mode-overriding-map-alist exists -- should
>> edebug put its keymap there instead of minor-mode-map-alist?
>
> That might work,

That seemed to work -- I bound it in edebug--recursive-edit, so it
shouldn't mess anything up after exiting edebug.

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





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

end of thread, other threads:[~2019-10-20 15:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-15  5:16 bug#11018: 24.0.94; Edebug: bindings shadowed by view-mode Michael Heerdegen
2012-03-15  9:35 ` Andreas Schwab
2012-03-16  1:48   ` Michael Heerdegen
2012-03-16  2:47     ` Stefan Monnier
2012-03-16  3:41       ` Stefan Monnier
2019-10-20  7:56       ` Lars Ingebrigtsen
2019-10-20 14:50         ` Stefan Monnier
2019-10-20 15:08           ` bug#15451: " Lars Ingebrigtsen

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).