|
@@ -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")
|