Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!udel!burdvax!bpa!sjuvax!tmoody From: tmoody@sjuvax.UUCP (T. Moody) Newsgroups: comp.emacs Subject: Micro-emacs replacement strings Message-ID: <1538@sjuvax.UUCP> Date: 21 Apr 88 18:40:10 GMT Reply-To: tmoody@sjuvax.UUCP (T. Moody) Organization: St. Joseph's University, Phila. PA. Lines: 34 The international language Esperanto has several letters with diacritical marks. These letters (consonants) are not ascii symbols, so one convention is to place an 'x' after the letter that would otherwise have a '^' over it. Frequently, I need to convert a document of this sort to a LaTeX input file, with the control string for printing that circumflex. I am using the micro-emacs 3.9i editor. Thus, what I want is to be able to take a string such as Cxu sxi gxemas? ... and convert it to this: \^{C}u \^{s}i \^{g}emas? First, I turn on the exact and magic modes. Next I globally replace all occurrences of 'x' with '}'. This gives me C}u s}i g}emas? Now, it seems to me that what I *ought* to be able to do is search for all strings that match .} and use as a replacement string \\^{& right? But it doesn't work out that way. What am I doing wrong? -- Todd Moody * {allegra|astrovax|bpa|burdvax}!sjuvax!tmoody * SJU Phil. Dept. "The wind is not moving. The flag is not moving. Mind is moving."