home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / emacs / 3808 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!mcsun!sunic!kth.se!news.kth.se!d90-awe
  3. From: d90-awe@dront.nada.kth.se (Assar Westerlund)
  4. Subject: Re: insert shell output
  5. In-Reply-To: speno@bluegill.rutgers.edu's message of 10 Dec 92 20:05:35 GMT
  6. Message-ID: <D90-AWE.92Dec12025405@dront.nada.kth.se>
  7. Sender: usenet@kth.se (Usenet)
  8. Nntp-Posting-Host: dront.nada.kth.se
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. References: <SPENO.92Dec10150535@bluegill.rutgers.edu>
  11. Distribution: comp.emacs
  12. Date: Sat, 12 Dec 1992 01:54:05 GMT
  13. Lines: 16
  14.  
  15. In article <SPENO.92Dec10150535@bluegill.rutgers.edu> speno@bluegill.rutgers.edu (John P. Speno) writes:
  16.  
  17.    Is there an emacs function which will insert the output from a shell
  18.    command into the current buffer? Something like what 
  19.    shell-command-on-region does but in the current buffer. 
  20.  
  21. shell-command-on-region:
  22. Execute string COMMAND in inferior shell with region as input.
  23. Normally display output (if any) in temp buffer;
  24. Prefix arg means replace the region with it.
  25. Noninteractive args are START, END, COMMAND, FLAG.
  26. Noninteractively FLAG means insert output in place of text from START to END,
  27. and put point at the end, but don't alter the mark.
  28.  
  29. That is. Mark an empty region, then execute shell-command-on-region
  30. with an prefix argument.
  31.