Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!brazos.rice.edu!jiang From: jiang@bohr.rice.edu (Jun Jiang) Newsgroups: gnu.emacs Subject: List and edit lines containing certain strings ? Message-ID: Date: 27 Feb 90 19:44:13 GMT Sender: root@rice.edu Distribution: gnu Organization: Chemistry Department, Rice University Lines: 16 I am wondering how hard it will be to let gnu-emacs do the following: 1). Upon request, list all lines (and only these lines) which contain a certain string in the current buffer. For example, list those lines containing ``real*8'' in a FORTRAN program. 2). Edit these lines in the new buffer. For example, change some of the ``real*8'' to ``real*4''. 3). When the changes are done, exit the new buffer and return to the original one. Of course, the changes should not be lost. The reason I ask for this is that I have used an editor which has this feature. It was really nice because you can clearly see the changes you made to the file.