unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: akrl@sdf.org, 44746@debbugs.gnu.org
Subject: bug#44746: 28.0.50; [feature/native-comp] Noisy "*Warnings*" buffer shown on start
Date: Thu, 25 Feb 2021 17:59:18 -0600	[thread overview]
Message-ID: <CADwFkmmMi2QvNsrMROk5CWfTRfryU-Z8ssUW0jbYbqB6h41Obw@mail.gmail.com> (raw)
In-Reply-To: <xjf5z2fhhzl.fsf@sdf.org>

Andrea Corallo <akrl@sdf.org> writes:

>> The byte compiler does not complain because when it compiles these
>> definitions happen to be present in the compilation environment (read
>> the file defining these variables was by chance already loaded).  Each
>> file should be consistent and compilable regardless the load history of
>> the Emacs used to compile (read specify the correct requires).
>>
>> Given async compilation start from a fresh Emacs it's more sensitive
>> into spotting these errors or warnings.
>>
>> Reporting these messages to the user as warnings was the result of
>> #44168.  Before #44168 these messages where only reported into the
>> *Async-native-compile-log*.
>>
>> This was requested by a number of people because more than one package
>> missed requiring the feature containing some macro definition.  This
>> indeed resulted in miscompilations with the diagnostic message being
>> "hidden" in *Async-native-compile-log*.
>>
>> Compilation units should *not* rely on the compiler environment for
>> their definitions.
>>
>> So yeah these are real warnings or errors and package developers need to
>> get them somehow.  They could manifest also on non nativecomp builds if
>> the compilation order or something else chance.  So this is not only a
>> nice clean-up but also a real fix IMO.

(Sorry I didn't reply properly the last time around.)

The above reasoning is correct and valid for any ELisp package, I think.

But most of the warnings I see are actually from my init files.  There,
I specifically do not want to `require' everything I need as that would
slow down startup.  It also places undue burden on mere users that want
to customize this or that option from their init file.

And users can and do customize pretty much anything.  This is Emacs
after all.  So we can't really auto load stuff either...

Perhaps we need some special casing to detect what is an init file and
what is a package?  I have no idea how to do that reliably though, so it
might be a pipe dream.

Or maybe this will all be fixed, for some definition of fixed, when we
flip the default?

>> I'm not sure what's the best action we can take to reduce the verbosity
>> but keep developers informed at the same time.
>>
>>   Andrea
>
> To complete this answer, ATM is possible to gate all warnings reported
> by async native compilations leveraging the
> `comp-async-report-warnings-errors' customize.
>
> Is this sufficient to close this bug or do we like to discuss this
> default?
>
> My opinion (got it from the discussion on emacs-devel) is that at least
> for now would be good to keep `comp-async-report-warnings-errors' to t
> for the reason I've explained in the mail I'm quoting.  Perhaps we could
> think about revisiting this default but probably in the future.

Yes, I agree with the plan to leave the default for now and think about
changing it closer to release.

It is your decision to close this bug or not.  As far as I'm concerned,
I think the necessary clarifications have been made and it is clear that
you are on top of things.  The other option is to mark it as blocking
Emacs 28.1 (Bug#39202) as a reminder.

Thanks again for your hard work on this branch!  I've been using it
daily since August and it is running just fine here.





  reply	other threads:[~2021-02-25 23:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20  0:50 bug#44746: 28.0.50; [feature/native-comp] Noisy "*Warnings*" buffer shown on start Stefan Kangas
2020-11-20  8:31 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-25 22:58   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-25 23:59     ` Stefan Kangas [this message]
2021-02-26  7:19       ` Eli Zaretskii
2021-02-26 17:26         ` Stefan Kangas
2021-02-26  7:17     ` Eli Zaretskii
2021-02-26 14:27       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-02-26 14:52         ` Eli Zaretskii
2021-02-26 18:56           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmmMi2QvNsrMROk5CWfTRfryU-Z8ssUW0jbYbqB6h41Obw@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=44746@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).