Path: utzoo!attcan!uunet!mcvax!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.sources.bugs Subject: jove 4.9 (C-w in query replace doesn't always delete) Message-ID: <47@titania.warwick.ac.uk> Date: 12 Sep 88 11:48:38 GMT Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Organization: Computing Services, Warwick University, UK Lines: 27 Try this experiment in teachjove. Go to the beginning of the paragraph after the table of alternatives to query-replace-string. Do a query-replace of edit by edt, say. At the first match type C-w, then C-x C-c without making any more changes, the word appears to have been deleted. At the next match just hit return to leave query-replace. Now type C-l C-l (or try to insert something near the beginning of the line where the word was deleted), the deleted word re-appears. This patch to re1.c appears to fix the problem. RCS file: re1.c,v retrieving revision 1.1 diff -c -r1.1 re1.c *** /tmp/,RCSt1a03758 Mon Sep 12 12:47:01 1988 --- re1.c Mon Sep 12 12:37:38 1988 *************** *** 93,98 **** --- 93,99 ---- case CTL('W'): re_dosub(linebuf, YES); numdone += 1; + modify(); offset = curchar = REbom; makedirty(curline); /* Fall into ... */ -- UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England