unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 50508@debbugs.gnu.org
Subject: bug#50508: 27.2; find-function ignore find-function-source-path
Date: Mon, 13 Sep 2021 09:48:19 +0200	[thread overview]
Message-ID: <87ilz4j4qk.fsf@gnus.org> (raw)
In-Reply-To: <87fsubax48.fsf@posteo.net> (Thierry Volpiatto's message of "Sat,  11 Sep 2021 16:29:58 +0000")

Thierry Volpiatto <thievol@posteo.net> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> 2) If the function was defined in a .el file (as this bug report
>> describes), then Emacs knows the name of the library.  But it doesn't
>> then use `find-library-name' to locate the library, but just uses
>> load-history.  Fixing this is pretty easy -- just use
>> `find-library-name' and use that instead of the value from
>> `load-history'.
>
> Yes, this is working fine, it is what I am using actually.
> https://github.com/emacs-helm/helm/blob/master/helm-lib.el#L1230

I'm just wondering whether it makes sense to fix 2) if we're not fixing
1), and I don't think fixing 1) is a good idea (it'd make the function
massively slower).

Instead I'm wondering whether we should just fix the doc strings here to
not mention `find-function-source-path' in `find-function' (etc), so
that the doc string matches the implementation, and instead mention
`find-library-name' (in the doc string) for your use case.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-09-13  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-10 12:13 bug#50508: 27.2; find-function ignore find-function-source-path Thierry Volpiatto
2021-09-11 13:31 ` Lars Ingebrigtsen
2021-09-11 16:29   ` Thierry Volpiatto
2021-09-13  7:48     ` Lars Ingebrigtsen [this message]
2021-09-13 15:24       ` Thierry Volpiatto
2021-09-14 11:45         ` Lars Ingebrigtsen
2021-09-14 17:24           ` Thierry Volpiatto

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilz4j4qk.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50508@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).