|
@@ -6727,8 +6727,8 @@ This function is the default value of the hook `org-cycle-hook'."
|
|
|
;; First, find a reasonable region to look at:
|
|
|
;; Start two siblings above, end three below
|
|
|
(let* ((beg (save-excursion
|
|
|
- (and (org-get-last-sibling)
|
|
|
- (org-get-last-sibling))
|
|
|
+ (and (org-get-previous-sibling)
|
|
|
+ (org-get-previous-sibling))
|
|
|
(point)))
|
|
|
(end (save-excursion
|
|
|
(and (org-get-next-sibling)
|
|
@@ -7620,7 +7620,7 @@ case."
|
|
|
(setq arg (prefix-numeric-value arg))
|
|
|
(org-preserve-local-variables
|
|
|
(let ((movfunc (if (> arg 0) 'org-get-next-sibling
|
|
|
- 'org-get-last-sibling))
|
|
|
+ 'org-get-previous-sibling))
|
|
|
(ins-point (make-marker))
|
|
|
(cnt (abs arg))
|
|
|
(col (current-column))
|
|
@@ -20659,7 +20659,7 @@ This is like outline-next-sibling, but invisible headings are ok."
|
|
|
(unless (or (eobp) (< (funcall outline-level) level))
|
|
|
(point))))
|
|
|
|
|
|
-(defun org-get-last-sibling ()
|
|
|
+(defun org-get-previous-sibling ()
|
|
|
"Move to previous heading of the same level, and return point.
|
|
|
If there is no such heading, return nil."
|
|
|
(let ((opoint (point))
|