Subject: Re: bug#17180: [PATCH] eldoc doesn't find docstrings for variable aliases

From: Stefan Monnier <[email-masked]>
Date: Wed, 26 Jun 2019 10:35:42 -0400

> +  /* If we don't have any documentation for this symbol, try to see whether
> +     it's an indirect variable and get the documentation from there instead. */
> +  if (NILP (tem))
> +    {
> +      Lisp_Object indirect = Findirect_variable (symbol);
> +      if (!NILP (indirect))
> +	tem = Fget (indirect, prop);
> +    }

In theory documentation-property can be used for any property, so it's
not necessarily specific to variables.  IOW I think we should only do
that if `prop` is `variable-documentation`.

        Stefan