diff options
author | Mark Oteiza <mvoteiza@udel.edu> | 2017-09-11 22:16:14 -0400 |
---|---|---|
committer | Mark Oteiza <mvoteiza@udel.edu> | 2017-09-11 22:16:14 -0400 |
commit | 8130186cfb830d82e7d0cc6fb7443e3b6e026660 (patch) | |
tree | a6e5a67089ccb9ac9a31947301f2a3c34acdc473 /lisp | |
parent | f6474b4808363dbddeffef8d73ee3be7b3858fa3 (diff) | |
download | emacs-8130186cfb830d82e7d0cc6fb7443e3b6e026660.tar.gz emacs-8130186cfb830d82e7d0cc6fb7443e3b6e026660.tar.bz2 emacs-8130186cfb830d82e7d0cc6fb7443e3b6e026660.zip |
Add docstrings to cl-print entry points
* lisp/emacs-lisp/cl-print.el (cl-print-compiled): Fix docstring.
(cl-prin1, cl-prin1-to-string): Add docstrings.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-print.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-print.el b/lisp/emacs-lisp/cl-print.el index 6a292d24776..fec5e868d63 100644 --- a/lisp/emacs-lisp/cl-print.el +++ b/lisp/emacs-lisp/cl-print.el @@ -85,7 +85,8 @@ call other entry points instead, such as `cl-prin1'." 'help-echo (purecopy "mouse-2, RET: disassemble this function")) (defvar cl-print-compiled nil - "Control how to print byte-compiled functions. Can be: + "Control how to print byte-compiled functions. +Acceptable values include: - `static' to print the vector of constants. - `disassemble' to print the disassembly of the code. - nil to skip printing any details about the code.") @@ -253,6 +254,11 @@ into a button whose action shows the function's disassembly.") ;;;###autoload (defun cl-prin1 (object &optional stream) + "Print OBJECT on STREAM according to its type. +Output is further controlled by the variables +`cl-print-readably', `cl-print-compiled', along with output +variables for the standard printing functions. See Info +node `(elisp)Output Variables'. " (cond (cl-print-readably (prin1 object stream)) ((not print-circle) (cl-print-object object stream)) @@ -262,6 +268,7 @@ into a button whose action shows the function's disassembly.") ;;;###autoload (defun cl-prin1-to-string (object) + "Return a string containing the `cl-prin1'-printed representation of OBJECT." (with-temp-buffer (cl-prin1 object (current-buffer)) (buffer-string))) |