Function: calc-embedded-mark-formula

calc-embedded-mark-formula is an autoloaded, interactive and byte-compiled function defined in calc-embed.el.gz.

Signature

(calc-embedded-mark-formula &optional BODY-ONLY)

Documentation

Put point at the beginning of this Calc formula, mark at the end.

This normally marks the whole formula, including surrounding delimiters. With any prefix argument, marks only the formula itself.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-embed.el.gz
(defun calc-embedded-mark-formula (&optional body-only)
  "Put point at the beginning of this Calc formula, mark at the end.
This normally marks the whole formula, including surrounding delimiters.
With any prefix argument, marks only the formula itself."
  (interactive "P")
  (and (eq major-mode 'calc-mode)
       (error "This command should be used in a normal editing buffer"))
  (let (calc-embed-top calc-embed-bot calc-embed-outer-top calc-embed-outer-bot)
    (save-excursion
      (calc-embedded-find-bounds body-only))
    (push-mark (if body-only calc-embed-bot calc-embed-outer-bot) t)
    (goto-char (if body-only calc-embed-top calc-embed-outer-top))))