From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Pogonyshev <pogonyshev@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Backtrace printing in batch mode ignores all customizations
Date: Sat, 04 Jan 2020 17:44:36 -0500 [thread overview]
Message-ID: <jwvlfqm7sko.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAG7BpaqeM5xoHxb=E3eFMUS6kdNLBb6W3Ge1sFjQhVgUf+nJqQ@mail.gmail.com> (Paul Pogonyshev's message of "Mon, 16 Dec 2019 23:34:42 +0100")
> + ;; We're in the initial-frame (where `message' just outputs to stdout) so
> + ;; there's no tty or GUI frame to display the backtrace and interact with
> + ;; it: just dump a backtrace to stdout.
> + ;; This happens for example while handling an error in code from
> + ;; early-init.el with --debug-init.
> + (message "Error: %S" args)
> [...]
>
> The condition seems to always be true when `noninteractive' is t.
The `noninteractive` case is indeed not the one for which this code
was added. I guess we can conditionalize it on `noninteractive`, but it
would be worthwhile looking at the code which causes the
`noninteractive` case (without the above "failsafe") to dump
a stacktrace on stderr, to see if the two could be unified?
Stefan
next prev parent reply other threads:[~2020-01-04 22:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 22:34 Backtrace printing in batch mode ignores all customizations Paul Pogonyshev
2019-12-21 9:22 ` Eli Zaretskii
2019-12-21 17:07 ` Paul Pogonyshev
2020-01-04 22:44 ` Stefan Monnier [this message]
2020-01-04 23:12 ` Paul Pogonyshev
2020-01-04 23:31 ` Stefan Monnier
2020-01-12 15:49 ` Paul Pogonyshev
2020-01-13 19:23 ` Stefan Monnier
2020-01-14 15:41 ` Eli Zaretskii
2020-01-14 17:51 ` Paul Pogonyshev
2020-01-14 19:57 ` Eli Zaretskii
2020-01-14 20:30 ` Stefan Monnier
2020-01-15 15:58 ` Eli Zaretskii
2020-01-15 17:34 ` Stefan Monnier
2020-01-15 17:54 ` Eli Zaretskii
2020-01-15 18:59 ` Stefan Monnier
2020-01-25 14:32 ` Paul Pogonyshev
2020-01-28 2:52 ` Richard Stallman
2020-01-27 3:55 ` Stefan Monnier
2020-01-29 11:09 ` Paul Pogonyshev
2020-01-31 14:14 ` Eli Zaretskii
2020-01-31 18:10 ` Paul Pogonyshev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlfqm7sko.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=pogonyshev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.