Function: calculator-paste
calculator-paste is an interactive and byte-compiled function defined
in calculator.el.gz.
Signature
(calculator-paste ARG)
Documentation
Paste a value from the kill-ring.
With a prefix argument, paste the raw string as a sequence of key presses, which can be used to paste expressions. Note that this is literal; examples: spaces will store values, pasting "1+2" will not produce 3 if it's done you're entering a number or after a multiplication.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/calculator.el.gz
(defun calculator-paste (arg)
"Paste a value from the `kill-ring'.
With a prefix argument, paste the raw string as a sequence of key
presses, which can be used to paste expressions. Note that this
is literal; examples: spaces will store values, pasting \"1+2\"
will not produce 3 if it's done you're entering a number or after
a multiplication."
(interactive "P")
(let ((str (current-kill 0)))
(if arg
(setq unread-command-events
`(,@(listify-key-sequence str) ,@unread-command-events))
(calculator-put-value (calculator-string-to-number str)))))