Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!yale!Ram-Ashwin From: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Newsgroups: comp.emacs Subject: EGREP -- Addition to COMPILE.EL for GNU Emacs Keywords: egrep grep compile gnu emacs Message-ID: <58475@yale-celray.yale.UUCP> Date: 26 Apr 89 15:12:16 GMT Sender: root@yale.UUCP Reply-To: Ram-Ashwin@cs.yale.edu (Ashwin Ram) Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 19 GNU Emacs 18.52.26 of Sun Apr 23 1989 on leo.ring.cs.yale.edu (Domain/OS) The following function, analogous to GREP, is a useful addition to COMPILE.EL: ;; Ashwin Ram, 4/11/89. (defun egrep (command) "Run egrep, with user-specified args, and collect output in a buffer. While egrep runs asynchronously, you can use the \\[next-error] command to find the text that egrep hits refer to." (interactive "sRun egrep (with args): ") (compile1 (concat "egrep -n " command " /dev/null") "No more grep hits" "egrep")) -- Ashwin. ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,ucbvax,harvard,cmcl2,...}!yale!Ram-Ashwin BITNET: Ram@yalecs