Function: edt-cut-or-copy
edt-cut-or-copy is an interactive and byte-compiled function defined
in edt.el.gz.
Signature
(edt-cut-or-copy)
Documentation
Cuts (or copies) selected text to kill ring.
Cuts selected text if buffer-read-only is nil.
Copies selected text if buffer-read-only is t.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; CUT or COPY
;;;
(defun edt-cut-or-copy ()
"Cuts (or copies) selected text to kill ring.
Cuts selected text if `buffer-read-only' is nil.
Copies selected text if `buffer-read-only' is t."
(interactive)
(if buffer-read-only
(edt-copy)
(edt-cut)))