Explorar o código

Merge branch 'maint'

Bastien Guerry %!s(int64=12) %!d(string=hai) anos
pai
achega
02078833e0
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      lisp/org.el

+ 5 - 4
lisp/org.el

@@ -6894,10 +6894,12 @@ With a numeric prefix, show all headlines up to that level."
   "Set the visibility required by startup options and properties."
   "Set the visibility required by startup options and properties."
   (cond
   (cond
    ((eq org-startup-folded t)
    ((eq org-startup-folded t)
-    (org-cycle '(4)))
+    (org-overview))
    ((eq org-startup-folded 'content)
    ((eq org-startup-folded 'content)
-    (let ((this-command 'org-cycle) (last-command 'org-cycle))
-      (org-cycle '(4)) (org-cycle '(4)))))
+    (org-content))
+   ((or (eq org-startup-folded 'showeverything)
+	(eq org-startup-folded nil))
+    (show-all)))
   (unless (eq org-startup-folded 'showeverything)
   (unless (eq org-startup-folded 'showeverything)
     (if org-hide-block-startup (org-hide-block-all))
     (if org-hide-block-startup (org-hide-block-all))
     (org-set-visibility-according-to-property 'no-cleanup)
     (org-set-visibility-according-to-property 'no-cleanup)
@@ -6977,7 +6979,6 @@ With numerical argument N, show content up to level N."
 	  (show-branches))
 	  (show-branches))
 	(if (bobp) (throw 'exit nil))))))
 	(if (bobp) (throw 'exit nil))))))
 
 
-
 (defun org-optimize-window-after-visibility-change (state)
 (defun org-optimize-window-after-visibility-change (state)
   "Adjust the window after a change in outline visibility.
   "Adjust the window after a change in outline visibility.
 This function is the default value of the hook `org-cycle-hook'."
 This function is the default value of the hook `org-cycle-hook'."