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

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

Re: Looking up the source of a builtin function (subroutine)


From: Joost Diepenmaat
Subject: Re: Looking up the source of a builtin function (subroutine)
Date: Mon, 03 Nov 2008 17:25:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Nordlöw <per.nordlow@gmail.com> writes:

> On 3 Nov, 16:59, Paul R <paul.r...@gmail.com> wrote:
>> Nordlöw> How do I lookup the C source file for a builtin function
>> Nordlöw> (sub-routine) like symbol-file() does for emacs lisp?
>>
>> I assume you want to do so interactively, then :
>>
>> C-h f your-function-name RET
>>
>> You will need to have emacs sources installed, obviously. If you did not
>> build emacs from source, you probably have to find a package that
>> provides them.
>>
>> --
>>   Paul
>
> How do I do it from emacs lisp code?

Looking at the source for describe-function and describe-function-1:

(find-lisp-object-file-name 'car (symbol-function 'car))

replace 'car with any symbol denoting a function

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/


reply via email to

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