Post by Daniel CerqueiraI am using Emacs LISP and I want to get the description of some Elisp
function.
How can I do that?
F1 f function-name RET
For example, F1 f car RET brings up a buffer documenting that function:
car is a built-in function in ‘C source code’.
(car LIST)
Return the car of LIST. If LIST is nil, return nil.
Error if LIST is not nil and not a cons cell. See also ‘car-safe’.
See Info node ‘(elisp)Cons Cells’ for a discussion of related basic
Lisp concepts such as car, cdr, cons cell and list.
Other relevant functions are documented in the list group.
Probably introduced at or before Emacs version 1.2.
This function does not change global state, including the match data.
Also helpful for under-documented functions is M-x find-function RET , which
will bring you to the source code of a function. E.g. M-x find-function RET
find-file RET loads files.el and brings the cursor to the (defun ...) that
defines #'find-file.
--
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after fourteen pints of stout’
(C. Moore)