summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-12-06 16:37:57 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2013-12-06 16:37:57 +0100
commit37eb0df867d438949ff052ce5b92574be07e73f9 (patch)
tree5d5b602ae4031087de155f1e96ae1eadf687d381
parent3f6b1dcfd472807c9d0a8e4c3b6b62e59bba6a14 (diff)
downloadorg-mode-37eb0df867d438949ff052ce5b92574be07e73f9.tar.gz
Move `org-comment-dwim' in an appropriate section
* lisp/org.el (org-comment-dwim): Move function into "comment" related part of the library.
-rw-r--r--lisp/org.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 21eb3a8..9b406b6 100644
--- a/lisp/org.el
+++ b/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