jove 4.9 (C-w in query replace doesn't always delete)

Rob McMahon cudcv at warwick.ac.uk
Mon Sep 12 21:48:38 AEST 1988


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 at uk.ac.warwick             ARPA:   cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England



More information about the Comp.sources.bugs mailing list