all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Josh <josh@foxtail.org>, 17180@debbugs.gnu.org
Subject: bug#17180: [PATCH] eldoc doesn't find docstrings for variable aliases
Date: Wed, 26 Jun 2019 10:35:42 -0400	[thread overview]
Message-ID: <jwvh88cqutm.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <m3ef3g1ky0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 26 Jun 2019 16:27:03 +0200")

> +  /* 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






  reply	other threads:[~2019-06-26 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-03 16:40 bug#17180: [PATCH] eldoc doesn't find docstrings for variable aliases Josh
2014-04-03 17:37 ` Stefan Monnier
2019-06-26 14:27   ` Lars Ingebrigtsen
2019-06-26 14:35     ` Stefan Monnier [this message]
2019-06-26 14:37       ` 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=jwvh88cqutm.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=17180@debbugs.gnu.org \
    --cc=josh@foxtail.org \
    --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.