Commit 8123f8cf authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Restrict indirect lookups in Fdocumentation_property

* src/doc.c (Fdocumentation_property): Only look up indirect
variables if we've been asked for the variable documentation.
parent 01b5eb3e
......@@ -437,9 +437,11 @@ aren't strings. */)
tem = Fget (symbol, prop);
/* 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))
/* If we don't have any documentation for this symbol (and we're asking for
the variable documentation), try to see whether it's an indirect variable
and get the documentation from there instead. */
if (EQ (prop, Qvariable_documentation)
&& NILP (tem))
{
Lisp_Object indirect = Findirect_variable (symbol);
if (!NILP (indirect))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment