[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17180: [PATCH] eldoc doesn't find docstrings for variable aliases
From: |
Stefan Monnier |
Subject: |
bug#17180: [PATCH] eldoc doesn't find docstrings for variable aliases |
Date: |
Wed, 26 Jun 2019 10:35:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> + /* 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