unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How does `describe-function' know where the source code of the function is?
@ 2022-01-17  4:03 Marcin Borkowski
  2022-01-17  4:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Marcin Borkowski @ 2022-01-17  4:03 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

If I define a function with `defun', C-h f gives me a link to the source
code of the function.  I defined a macro defining a function (its
expansion contained a `defun'), and C-h f'ing that function did /not/
give me that link.  I tried saying M-: (symbol-plist 'my-function), but
I haven't seen any property that would point to the source code.  So, my
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
code, but it seems pretty convoluted.  I found
`help-fns-function-description-header', but it seems that the actual
code finding the exact position of the function definition is buried
deep down the call chain, so I'm asking here in the hope that someone
could point me to the right place faster than me trying to edebug this
or something.

TIA,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-18 18:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17  4:03 How does `describe-function' know where the source code of the function is? Marcin Borkowski
2022-01-17  4:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-01-17  4:27 ` Eduardo Ochs
2022-01-17 16:22 ` Michael Heerdegen
2022-01-18  2:51 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-01-18 17:41   ` Marcin Borkowski
2022-01-18 18:46     ` Stefan Monnier

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).