Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!ICST-CMR.ARPA!rbj From: rbj@ICST-CMR.ARPA (Root Boy Jim) Newsgroups: comp.emacs Subject: Need mlisp for "prefix-region" Message-ID: <8802232111.AA14048@icst-cmr.arpa.ARPA> Date: 23 Feb 88 21:11:08 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 20 From: Naim Abdullah Mg has a nice function called "prefix-region" to do that but surprisingly I could not find an equivalent in GnuEmacs 18.48. So when I am running GnuEmacs, I have to pipe the region through a "sed s/./>&/p", yank it out of the other window and paste it into my buffer and kill the old region. Not really. The function `shell-command-on-region', when given a prefix arg, replaces the region with the command output. So you can type ^U ESC | sed 's/^/>/' RET. Note also the simpler regexp. Naim Abdullah Dept. of EECS, Northwestern University Internet: naim@eecs.nwu.edu Uucp: {ihnp4, chinet, gargoyle}!nucsrl!naim (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 We are now enjoying total mutual interaction in an imaginary hot tub...