Browse Source

Move `org-comment-dwim' in an appropriate section

* lisp/org.el (org-comment-dwim): Move function into "comment" related
  part of the library.
Nicolas Goaziou 11 years ago
parent
commit
37eb0df867
1 changed files with 7 additions and 7 deletions
  1. 7 7
      lisp/org.el

+ 7 - 7
lisp/org.el

@@ -20503,13 +20503,6 @@ If `org-special-ctrl-o' is nil, just call `open-line' everywhere."
    (t
     (open-line n))))
 
-(defun org-comment-dwim (arg)
-  (interactive "*P")
-  "Call `comment-dwim' within a source edit buffer if needed"
-  (if (org-in-src-block-p)
-      (org-babel-do-in-edit-buffer (call-interactively #'comment-dwim))
-    (call-interactively #'comment-dwim)))
-
 (defun org-return (&optional indent)
   "Goto next table row or insert a newline.
 Calls `org-table-next-row' or `newline', depending on context.
@@ -22684,6 +22677,13 @@ strictly within a source block, use appropriate comment syntax."
 		  (insert comment-start))
 		(forward-line)))))))))
 
+(defun org-comment-dwim (arg)
+  (interactive "*P")
+  "Call `comment-dwim' within a source edit buffer if needed."
+  (if (org-in-src-block-p)
+      (org-babel-do-in-edit-buffer (call-interactively #'comment-dwim))
+    (call-interactively #'comment-dwim)))
+
 
 ;;; Planning