Function: smart-eolp

smart-eolp is a byte-compiled function defined in hui-mouse.el.

Signature

(smart-eolp)

Documentation

Return t if point is at the end of a visible line.

This includes the last buffer line if it contains any non-whitespace characters. It excludes a blank line at the end of the buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-eolp ()
  "Return t if point is at the end of a visible line.
This includes the last buffer line if it contains any non-whitespace
characters.  It excludes a blank line at the end of the buffer."
  ;; smart-helm handles eol for helm buffers
  (unless (or (and (smart-helm-alive-p) (equal (helm-buffer-get) (buffer-name)))
	      ;; Allow for org global cycling at start of buffer on a
	      ;; non-heading line in Hyperbole doc files when
	      ;; displayed from Hyperbole menu items.
	      (smart-org-bob-and-non-heading-p)
	      ;; If there is a flymake diagnostic issue at eol,
	      ;; drop through this clause to handle it later.
	      (and (featurep 'hsys-flymake)
		   (boundp 'flymake-mode)
		   flymake-mode
		   (eolp)
		   (hsys-flymake-get-issue-at-position)))
    (if (eq major-mode 'kotl-mode)
	(and (not (kotl-mode:eobp)) (kotl-mode:eolp t))
      (and (not (smart-eobp)) (eolp)
	   (or (not (smart-outline-char-invisible-p))
	       (not (smart-outline-char-invisible-p (1- (point)))))))))