Subject: bug#18154: 24.4.50; eval-buffer ignores debug-on-error sometimes

From: Helmut Eller <[email-masked]>
Date: Wed, 30 Jul 2014 22:55:07 +0200

Starting Emacs with:

  emacs -Q -nw \
      -eval '(setq debug-on-error t)' \
      -eval '(insert "(defun f () (push))")' \
      -f eval-buffer

only prints this message: 

  Eager macro-expansion failure: (wrong-number-of-arguments (2 . 2) 0)

This is not what I expect; Emacs should enter the debugger instead.
If "(defun f () (push))" is replaced by "(/ 1 0)" then the
debugger pops up as expected.

In GNU Emacs 24.4.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2014-07-30 on ix
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.1 (wheezy)

Configured using:
 `configure --with-jpeg=no --with-gif=no --with-tiff=no'