Function: logview-go-to-section-beginning

logview-go-to-section-beginning is an interactive and natively compiled function defined in logview.el.

Signature

(logview-go-to-section-beginning &optional N SET-VIEW-IF-NEEDED)

Documentation

Move point to the beginning of current section.

If the actual first section's entry is not visible, go to the earliest visible one.

If an argument N is specified, move N - 1 sections forward first (for consistency with standard commands like C-a). Sections that consist only of hidden entries (due to any reasons) are ignored.

When called interactively and there is no section-defining view yet (or it got deleted or renamed), ask for the view first. You can use command \<logview-mode-map>M-x logview-set-section-view (logview-set-section-view) to change that later.

Key Bindings

logview-mode-map c a

Source Code

;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
;;; Section commands.

(defun logview-go-to-section-beginning (&optional n set-view-if-needed)
  "Move point to the beginning of current section.
If the actual first section's entry is not visible, go to the
earliest visible one.

If an argument N is specified, move N - 1 sections forward
first (for consistency with standard commands like `C-a').
Sections that consist only of hidden entries (due to any reasons)
are ignored.

When called interactively and there is no section-defining view
yet (or it got deleted or renamed), ask for the view first.  You
can use command `\\<logview-mode-map>\\[logview-set-section-view]' to change that later."
  ;; Second "p" is only needed so that SET-VIEW-IF-NEEDED is non-nil when called
  ;; interactively.
  (interactive "p\np")
  (logview--std-temporarily-widening
    (logview--do-forward-section-as-command set-view-if-needed (if n (1- n) 0))))