Procházet zdrojové kódy

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

Carsten Dominik před 16 roky
rodič
revize
0a5c3f892d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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)))