Function: use-region-end

use-region-end is a byte-compiled function defined in simple.el.gz.

Signature

(use-region-end)

Documentation

Return the end of the region if use-region-p returns non-nil.

This is a convenience function to use in interactive forms of commands that need to act on the region when it is active. See also the R code letter for interactive.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun use-region-end ()
  "Return the end of the region if `use-region-p' returns non-nil.
This is a convenience function to use in `interactive' forms of
commands that need to act on the region when it is active.
See also the `R' code letter for `interactive'."
  (and (use-region-p) (region-end)))