Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!mit-eddie!uw-beaver!ssc-vax!savage From: savage@ssc-vax.UUCP (Lowell Savage) Newsgroups: comp.emacs Subject: Re: GNU Emacs regexp wish list addition Message-ID: <1238@ssc-vax.UUCP> Date: Wed, 20-May-87 13:32:39 EDT Article-I.D.: ssc-vax.1238 Posted: Wed May 20 13:32:39 1987 Date-Received: Sat, 23-May-87 10:17:43 EDT Organization: Boeing Aerospace Corp., Seattle WA Lines: 15 How about a way of running a function or a shell command (with arguments) to produce a regexp to be matched. For instance: "^\.so \(\(\%ls | conv_sp_bar\%\)\)" would run a shell with whatever is inside the matching "\%"'s. So it would run "ls" and pipe the output through "conv_sp_bar" to convert the whitespace to "\)\|\(" strings. Thus, with a directory containing the files "foo", "bar", and "fubar", the regular expression would contain: "^\.so \(\(foo\)\|\(bar\)\|\(fubar\)\)". A similar thing is for lisp functions is desired too, even though I can't think of an application right off-hand. Lowell Savage uw-beaver!ssc-vax!savage Standard disclaimer here--these are my thoughts, ideas and suggestions only...