Subject: bug#12068: 24.1; customizing debug-on-error to nil disables --debug-init

From: Glenn Morris <[email-masked]>
Date: Thu, 02 Aug 2012 19:28:47 -0400

Maybe you mean, put the error after the customization section.

The custom block does get put at the end of .emacs when first created.

An equivalent scenario would be:

cat ~/.emacs

(setq debug-on-error nil)
(error "foo")

There's no good solution to that other than "don't do that then". Except
maybe have a really-debug-on-error variable that overrides
debug-on-error and is only settable by --debug-init. But it seems like
pointless complexity to me. I assume debug-on-error is customizable for
people who want to set it non-nil. I can't imagine many will customize
it to nil.