[gnu.emacs.help] Line oriented commands?

darrylo@HPNMXX.HP.COM (03/23/91)

> I was wondering if anyone has written lisp code for gnu emacs that
> allows one to specify a range of lines for a region command to operate
> on?  Something that provides the same sort of functionality as (cough
> cough) vi.

     Standard GNU Emacs has a command, `shell-command-on-region',
which is normally bound to `M-|':

-------------------------------------------------------------------------------
shell-command-on-region:
Execute string COMMAND in inferior shell with region as input.
Normally display output (if any) in temp buffer;
Prefix arg means replace the region with it.
Noninteractive args are START, END, COMMAND, FLAG.
Noninteractively FLAG means insert output in place of text from START to END,
and put point at the end, but don't alter the mark.
-------------------------------------------------------------------------------

     -- Darryl Okahata
	UUCP: {hplabs!, hpcea!, hpfcla!} hpnmd!darrylo
	Internet: darrylo%hpnmd@relay.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.