Function: cua-copy-region-to-global-mark
cua-copy-region-to-global-mark is an interactive and byte-compiled
function defined in cua-gmrk.el.gz.
Signature
(cua-copy-region-to-global-mark START END)
Documentation
Copy region to global mark buffer/position.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/cua-gmrk.el.gz
(defun cua-copy-region-to-global-mark (start end)
"Copy region to global mark buffer/position."
(interactive "r")
(if (cua--global-mark-active)
(let ((src-buf (current-buffer)))
(save-excursion
(if (equal (marker-buffer cua--global-mark-marker) src-buf)
(let ((text (cua--filter-buffer-noprops start end)))
(goto-char (marker-position cua--global-mark-marker))
(insert text))
(set-buffer (marker-buffer cua--global-mark-marker))
(goto-char (marker-position cua--global-mark-marker))
(insert-buffer-substring-as-yank src-buf start end))
(cua--activate-global-mark)
(message "Copied %d to global mark in %s:%d"
(abs (- end start))
(buffer-name (marker-buffer cua--global-mark-marker))
(marker-position cua--global-mark-marker))))
(cua--deactivate-global-mark)
(message "No Global Mark")))