summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2011-08-15 09:44:52 +0200
committerBastien Guerry <bzg@altern.org>2011-08-15 09:44:52 +0200
commitbc1b688ff06a94f343f6d7545f2d5551ec721afe (patch)
treec554add81ad6dc2a6175baf8124314880e097b31
parent71332ac8a6a8143549a87092e8da8bd73a0b334e (diff)
downloadorg-mode-bc1b688ff06a94f343f6d7545f2d5551ec721afe.tar.gz
Move org-find-visible and org-find-invisible from org-exp.el to org.el.
-rw-r--r--lisp/org-exp.el11
-rw-r--r--lisp/org.el11
2 files changed, 11 insertions, 11 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 8e21aea..cc31a4e 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2896,17 +2896,6 @@ command."
(switch-to-buffer-other-window buffer)
(goto-char (point-min)))))
-(defun org-find-visible ()
- (let ((s (point)))
- (while (and (not (= (point-max) (setq s (next-overlay-change s))))
- (get-char-property s 'invisible)))
- s))
-(defun org-find-invisible ()
- (let ((s (point)))
- (while (and (not (= (point-max) (setq s (next-overlay-change s))))
- (not (get-char-property s 'invisible))))
- s))
-
(defvar org-export-htmlized-org-css-url) ;; defined in org-html.el
(defun org-export-string (string fmt &optional dir)
diff --git a/lisp/org.el b/lisp/org.el
index aa17344..71c14b6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17688,6 +17688,17 @@ Depending on context, this does one of the following:
((org-at-table-p) (call-interactively 'org-table-hline-and-move))
(t (call-interactively 'org-insert-heading))))
+(defun org-find-visible ()
+ (let ((s (point)))
+ (while (and (not (= (point-max) (setq s (next-overlay-change s))))
+ (get-char-property s 'invisible)))
+ s))
+(defun org-find-invisible ()
+ (let ((s (point)))
+ (while (and (not (= (point-max) (setq s (next-overlay-change s))))
+ (not (get-char-property s 'invisible))))
+ s))
+
(defun org-copy-visible (beg end)
"Copy the visible parts of the region."
(interactive "r")