Function: logview--maybe-complain-about-movement

logview--maybe-complain-about-movement is a natively compiled function defined in logview.el.

Signature

(logview--maybe-complain-about-movement DIRECTION REMAINING &optional TYPE)

Source Code

;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defun logview--maybe-complain-about-movement (direction remaining &optional type)
  ;; Using 'equal' since 'remaining' may also be nil.
  (unless (equal remaining 0)
    (user-error (pcase type
                  (`nil          (if (> direction 0)         "No next (visible) entry"              "No previous (visible) entry"))
                  (`as-important (if (> direction 0)         "No next (visible) as important entry" "No previous (visible) as important entry"))
                  (`section      (concat (if (> direction 0) "No next (visible) section"            "No previous (visible) section")
                                         (if (logview-sections-thread-bound-p) " in this thread" "")))
                  (_             (if (> direction 0) "No next (visible) entry in view `%s'" "No previous (visible) entry in view `%s'")))
                type)))