help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does `describe-function' know where the source code of the funct


From: Marcin Borkowski
Subject: Re: How does `describe-function' know where the source code of the function is?
Date: Tue, 18 Jan 2022 18:41:25 +0100
User-agent: mu4e 1.1.0; emacs 28.0.50

On 2022-01-18, at 03:51, Stefan Monnier via Users list for the GNU Emacs text 
editor <help-gnu-emacs@gnu.org> wrote:

>> question is: how does `describe-function' know where the link should
>> point to (and if it should be rendered at all)?  I skimmed its source
>
> The name of the file is stored in `load-history`.  The function
> definition itself is then found (or not) by a naive regexp search.

Thanks!  This is actually kind of fascinating - on the one hand, it
seems so fragile, and on the other hand, it works 99.99% of the time...

Best,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]