Function: cua--copy-rectangle-to-global-mark
cua--copy-rectangle-to-global-mark is a byte-compiled function defined
in cua-gmrk.el.gz.
Signature
(cua--copy-rectangle-to-global-mark AS-TEXT)
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/cua-gmrk.el.gz
(defun cua--copy-rectangle-to-global-mark (as-text)
;; Copy rectangle to global mark buffer/position.
(if (cua--global-mark-active)
(let (;; (src-buf (current-buffer))
(text (cua--extract-rectangle)))
(with-current-buffer (marker-buffer cua--global-mark-marker)
(goto-char (marker-position cua--global-mark-marker))
(if as-text
(while text
(insert-for-yank (car text))
(if (setq text (cdr text))
(insert "\n")))
(cua--insert-rectangle text 'auto))
(cua--activate-global-mark)
(message "Copied rectangle to global mark in %s:%d"
(buffer-name (marker-buffer cua--global-mark-marker))
(marker-position cua--global-mark-marker))))
(cua--deactivate-global-mark)
(message "No Global Mark")))