all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
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: Sat, 23 Jan 2021 18:35:07 +0100	[thread overview]
Message-ID: <CAArVCkQHc79w135332dCdvZx_RZJeooLQ38bbpoRsRX4ZEKEZg@mail.gmail.com> (raw)
In-Reply-To: <878s8kyc90.fsf@gnus.org>

Am Fr., 22. Jan. 2021 um 20:58 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
> > eldoc is now a separate package that claims to support Emacs 26.3.
> > However, compiling eldoc.el results in a few warnings:
> >
> > emacs -Q -batch -l bytecomp -f batch-byte-compile eldoc.el
> >
> > In eldoc--eval-expression-setup:
> > eldoc.el:236:9:Warning: assignment to free variable
> >     ‘eldoc-documentation-strategy’
> >
> > In eldoc--supported-p:
> > eldoc.el:615:19:Warning: reference to free variable
> >     ‘eldoc-documentation-strategy’
> >
> > In eldoc--invoke-strategy:
> > eldoc.el:732:28:Warning: reference to free variable
> >     ‘eldoc-documentation-strategy’
> >
> > In end of data:
> > eldoc.el:804:1:Warning: the following functions are not known to be defined:
> >     elisp-eldoc-var-docstring, elisp-eldoc-funcall
> >
> > 1. Probably the definition of `eldoc-documentation-strategy' needs to be
> >    moved before its first use.
>
> Doing so seems easy enough, but I'm not sure how high our ambitions are
> for doing warning-free ELPA packages on older Emacs versions?  (I've
> added João to the CCs.)

I think our ambitions should be quite high. (I personally think we
should treat almost all compiler warnings as errors/bugs and fix them
whenever realistically possible.)

>
> > 2. Probably eldoc should protect against newer Elisp functions being not
> >    yet available, as calling such functions will likely result in errors
> >    at runtime.
>
> Doesn't it do that?  What functions is it using that's not available?

At least the current master version looks fine, though the byte
compiler isn't smart enough to detect that. The problematic uses are
in eldoc--eval-expression-setup.





  parent reply	other threads:[~2021-01-23 17:35 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 [this message]
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

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=CAArVCkQHc79w135332dCdvZx_RZJeooLQ38bbpoRsRX4ZEKEZg@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=42425@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=larsi@gnus.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 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.