Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site godot.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!godot!massar From: massar@godot.UUCP (J.P. Massar) Newsgroups: net.emacs Subject: CCA Emacs bug fix: Message-ID: <1050@godot.UUCP> Date: Fri, 22-Feb-85 16:19:13 EST Article-I.D.: godot.1050 Posted: Fri Feb 22 16:19:13 1985 Date-Received: Sun, 24-Feb-85 01:38:02 EST Distribution: net Organization: Thinking Machines, Cambridge, MA Lines: 32 Fixed a regular expression bug. Repeat by: string: "caaad" pattern: c[a]*d Fix: in the procedure 'match_one_or_more' in the file e_regex.c replace the commented out line of code with the one above it. --------------------------------------------------------------------------- /* If the recursion didn't succeed, then does the termination */ /* condition hold at this point? If so, this is the maximal match */ if (!(more_node -> matched)) { if (next_pat == Nil) { set_match_bounds(more_node,start,esave); break; } match_at_position(next_pat,esave + 1,Nil); /* match_at_position(next_pat,curpos,Nil); */ if (next_pat -> matched) { set_match_bounds(more_node,start,esave); } } --------------------------------------------------------------------------- -- -- JP Massar, Thinking Machines Corporation, Cambridge, MA -- ihnp4!godot!massar -- massar@cca-unix