Function: calc-kill-region
calc-kill-region is an autoloaded, interactive and byte-compiled
function defined in calc-yank.el.gz.
Signature
(calc-kill-region TOP BOT &optional NO-DELETE)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-yank.el.gz
(defun calc-kill-region (top bot &optional no-delete)
(interactive "r")
(if (eq major-mode 'calc-mode)
(calc-wrapper
(calc-force-refresh)
(calc-set-command-flag 'no-align)
(let* ((top-num (calc-locate-cursor-element top))
(top-pos (save-excursion
(calc-cursor-stack-index top-num)
(point)))
(bot-num (calc-locate-cursor-element (1- bot)))
(bot-pos (save-excursion
(calc-cursor-stack-index (max 0 (1- bot-num)))
(point)))
(num (- top-num bot-num -1)))
(copy-region-as-kill top-pos bot-pos)
(setq calc-last-kill (cons (car kill-ring)
(calc-top-list num bot-num)))
(if (not no-delete)
(calc-pop-stack num bot-num))))
(if no-delete
(copy-region-as-kill top bot)
(kill-region top bot))))