unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15609: 24.3.50; `debug-on-entry' default when cursor is on a function name
@ 2013-10-14 16:36 Drew Adams
  2013-10-14 19:55 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2013-10-14 16:36 UTC (permalink / raw)
  To: 15609

emacs -Q

Put the cursor on any function name in the defun for that function.
E.g., put the cursor on foo here:

(defun foo (arg) "..." 42)

M-x debug-on-entry RET M-n

This is pretty much brain-dead behavior.  The default should be `foo',
not `defun'.  At the very least, `foo' should be one of the "suggestions"
available via `M-n'.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-10-09 on LEG570
Bzr revision: 114596 jan.h.d@swipnet.se-20131009185014-vynfyw4o8p5fge54
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'





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

* bug#15609: 24.3.50; `debug-on-entry' default when cursor is on a function name
  2013-10-14 16:36 bug#15609: 24.3.50; `debug-on-entry' default when cursor is on a function name Drew Adams
@ 2013-10-14 19:55 ` Stefan Monnier
  2013-10-15 14:22   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2013-10-14 19:55 UTC (permalink / raw)
  To: Drew Adams; +Cc: 15609-done

> (defun foo (arg) "..." 42)
> M-x debug-on-entry RET M-n
> This is pretty much brain-dead behavior.  The default should be `foo',

The default *is* `foo' (at least if `foo' is defined as a function).
In your recipe, the default is `defun' which is arguably not very
useful, but note that you can't use `foo' because debug-on-entry can
only be used for functions that are already defined, so `foo' would not
be a better default.


        Stefan






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

* bug#15609: 24.3.50; `debug-on-entry' default when cursor is on a function name
  2013-10-14 19:55 ` Stefan Monnier
@ 2013-10-15 14:22   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2013-10-15 14:22 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 15609-done

> The default *is* `foo' (at least if `foo' is defined as a function).
> In your recipe, the default is `defun' which is arguably not very
> useful, but note that you can't use `foo' because debug-on-entry can
> only be used for functions that are already defined, so `foo' would
> not be a better default.

Oops.  Sorry about that.





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

end of thread, other threads:[~2013-10-15 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-14 16:36 bug#15609: 24.3.50; `debug-on-entry' default when cursor is on a function name Drew Adams
2013-10-14 19:55 ` Stefan Monnier
2013-10-15 14:22   ` Drew Adams

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