|
@@ -6748,7 +6748,7 @@ show the entire buffer, including any drawers.
|
|
|
(org-unlogged-message "Startup visibility, plus VISIBILITY properties"))
|
|
|
|
|
|
((equal arg '(64))
|
|
|
- (show-all)
|
|
|
+ (outline-show-all)
|
|
|
(org-unlogged-message "Entire buffer visible, including drawers"))
|
|
|
|
|
|
;; Try cdlatex TAB completion
|
|
@@ -6847,7 +6847,7 @@ Use \\[org-edit-special] to edit table.el tables"))
|
|
|
(eq org-cycle-global-status 'contents))
|
|
|
;; We just showed the table of contents - now show everything
|
|
|
(run-hook-with-args 'org-pre-cycle-hook 'all)
|
|
|
- (show-all)
|
|
|
+ (outline-show-all)
|
|
|
(unless ga (org-unlogged-message "SHOW ALL"))
|
|
|
(setq org-cycle-global-status 'all)
|
|
|
(run-hook-with-args 'org-cycle-hook 'all))
|
|
@@ -6923,7 +6923,7 @@ Use \\[org-edit-special] to edit table.el tables"))
|
|
|
(if (org-at-item-p)
|
|
|
(org-list-set-item-visibility (point-at-bol) struct 'children)
|
|
|
(org-show-entry)
|
|
|
- (org-with-limited-levels (show-children))
|
|
|
+ (org-with-limited-levels (outline-show-children))
|
|
|
;; FIXME: This slows down the func way too much.
|
|
|
;; How keep drawers hidden in subtree anyway?
|
|
|
;; (when (memq 'org-cycle-hide-drawers org-cycle-hook)
|
|
@@ -6981,8 +6981,8 @@ With a numeric prefix, show all headlines up to that level."
|
|
|
(if (derived-mode-p 'org-mode) org-cycle-include-plain-lists nil)))
|
|
|
(cond
|
|
|
((integerp arg)
|
|
|
- (show-all)
|
|
|
- (hide-sublevels arg)
|
|
|
+ (outline-show-all)
|
|
|
+ (outline-hide-sublevels arg)
|
|
|
(setq org-cycle-global-status 'contents))
|
|
|
((equal arg '(4))
|
|
|
(org-set-startup-visibility)
|
|
@@ -6999,7 +6999,7 @@ With a numeric prefix, show all headlines up to that level."
|
|
|
(org-content))
|
|
|
((or (eq org-startup-folded 'showeverything)
|
|
|
(eq org-startup-folded nil))
|
|
|
- (show-all)))
|
|
|
+ (outline-show-all)))
|
|
|
(unless (eq org-startup-folded 'showeverything)
|
|
|
(if org-hide-block-startup (org-hide-block-all))
|
|
|
(org-set-visibility-according-to-property 'no-cleanup)
|
|
@@ -7018,21 +7018,21 @@ With a numeric prefix, show all headlines up to that level."
|
|
|
(let ((state (match-string 3)))
|
|
|
(save-excursion
|
|
|
(org-back-to-heading t)
|
|
|
- (hide-subtree)
|
|
|
+ (outline-hide-subtree)
|
|
|
(org-reveal)
|
|
|
(cond
|
|
|
((equal state "folded")
|
|
|
- (hide-subtree))
|
|
|
+ (outline-hide-subtree))
|
|
|
((equal state "children")
|
|
|
(org-show-hidden-entry)
|
|
|
- (show-children))
|
|
|
+ (outline-show-children))
|
|
|
((equal state "content")
|
|
|
(save-excursion
|
|
|
(save-restriction
|
|
|
(org-narrow-to-subtree)
|
|
|
(org-content))))
|
|
|
((member state '("all" "showall"))
|
|
|
- (show-subtree)))))))
|
|
|
+ (outline-show-subtree)))))))
|
|
|
(unless no-cleanup
|
|
|
(org-cycle-hide-archived-subtrees 'all)
|
|
|
(org-cycle-hide-drawers 'all)
|
|
@@ -7056,7 +7056,7 @@ results."
|
|
|
(progn
|
|
|
(goto-char (match-beginning 0))
|
|
|
(funcall outline-level))))))
|
|
|
- (and level (hide-sublevels level)))))
|
|
|
+ (and level (outline-hide-sublevels level)))))
|
|
|
|
|
|
(defun org-content (&optional arg)
|
|
|
"Show all headlines in the buffer, like a table of contents.
|
|
@@ -7074,8 +7074,8 @@ With numerical argument N, show content up to level N."
|
|
|
t)
|
|
|
(looking-at org-outline-regexp))
|
|
|
(if (integerp arg)
|
|
|
- (show-children (1- arg))
|
|
|
- (show-branches))
|
|
|
+ (outline-show-children (1- arg))
|
|
|
+ (outline-show-branches))
|
|
|
(if (bobp) (throw 'exit nil))))))
|
|
|
|
|
|
(defun org-optimize-window-after-visibility-change (state)
|
|
@@ -7126,7 +7126,7 @@ This function is the default value of the hook `org-cycle-hook'."
|
|
|
(if (and (not (outline-invisible-p))
|
|
|
(save-excursion
|
|
|
(goto-char (point-at-eol)) (outline-invisible-p)))
|
|
|
- (hide-entry))))
|
|
|
+ (outline-hide-entry))))
|
|
|
(org-cycle-show-empty-lines 'overview)
|
|
|
(org-cycle-hide-drawers 'overview)))))
|
|
|
|
|
@@ -7290,7 +7290,7 @@ DATA should have been made by `org-outline-overlay-data'."
|
|
|
(save-excursion
|
|
|
(save-restriction
|
|
|
(widen)
|
|
|
- (show-all)
|
|
|
+ (outline-show-all)
|
|
|
(mapc (lambda (c)
|
|
|
(outline-flag-region (car c) (cdr c) t))
|
|
|
data)))))
|
|
@@ -7675,7 +7675,7 @@ frame is not changed."
|
|
|
(if (featurep 'xemacs)
|
|
|
(save-excursion (org-mode) (turn-on-font-lock)))
|
|
|
(narrow-to-region beg end)
|
|
|
- (show-all)
|
|
|
+ (outline-show-all)
|
|
|
(goto-char pos)
|
|
|
(run-hook-with-args 'org-cycle-hook 'all)
|
|
|
(and (window-live-p cwin) (select-window cwin))))
|
|
@@ -8475,9 +8475,9 @@ case."
|
|
|
(insert (make-string (- ne-ins ne-beg) ?\n)))
|
|
|
(move-marker ins-point nil)
|
|
|
(if folded
|
|
|
- (hide-subtree)
|
|
|
+ (outline-hide-subtree)
|
|
|
(org-show-entry)
|
|
|
- (show-children)
|
|
|
+ (outline-show-children)
|
|
|
(org-cycle-hide-drawers 'children))
|
|
|
(org-clean-visibility-after-subtree-move)
|
|
|
;; move back to the initial column we were at
|
|
@@ -8646,7 +8646,7 @@ When REMOVE is non-nil, remove the subtree from the clipboard."
|
|
|
(eq org-subtree-clip (current-kill 0))
|
|
|
org-subtree-clip-folded)
|
|
|
;; The tree was folded before it was killed/copied
|
|
|
- (hide-subtree))
|
|
|
+ (outline-hide-subtree))
|
|
|
(and for-yank (goto-char newend))
|
|
|
(and remove (setq kill-ring (cdr kill-ring))))))
|
|
|
|
|
@@ -8945,7 +8945,7 @@ When sorting is done, call `org-after-sorting-entries-or-items-hook'."
|
|
|
(point))
|
|
|
what "children")
|
|
|
(goto-char start)
|
|
|
- (show-subtree)
|
|
|
+ (outline-show-subtree)
|
|
|
(outline-next-heading))
|
|
|
(t
|
|
|
;; we will sort the top-level entries in this file
|
|
@@ -8961,7 +8961,7 @@ When sorting is done, call `org-after-sorting-entries-or-items-hook'."
|
|
|
(setq end (point-max))
|
|
|
(setq what "top-level")
|
|
|
(goto-char start)
|
|
|
- (show-all)))
|
|
|
+ (outline-show-all)))
|
|
|
|
|
|
(setq beg (point))
|
|
|
(when (>= beg end) (goto-char start) (user-error "Nothing to sort"))
|
|
@@ -9242,7 +9242,7 @@ buffer. It will also recognize item context in multiline items."
|
|
|
outline-previous-visible-heading
|
|
|
outline-promote
|
|
|
outline-up-heading
|
|
|
- show-children))
|
|
|
+ outline-show-children))
|
|
|
(let ((f (or (car-safe cell) cell))
|
|
|
(disable-when-heading-prefix (cdr-safe cell)))
|
|
|
(when (fboundp f)
|
|
@@ -14012,7 +14012,7 @@ information."
|
|
|
(org-show-entry)
|
|
|
(org-with-limited-levels
|
|
|
(case detail
|
|
|
- ((tree canonical t) (show-children))
|
|
|
+ ((tree canonical t) (outline-show-children))
|
|
|
((nil minimal ancestors))
|
|
|
(t (save-excursion
|
|
|
(outline-next-heading)
|
|
@@ -14025,7 +14025,7 @@ information."
|
|
|
(while (org-up-heading-safe)
|
|
|
(org-flag-heading nil)
|
|
|
(when (memq detail '(canonical t)) (org-show-entry))
|
|
|
- (when (memq detail '(tree canonical t)) (show-children)))))))
|
|
|
+ (when (memq detail '(tree canonical t)) (outline-show-children)))))))
|
|
|
|
|
|
(defvar org-reveal-start-hook nil
|
|
|
"Hook run before revealing a location.")
|
|
@@ -19733,12 +19733,12 @@ boundaries."
|
|
|
;; Outline functions from `outline-mode-prefix-map'
|
|
|
;; that can be remapped in Org:
|
|
|
(define-key org-mode-map [remap outline-mark-subtree] 'org-mark-subtree)
|
|
|
-(define-key org-mode-map [remap show-subtree] 'org-show-subtree)
|
|
|
+(define-key org-mode-map [remap outline-show-subtree] 'org-show-subtree)
|
|
|
(define-key org-mode-map [remap outline-forward-same-level]
|
|
|
'org-forward-heading-same-level)
|
|
|
(define-key org-mode-map [remap outline-backward-same-level]
|
|
|
'org-backward-heading-same-level)
|
|
|
-(define-key org-mode-map [remap show-branches]
|
|
|
+(define-key org-mode-map [remap outline-show-branches]
|
|
|
'org-kill-note-or-show-branches)
|
|
|
(define-key org-mode-map [remap outline-promote] 'org-promote-subtree)
|
|
|
(define-key org-mode-map [remap outline-demote] 'org-demote-subtree)
|
|
@@ -19861,7 +19861,7 @@ boundaries."
|
|
|
|
|
|
;; All the other keys
|
|
|
|
|
|
-(org-defkey org-mode-map "\C-c\C-a" 'show-all) ; in case allout messed up.
|
|
|
+(org-defkey org-mode-map "\C-c\C-a" 'outline-show-all) ; in case allout messed up.
|
|
|
(org-defkey org-mode-map "\C-c\C-r" 'org-reveal)
|
|
|
(if (boundp 'narrow-map)
|
|
|
(org-defkey narrow-map "s" 'org-narrow-to-subtree)
|
|
@@ -20247,7 +20247,7 @@ The detailed reaction depends on the user option `org-catch-invisible-edits'."
|
|
|
(if invisible-before-point
|
|
|
(goto-char (previous-single-char-property-change
|
|
|
(point) 'invisible)))
|
|
|
- (show-subtree))
|
|
|
+ (outline-show-subtree))
|
|
|
(cond
|
|
|
((eq org-catch-invisible-edits 'show)
|
|
|
;; That's it, we do the edit after showing
|
|
@@ -21260,8 +21260,8 @@ Use \\[org-edit-special] to edit table.el tables"))
|
|
|
(interactive)
|
|
|
(if (not org-finish-function)
|
|
|
(progn
|
|
|
- (hide-subtree)
|
|
|
- (call-interactively 'show-branches))
|
|
|
+ (outline-hide-subtree)
|
|
|
+ (call-interactively 'outline-show-branches))
|
|
|
(let ((org-note-abort t))
|
|
|
(funcall org-finish-function))))
|
|
|
|
|
@@ -21737,7 +21737,7 @@ on context. See the individual commands for more information."
|
|
|
["Cycle Global Visibility" org-shifttab :active (not (org-at-table-p))]
|
|
|
["Sparse Tree..." org-sparse-tree t]
|
|
|
["Reveal Context" org-reveal t]
|
|
|
- ["Show All" show-all t]
|
|
|
+ ["Show All" outline-show-all t]
|
|
|
"--"
|
|
|
["Subtree to indirect buffer" org-tree-to-indirect-buffer t])
|
|
|
"--"
|
|
@@ -24133,7 +24133,7 @@ interactive command with similar behavior."
|
|
|
(or (looking-at org-outline-regexp)
|
|
|
(re-search-forward org-outline-regexp-bol end t))
|
|
|
(while (and (< (point) end) (looking-at org-outline-regexp))
|
|
|
- (hide-subtree)
|
|
|
+ (outline-hide-subtree)
|
|
|
(org-cycle-show-empty-lines 'folded)
|
|
|
(condition-case nil
|
|
|
(outline-forward-same-level 1)
|