Path: utzoo!attcan!uunet!mcvax!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.sources.bugs Subject: jove 4.9 (undo skips current replace) Message-ID: <48@titania.warwick.ac.uk> Date: 12 Sep 88 12:09:31 GMT Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Organization: Computing Services, Warwick University, UK Lines: 35 In query-replace-string, if there is nothing to undo, C-u skips the current replacement. A more friendly action would seem to be to ring the bell, and let you have another go at this one: (your line numbers will vary) RCS file: re1.c,v retrieving revision 1.2 diff -c -r1.2 re1.c *** /tmp/,RCSt1a03827 Mon Sep 12 13:06:59 1988 --- re1.c Mon Sep 12 12:52:08 1988 *************** *** 107,114 **** case CTL('U'): case 'U': ! if (UNDO_lp == 0) ! continue; lp = UNDO_lp; lp->l_dline = UNDO_da | DIRTY; offset = 0; --- 109,118 ---- case CTL('U'): case 'U': ! if (UNDO_lp == 0) { ! rbell(); ! goto reswitch; ! } lp = UNDO_lp; lp->l_dline = UNDO_da | DIRTY; offset = 0; -- 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