Function: calc-prepend-to-register

calc-prepend-to-register is an autoloaded, interactive and byte-compiled function defined in calc-yank.el.gz.

Signature

(calc-prepend-to-register REGISTER START END &optional DELETE-FLAG)

Documentation

Copy the lines in the region to the beginning of register REGISTER.

With prefix arg, also delete the region.

Interactively, reads the register using register-read-with-preview.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-yank.el.gz
(defun calc-prepend-to-register (register start end &optional delete-flag)
  "Copy the lines in the region to the beginning of register REGISTER.
With prefix arg, also delete the region.

Interactively, reads the register using `register-read-with-preview'."
  (interactive (list (register-read-with-preview "Prepend to register: ")
		     (region-beginning) (region-end)
		     current-prefix-arg))
  (if (eq major-mode 'calc-mode)
      (calc-add-to-register register start end t delete-flag)
    (prepend-to-register register start end delete-flag)))