Subject: 24.3.50; `debug-on-entry' default when cursor is on a function name
From: Drew Adams <[email-masked]>
To: [email-masked]
Date: Mon, 14 Oct 2013 09:36:23 -0700 (PDT)
List-Id: <debbugs-submit.debbugs.gnu.org>

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 [email-masked]
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'