Merge branch 'maint'

This commit is contained in:
Marco Wahl 2019-12-31 13:58:26 +01:00
commit c637195e45
2 changed files with 19 additions and 3 deletions

View File

@ -18084,9 +18084,15 @@ Move point to the beginning of first heading or end of buffer."
(let ((org-note-abort t))
(funcall org-finish-function))
(if (org-before-first-heading-p)
(org-show-branches-buffer)
(outline-hide-subtree)
(outline-show-branches))))
(progn
(org-show-branches-buffer)
(org-hide-archived-subtrees (point-min) (point-max)))
(let ((beg (progn (outline-back-to-heading) (point)))
(end (progn (outline-end-of-subtree) (point))))
(goto-char beg)
(outline-hide-subtree)
(outline-show-branches)
(org-hide-archived-subtrees beg end)))))
(defun org-delete-indentation (&optional arg)
"Join current line to previous and fix whitespace at join.

View File

@ -7548,6 +7548,16 @@ Contents
(org-set-visibility-according-to-property)
(invisible-p (point)))))
(ert-deftest test-org/visibility-show-branches ()
"Test visibility of inline archived subtrees."
(org-test-with-temp-text
"* Foo<point>
** Bar :ARCHIVE:
*** Baz
"
(org-kill-note-or-show-branches)
(should (org-invisible-p (- (point-max) 2)))))
;;; Yank and Kill