Function: ex-command
ex-command is a byte-compiled function defined in vip.el.gz.
Signature
(ex-command)
Documentation
execute shell command
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
(defun ex-command ()
"execute shell command"
(let (command)
(with-current-buffer " *ex-working-space*"
(skip-chars-forward " \t")
(set-mark (point))
(end-of-line)
(setq command (buffer-substring (mark) (point))))
(if (null ex-addresses)
(shell-command command)
(let ((end (car ex-addresses)) (beg (car (cdr ex-addresses))))
(if (null beg) (setq beg end))
(save-excursion
(goto-char beg)
(set-mark end)
(vip-enlarge-region (point) (mark))
(shell-command-on-region (point) (mark) command t t))
(goto-char beg)))))