Eli Zaretskii writes: >> From: Spencer Baugh >> Cc: sbaugh@catern.com, 66326@debbugs.gnu.org >> Date: Thu, 19 Oct 2023 11:18:53 -0400 >> >> Eli Zaretskii writes: >> >> > It is a concern for displaying anything and everything. >> >> Could you be more specific? Is there a way to signal an error during >> startup, which won't be displayed? > > What worries me more is that there's a way to signal an error that > could crash Emacs during these early stages of startup. I ask this because I genuinely want to understand: Is it a problem for a error to be signaled during these early stages of startup? It will prevent Emacs from starting, of course, but is that a problem if this just causes Emacs to exit and print an error? >> >> So there's no need to do extra work to delay errors in warnings.el. >> > >> > Yes, there is. >> >> Can you please elaborate? What exactly will go wrong if we don't delay >> errors in warnings.el? > > See above. You seem to be summarily dismissing what I'm saying, so I > have little motivation to elaborate. My apologies, I am not intending to dismiss what you're saying, I really do want to understand the issue. I'm just keeping an open mind: I don't yet know whether the issue you're raising can actually cause a problem. Or, if there is a problem, if maybe there's a way to solve the problem other than this warning-signal-errors-during-startup variable. That's why I'm trying to understand. I'd appreciate it if you'd keep an open mind about it too. >> > Delayed and shown how? Can you show a screenshot or post the contents >> > of the buffer with the error message? >> >> With >> (setq warning-to-error-types t) >> ;;(setq warning-signal-errors-during-startup nil) ; default >> (warn "foo") >> >> The following appears in the echo area and in *Messages*: >> >> warning-to-error: Warning (emacs): foo >> Error in delayed-warnings-hook (display-delayed-warnings): (error "Warning (emacs): foo") > > Sounds like in these cases there's no reason to raise an error, since > the information is not different from a mere delayed-warning? Good point, changed to not convert to an error if the warning was delayed.