From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 42425@debbugs.gnu.org, "João Távora" <joaotavora@gmail.com>
Subject: bug#42425: 26.3.50; Compilation warnings when compiling eldoc.el under Emacs 26.3
Date: Tue, 26 Jan 2021 01:07:23 +0100 [thread overview]
Message-ID: <871re8o91g.fsf@gnus.org> (raw)
In-Reply-To: <CAArVCkQRZO4KkE1obKAq+1HkY=Wo2H46zhv1xyMqx9VM2y23CA@mail.gmail.com> (Philipp Stephani's message of "Sun, 24 Jan 2021 10:30:37 +0100")
Philipp Stephani <p.stephani2@gmail.com> writes:
>> I think that the Emacs build should be warning free -- on our main,
>> current targets. Jumping through hoops to avoid warnings on older Emacs
>> versions normally isn't worth spending time on, in my opinion.
>
> Yeah, but here we're talking about moving a single function definition
> (eldoc--eval-expression-setup) around, which shouldn't realistically
> cause problems.
The most prominent warning was for `eldoc-documentation-strategy', which
is defined by
(eldoc--documentation-strategy-defcustom eldoc-documentation-strategy
so you then also have to move that, and
(defmacro eldoc--documentation-strategy-defcustom
and then slap and `eval-and-compile' around both (to make that warning
go away).
Which I had done before starting to think "but do we care?" and backed
out again.
>> I'm not sure I follow you here -- are you saying that eldoc doesn't work
>> on Emacs 26 because of the usages in `eldoc--eval-expression-setup'?
>
> No, the code is correct as far as I can see. The functions that would
> be unavailable in Emacs 26 won't be used in Emacs 26. But the byte
> compiler detects only checks in the form of (when (fboundp 'FUNC)
> (FUNC ...)) and similar, but not the check performed in that function.
Right, so it's also just a spurious warning.
I don't think we care this much about avoiding compilation warnings on
old Emacs versions, because it has the potential to make the code ugly
and awkward, and introduce a lot a churn that doesn't really help much.
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2021-01-26 0:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 8:12 bug#42425: 26.3.50; Compilation warnings when compiling eldoc.el under Emacs 26.3 Philipp Stephani
2021-01-22 19:58 ` Lars Ingebrigtsen
2021-01-22 20:22 ` João Távora
2021-01-23 17:35 ` Philipp Stephani
2021-01-23 17:53 ` João Távora
2021-01-23 18:31 ` Lars Ingebrigtsen
2021-01-24 9:30 ` Philipp Stephani
2021-01-26 0:07 ` Lars Ingebrigtsen [this message]
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=871re8o91g.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=42425@debbugs.gnu.org \
--cc=joaotavora@gmail.com \
--cc=p.stephani2@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.