mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:37:47 +00:00
org-element: Fix docstring
* lisp/org-element.el (org-element-copy): Fix docstring.
This commit is contained in:
parent
16841306ed
commit
7f66983184
|
@ -564,12 +564,8 @@ The function takes care of setting `:parent' property for NEW."
|
||||||
|
|
||||||
(defun org-element-copy (datum)
|
(defun org-element-copy (datum)
|
||||||
"Return a copy of DATUM.
|
"Return a copy of DATUM.
|
||||||
|
DATUM is an element, object, string or nil. `:parent' property
|
||||||
DATUM is an element, object or string. `:parent' property is
|
is cleared and contents are removed in the process."
|
||||||
cleared and contents are removed in the process. If you need to
|
|
||||||
preserve contents, use `org-element-extract-element' instead.
|
|
||||||
|
|
||||||
If DATUM is nil, return nil."
|
|
||||||
(when datum
|
(when datum
|
||||||
(let ((type (org-element-type datum)))
|
(let ((type (org-element-type datum)))
|
||||||
(case type
|
(case type
|
||||||
|
|
Loading…
Reference in a new issue