Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!ocsmd!ocsmd.OCS.COM!andy From: andy@ocsmd.OCS.COM (Andy Liwen) Newsgroups: comp.emacs Subject: Re: MicroEmacs replace-string query Message-ID: <173@ocsmd.OCS.COM> Date: 25 Oct 88 12:56:38 GMT Article-I.D.: ocsmd.173 References: <801@epistemi.ed.ac.uk> Sender: usenet@ocsmd.OCS.COM Reply-To: andy@ocsmd.OCS.COM (Andy Liwen) Organization: Online Computer Systems, Inc. Lines: 27 In article <801@epistemi.ed.ac.uk> rda@epistemi.ed.ac.uk (Robert Dale) writes: >Sometimes, in MicroEmacs (I'm using 3.9e), I find I want to replace >^Ms at the end of lines by ^Js (sometimes I grab text from another >system where this is the convention, and I want to change it in the >editor). However, if I say > > replace-string ^Q ^M ^Q ^J > >(which is what I'd do in Gnu, for example) both the ^M and the ^J >appear on the screen as s, and no replacements are made. > >Does anyone know of a way around this? Miraculously, microEMACS uses the tab character as an escape character. In input.c the function getstring() does this wonderous deed. We have patched the routine to also check for a backslash as escape. You can get microE to do the search and replace you want by prefixing these control symbols with the escape, [ed. ug!], symbol. //Andy Liwen -- Andrew B. Liwen 301/353-8514 Online Computer Systems andy@brave.OCS.COM 20251 Century Blvd. ..!uunet!ocsmd!andy Germantown, MD 20874 ..{ames|rutgers}!netsys!ocsmd!andy