Function: hui-select-sexp-up

hui-select-sexp-up is a byte-compiled function defined in hui-select.el.

Signature

(hui-select-sexp-up POS)

Documentation

Return (start . end) of the sexp enclosing the selected area or nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
(defun hui-select-sexp-up (pos)
  "Return (start . end) of the sexp enclosing the selected area or nil."
  (setq hui-select-previous 'sexp-up)
  ;; Keep going up and backward in sexps.  This means that hui-select-sexp-up
  ;; can only be called after hui-select-sexp or after itself.
  (setq pos (or (car hui-select-region) pos))
  (save-excursion
    (goto-char pos)
    (ignore-errors
      (hui-select-set-region (progn (backward-up-list 1) (point))
			     (progn (forward-list 1) (point))))))