Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!prls!mips!wilkes From: wilkes@mips.COM (John Wilkes) Newsgroups: comp.emacs Subject: Re: Need mlisp for "prefix-region" Message-ID: <1670@electron.mips.COM> Date: 24 Feb 88 18:36:25 GMT References: <8802232111.AA14048@icst-cmr.arpa.ARPA> Reply-To: wilkes@electron.UUCP (John Wilkes) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 21 In article <8802232111.AA14048@icst-cmr.arpa.ARPA> rbj@ICST-CMR.ARPA (Root Boy Jim) writes: > > From: Naim Abdullah > > Mg has a nice function > called "prefix-region" to do that but surprisingly I could not ... >^U ESC | sed 's/^/>/' RET. Note also the simpler regexp. No need to pipe the region to sed... Try this: query-replace-regexp: Replace some things after point matching REGEXP with TO-STRING. As each match is found, the user must type a character saying what to do with it. For directions, type C-h at that time. John -- -- @work: -- {decwrl,ames,pyramid,prls}!mips!wilkes -- OR, for those of great faith: -- wilkes@mips.com