Function: m4-m4-region

m4-m4-region is an interactive and byte-compiled function defined in m4-mode.el.gz.

Signature

(m4-m4-region &optional START END)

Documentation

Send the contents of the region between START and END to m4.

When nil, START and END default to the active region.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/m4-mode.el.gz
(defun m4-m4-region (&optional start end)
  "Send the contents of the region between START and END to m4.
When nil, START and END default to the active region."
  (interactive "r")
  (let ((buf "*m4-output*"))
    (shell-command-on-region
     (or start (region-beginning)) (or end (region-end))
     (mapconcat #'shell-quote-argument (cons m4-program m4-program-options) " ")
     buf nil nil nil (use-region-noncontiguous-p))
    (pop-to-buffer buf)))