How can I check the implementation of a builtin function?How to get the function help without typing?How to see the name of the command every time I run it by a shortcut?If I know a keybinding/shortcut, how to get the corresponding function?How do I customize the way Emacs prints out certain keys and key sequences?How best to export functions in dynamic modulesWhat function are associated with these expression evaluation commands in buffers?How go to Emacs lisp source function from my custom elisp file?Navigation to source of compiled lisp function?how to generate tags and find mark-whole-buffer definition
What fantasy book has twins (except one's blue) and a cloaked ice bear on the cover?
How can you tell apart the pronounciation at the end between the "meine" and "meiner" in the daily spoken situation?
Word for 'most late'
How does an alien race from a dying world annihilate most of humanity to colonize the planet for themselves?
How can I communicate feelings to players without impacting their agency?
Uniform Roe algebra of virtually abelian group is type I C*-algebra?
Vergil Book XII, Line 756 | Meter Question
Is is possible to externally power my DSLR with the original battery that is connected to the DSLR by means of wires?
Where is the circle of fifths mentioned for the first time?
I am often given, occasionally stolen, rarely sold, and never borrowed
How can I check the implementation of a builtin function?
How to prove that invoices are really unpaid?
Does immunity to fear prevent a mummy's Dreadful Glare from paralyzing a character?
Does any politician honestly want a No Deal Brexit?
Car as a good investment
Does obfuscation give any measurable security benefit?
Limiting sensor input voltage without biasing measurement
Easy way of generating a 50-150W load @12V
How to increment the value of a (decimal) variable (with leading zero) by +1?
Why do these two ways of understanding constant acceleration give different results?
How are Aircraft Noses Designed?
Why does Principal Vagina say, "no relation" after introducing himself?
Christmas party at employers home
Where does the upgrade to macOS Catalina move root "/" directory files?
How can I check the implementation of a builtin function?
How to get the function help without typing?How to see the name of the command every time I run it by a shortcut?If I know a keybinding/shortcut, how to get the corresponding function?How do I customize the way Emacs prints out certain keys and key sequences?How best to export functions in dynamic modulesWhat function are associated with these expression evaluation commands in buffers?How go to Emacs lisp source function from my custom elisp file?Navigation to source of compiled lisp function?how to generate tags and find mark-whole-buffer definition
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
Is there a way to check the implementation of a builtin function (e.g. load-file
) without cloning the Emacs repository?
help
New contributor
add a comment
|
Is there a way to check the implementation of a builtin function (e.g. load-file
) without cloning the Emacs repository?
help
New contributor
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the.el
(or.el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.
– phils
4 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago
add a comment
|
Is there a way to check the implementation of a builtin function (e.g. load-file
) without cloning the Emacs repository?
help
New contributor
Is there a way to check the implementation of a builtin function (e.g. load-file
) without cloning the Emacs repository?
help
help
New contributor
New contributor
edited 7 hours ago
Drew
51.8k4 gold badges68 silver badges120 bronze badges
51.8k4 gold badges68 silver badges120 bronze badges
New contributor
asked 8 hours ago
novanova
61 bronze badge
61 bronze badge
New contributor
New contributor
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the.el
(or.el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.
– phils
4 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago
add a comment
|
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the.el
(or.el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.
– phils
4 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the
.el
(or .el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.– phils
4 hours ago
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the
.el
(or .el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.– phils
4 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago
add a comment
|
3 Answers
3
active
oldest
votes
For load-file
C-h f load-file
then follow the link from the first line, in this case:
load-file is an interactive compiled Lisp function in ‘files.el’.
will open the elisp function definition, C source code, AFAIK, will require the repo.
add a comment
|
If you are interested in looking at a file from a computer that Emacs isn't even installed on, you can take the filename it's found in from help (C-h f load-file RET), then browse the source at Emacs's GNU Savannah repository, or the Github mirror.
This code will be later than the version of Emacs you're using, and it may be different in important ways.
add a comment
|
On debian, and I guess on Ubuntu as well, the elisp sources (.el files as opposed to byte compiled .elc files) are available in the emacs-el
package.
The elisp sources are not provided in the basic emacs package since they're not necessary to run emacs, only usefull if, like you do, you want to look at the source.
So absolutely don't need to clone the emacs repo, you just need to install that emacs-el package, eg
sudo apt-get install emacs-el
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "583"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
nova is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f53056%2fhow-can-i-check-the-implementation-of-a-builtin-function%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
For load-file
C-h f load-file
then follow the link from the first line, in this case:
load-file is an interactive compiled Lisp function in ‘files.el’.
will open the elisp function definition, C source code, AFAIK, will require the repo.
add a comment
|
For load-file
C-h f load-file
then follow the link from the first line, in this case:
load-file is an interactive compiled Lisp function in ‘files.el’.
will open the elisp function definition, C source code, AFAIK, will require the repo.
add a comment
|
For load-file
C-h f load-file
then follow the link from the first line, in this case:
load-file is an interactive compiled Lisp function in ‘files.el’.
will open the elisp function definition, C source code, AFAIK, will require the repo.
For load-file
C-h f load-file
then follow the link from the first line, in this case:
load-file is an interactive compiled Lisp function in ‘files.el’.
will open the elisp function definition, C source code, AFAIK, will require the repo.
edited 8 hours ago
answered 8 hours ago
MuihlinnMuihlinn
3561 silver badge8 bronze badges
3561 silver badge8 bronze badges
add a comment
|
add a comment
|
If you are interested in looking at a file from a computer that Emacs isn't even installed on, you can take the filename it's found in from help (C-h f load-file RET), then browse the source at Emacs's GNU Savannah repository, or the Github mirror.
This code will be later than the version of Emacs you're using, and it may be different in important ways.
add a comment
|
If you are interested in looking at a file from a computer that Emacs isn't even installed on, you can take the filename it's found in from help (C-h f load-file RET), then browse the source at Emacs's GNU Savannah repository, or the Github mirror.
This code will be later than the version of Emacs you're using, and it may be different in important ways.
add a comment
|
If you are interested in looking at a file from a computer that Emacs isn't even installed on, you can take the filename it's found in from help (C-h f load-file RET), then browse the source at Emacs's GNU Savannah repository, or the Github mirror.
This code will be later than the version of Emacs you're using, and it may be different in important ways.
If you are interested in looking at a file from a computer that Emacs isn't even installed on, you can take the filename it's found in from help (C-h f load-file RET), then browse the source at Emacs's GNU Savannah repository, or the Github mirror.
This code will be later than the version of Emacs you're using, and it may be different in important ways.
answered 8 hours ago
zckzck
5,9121 gold badge16 silver badges56 bronze badges
5,9121 gold badge16 silver badges56 bronze badges
add a comment
|
add a comment
|
On debian, and I guess on Ubuntu as well, the elisp sources (.el files as opposed to byte compiled .elc files) are available in the emacs-el
package.
The elisp sources are not provided in the basic emacs package since they're not necessary to run emacs, only usefull if, like you do, you want to look at the source.
So absolutely don't need to clone the emacs repo, you just need to install that emacs-el package, eg
sudo apt-get install emacs-el
add a comment
|
On debian, and I guess on Ubuntu as well, the elisp sources (.el files as opposed to byte compiled .elc files) are available in the emacs-el
package.
The elisp sources are not provided in the basic emacs package since they're not necessary to run emacs, only usefull if, like you do, you want to look at the source.
So absolutely don't need to clone the emacs repo, you just need to install that emacs-el package, eg
sudo apt-get install emacs-el
add a comment
|
On debian, and I guess on Ubuntu as well, the elisp sources (.el files as opposed to byte compiled .elc files) are available in the emacs-el
package.
The elisp sources are not provided in the basic emacs package since they're not necessary to run emacs, only usefull if, like you do, you want to look at the source.
So absolutely don't need to clone the emacs repo, you just need to install that emacs-el package, eg
sudo apt-get install emacs-el
On debian, and I guess on Ubuntu as well, the elisp sources (.el files as opposed to byte compiled .elc files) are available in the emacs-el
package.
The elisp sources are not provided in the basic emacs package since they're not necessary to run emacs, only usefull if, like you do, you want to look at the source.
So absolutely don't need to clone the emacs repo, you just need to install that emacs-el package, eg
sudo apt-get install emacs-el
answered 7 hours ago
JeanPierreJeanPierre
4,9071 gold badge10 silver badges30 bronze badges
4,9071 gold badge10 silver badges30 bronze badges
add a comment
|
add a comment
|
nova is a new contributor. Be nice, and check out our Code of Conduct.
nova is a new contributor. Be nice, and check out our Code of Conduct.
nova is a new contributor. Be nice, and check out our Code of Conduct.
nova is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Emacs Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f53056%2fhow-can-i-check-the-implementation-of-a-builtin-function%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Some built-in functions are written in C in which case you do need a copy of that source code in order for Emacs to be able to show you the definition. You don't need to clone a repository, though -- a tarball of the sources is absolutely fine for this purpose. For elisp functions, unless you've installed Emacs without the
.el
(or.el.gz
) sources, Emacs will take you to the definitions by default when you ask for help about a function (or variable) and follow the link provided.– phils
4 hours ago
n.b. if you installed Emacs via your OS package manager, then you should review all other related packages (which may not be installed), as there may be things that you are missing. (e.g. Debian's basic package includes neither the elisp sources nor the manuals, which makes for an extremely incomplete install).
– phils
2 hours ago