浏览代码

org: Remove useless example in docstring

* lisp/org.el (org-find-olp): Remove useless example in docstring.

TINYCHANGE
Leo Vivier 4 年之前
父节点
当前提交
c9abb4c29a
共有 1 个文件被更改,包括 3 次插入9 次删除
  1. 3 9
      lisp/org.el

+ 3 - 9
lisp/org.el

@@ -13930,15 +13930,9 @@ completion."
 
 (defun org-find-olp (path &optional this-buffer)
   "Return a marker pointing to the entry at outline path OLP.
-If anything goes wrong, throw an error.
-You can wrap this call to catch the error like this:
-
-  (condition-case msg
-      (org-mobile-locate-entry (match-string 4))
-    (error (nth 1 msg)))
-
-The return value will then be either a string with the error message,
-or a marker if everything is OK.
+If anything goes wrong, throw an error, and if you need to do
+something based on this error, you can catch it with
+`condition-case'.
 
 If THIS-BUFFER is set, the outline path does not contain a file,
 only headings."