Function: eglot--region-bounds

eglot--region-bounds is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--region-bounds)

Documentation

Region bounds if active, else bounds of things at point.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--region-bounds ()
  "Region bounds if active, else bounds of things at point."
  (if (use-region-p) `(,(region-beginning) ,(region-end))
    (let ((boftap (bounds-of-thing-at-point 'sexp)))
      (list (car boftap) (cdr boftap)))))