Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.emacs Subject: Re: MicroEmacs replace-string query Message-ID: <12413@steinmetz.ge.com> Date: 25 Oct 88 18:11:06 GMT Article-I.D.: steinmet.12413 References: <801@epistemi.ed.ac.uk> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 25 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. In input.c there is code about line 413 to change return into newline. I found this to be a problem sometimes, and changed it. The code follows a comment about the change, and the original looks like: if (c == (CTRL | 0x4d)) change the code to read: if (c == (CTRL | 0x4d) && !quotef) This will cause the return to be taken as is in search and replace strings. I just tried it, and 3.9e was the last version I got working this way. The behavior you describe is in 3.9n and 3.9p. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me