Function: hui:kill-region-internal

hui:kill-region-internal is a byte-compiled function defined in hui.el.

Signature

(hui:kill-region-internal BEG END &optional REGION)

Documentation

Invoke context-sensitive kill-region command over BEG and END.

Third optional arg, REGION, when non-nil is sent to any call of kill-region and used to invoke the region-extract-function which determines the region, ignoring BEG and END.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui.el
(defun hui:kill-region-internal (beg end &optional region)
  "Invoke context-sensitive kill-region command over BEG and END.
Third optional arg, REGION, when non-nil is sent to any call of
`kill-region' and used to invoke the `region-extract-function'
which determines the region, ignoring BEG and END."
  (setq this-command #'kill-region)
  (cond ((derived-mode-p 'kotl-mode)
         (kotl-mode:kill-region beg end))
	((and (fboundp 'dynamic-completion-mode)
	      dynamic-completion-mode
	      (eq last-command 'complete))
	 (delete-region (point) cmpl-last-insert-location)
	 (insert cmpl-original-string)
	 (setq completion-to-accept nil))
	(t (kill-region beg end region))))