I 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
Ar an séiú lá de mí Márta, scríobh Daniel Cerqueira:
I 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.
[…]
I want to, in Elisp code, get a string of a function description. Similar to Common LISP `description` function.
Aidan Kehoe <kehoea@parhasard.net> writes:
Ar an séiú lá de mí Márta, scríobh Daniel Cerqueira:
I 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.
Thanks. I did not explain my issue correctly.
I want to, in Elisp code, get a string of a function description. Similar to Common LISP `description` function.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 399 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:10:03 |
Calls: | 8,380 |
Calls today: | 6 |
Files: | 13,168 |
Messages: | 5,900,776 |
Posted today: | 2 |