浏览代码

Add a docstring to `org-run-like-in-org-mode'

Carsten Dominik 16 年之前
父节点
当前提交
0a5c3f892d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lisp/org.el

+ 4 - 0
lisp/org.el

@@ -6460,6 +6460,10 @@ Possible values in the list of contexts are `table', `headline', and `item'."
 
 ;;;###autoload
 (defun org-run-like-in-org-mode (cmd)
+  "Run a command, pretending that the current buffer is in Org-mode.
+This will temporarily bind local variables that are typically bound in
+Org-mode to the values they have in Org-mode, and then interactively
+call CMD."
   (org-load-modules-maybe)
   (unless org-local-vars
     (setq org-local-vars (org-get-local-variables)))