Function: hyrolo-outline-get-last-sibling

hyrolo-outline-get-last-sibling is a byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-outline-get-last-sibling)

Documentation

Move to previous heading of the same level, and return point.

If there is no such heading, do not move and return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-outline-get-last-sibling ()
  "Move to previous heading of the same level, and return point.
If there is no such heading, do not move and return nil."
  (let ((opoint (point))
	(level (funcall outline-level)))
    (hyrolo-outline-previous-visible-heading 1)
    (when (and (/= (point) opoint) (outline-on-heading-p))
      (while (and (> (funcall outline-level) level)
		  (not (bobp)))
	(hyrolo-outline-previous-visible-heading 1))
      (if (< (funcall outline-level) level)
	  (progn (goto-char opoint) nil)
        (point)))))