Path: utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!think!compass!worley From: think!compass!worley@EDDIE.MIT.EDU (Dale Worley) Newsgroups: gnu.emacs Subject: shell-command-on-buffer Message-ID: <8810171921.AA04437@galaxy.compass.com> Date: 17 Oct 88 19:21:07 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 10 This is to go along with shell-command and shell-command-on-region: (defun shell-command-on-buffer (command &optional flag) "Execute string COMMAND in inferior shell with buffer as input; display output (if any) in temp buffer; Prefix arg means replace the buffer with it." (interactive "sShell command (on buffer): \nP") (shell-command-on-region (point-min) (point-max) command flag t)) Dale