Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!umich!samsung!munnari.oz.au!csc!csc3!arp!gustav From: gustav@arp.anu.oz.au (Zdzislaw Meglicki) Newsgroups: comp.windows.x Subject: xedit is brain-damaged Message-ID: <1990Feb1.052556.10747@arp.anu.oz.au> Date: 1 Feb 90 05:25:56 GMT Organization: Automated Reasoning Project, ANU, Australia Lines: 19 Xedit's search and replace function is brain-damaged and can lead to a disaster. This is what has happened to one of my users. While working on a TeX document he found that instead of using \~ he has used just ~ in several places. He therefore typed CTRL-S to get the search-replace window and asked xedit to search for ~ and replace it with \~. Xedit then did the following thing: it would find the first occurrence of ~, then it would convert it to \~, then it would position the insert cursor in front of \~, would find ~ again (the same one!), would put a second \ in front of ~, and so ad infinitum. No way to stop the stupid thing without killing the window! The solution is, of course, to make sure that the insert point is placed after the replaced string, not in front of it. If anyone has a quick fix to this one, please, reply to the net and/or to: gustav@arp.anu.oz.au Gustav Meglicki, Automated Reasoning Project, The Australian National University, GPO Box 4, Canberra, ACT, 2601, Australia