Function: calc-yank

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

Signature

(calc-yank RADIX)

Documentation

Yank a value into the Calculator buffer.

Valid numeric prefixes for RADIX: 0, 2, 6, 8 No radix notation is prepended for any other numeric prefix.

If RADIX is 2, prepend "2#" - Binary.
If RADIX is 8, prepend "8#" - Octal.
If RADIX is 0, prepend "10#" - Decimal. If RADIX is 6, prepend "16#" - Hexadecimal.

If RADIX is a non-nil list (created using C-u (universal-argument)), the user will be prompted to enter the radix in the minibuffer.

If RADIX is nil or if the yanked string already has a calc radix prefix, the yanked string will be passed on directly to the Calculator buffer without any alteration.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-yank.el.gz
;;;###autoload
(defun calc-yank (radix)
  "Yank a value into the Calculator buffer.

Valid numeric prefixes for RADIX: 0, 2, 6, 8
No radix notation is prepended for any other numeric prefix.

If RADIX is 2, prepend \"2#\"  - Binary.
If RADIX is 8, prepend \"8#\"  - Octal.
If RADIX is 0, prepend \"10#\" - Decimal.
If RADIX is 6, prepend \"16#\" - Hexadecimal.

If RADIX is a non-nil list (created using \\[universal-argument]), the user
will be prompted to enter the radix in the minibuffer.

If RADIX is nil or if the yanked string already has a calc radix prefix, the
yanked string will be passed on directly to the Calculator buffer without any
alteration."
  (interactive "P")
  (calc-yank-internal radix (current-kill 0 t)))