Function: tpu-cut-text
tpu-cut-text is an interactive and byte-compiled function defined in
tpu-edt.el.gz.
Signature
(tpu-cut-text)
Documentation
Delete the selected region.
The text is saved for the tpu-paste command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/tpu-edt.el.gz
(exchange-point-and-mark))))))) ; point -> upper-left
(defun tpu-cut-text nil
"Delete the selected region.
The text is saved for the tpu-paste command."
(interactive)
(cond ((tpu-mark)
(cond (tpu-rectangular-p
(tpu-arrange-rectangle)
(picture-clear-rectangle (point) (tpu-mark) (not overwrite-mode))
(tpu-unselect t))
(t
(setq tpu-last-deleted-region
(buffer-substring (tpu-mark) (point)))
(delete-region (tpu-mark) (point))
(tpu-unselect t))))
((tpu-check-match)
(let ((beg (tpu-match-beginning)) (end (tpu-match-end)))
(setq tpu-last-deleted-region (buffer-substring beg end))
(delete-region beg end)
(tpu-unset-match)))
(t
(tpu-error "No selection active."))))