Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP Newsgroups: net.emacs Subject: Re: Question about regular expression searches Message-ID: <1375@umcp-cs.UUCP> Date: Tue, 2-Aug-83 16:55:02 EDT Article-I.D.: umcp-cs.1375 Posted: Tue Aug 2 16:55:02 1983 Date-Received: Wed, 3-Aug-83 04:06:21 EDT References: <852@pur-phy.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 26 The fix to the ``can't answer no'' problem in re-query-replaces for "^", "$", or "^$" is: search.c.old: case 'n': case '\177': case Ctl ('G'): break; search.c: case 'n': case '\177': + if (global.loc1 == global.loc2) + DotRight (1); case Ctl ('G'): break; (This is in PerformReplace() in search.c, near line 313. If you're using U of MD Emacs "global" is called "search_globals".) - Chris -- In-Real-Life: Chris Torek, Univ of MD Comp Sci UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris.umcp-cs@UDel-Relay