Function: hui-select-set-region

hui-select-set-region is a byte-compiled function defined in hui-select.el.

Signature

(hui-select-set-region BEGINNING END)

Documentation

Set the cons cell held by the variable hui-select-region to (BEGINNING . END).

Return the updated cons cell.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-select.el
(defun hui-select-set-region (beginning end)
  "Set the cons cell held by the variable `hui-select-region' to (BEGINNING . END).
Return the updated cons cell."
  (setcar hui-select-region beginning)
  (setcdr hui-select-region end)
  (unless (or beginning end)
    (setcar hui-select-old-region nil)
    (setcdr hui-select-old-region nil))
  (if (and (not (memq hui-select-previous '(buffer markup-pair)))
	   (integerp beginning) (integerp end)
	   (= beginning 1) (= end (1+ (buffer-size))))
      ;; If we selected the whole widened buffer and not matching a
      ;; markup-pair, make sure that 'thing' type is 'buffer'.
      nil
    hui-select-region))