[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grep
From: |
Alexandre Brillant |
Subject: |
Re: Grep |
Date: |
Thu, 21 Feb 2002 19:45:39 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 |
fabrice bauzac wrote:
On Wed, Feb 20, 2002 at 07:41:19PM +0100, Alexandre Brillant wrote:
Is there a way to force the grep command on the current buffer ?
Maybe you can try
C-x h M-| grep myregex RET
You can find documentation about M-! and M-| in the texinfo doc,
(elisp)Single Shell.
Thank you for your response, however this solution doesn't work.
I catch a look at the 'compile.el' package including the grep support :
It seems that the 'call-process' with 'nil' on the second parameter will
invoke a new buffer... The only think
to do is a :
(call-process grep-program t nil nil
"-e" "foo" null-device)
(error nil))
This is the same problem for other command, if someone knows who to
contact, it will be
interesting to correct this problem through a new emacs option...
Here the part of the originale compile.el :
(defun grep-compute-defaults ()
(unless grep-command
(setq grep-command
(if (equal (condition-case nil ; in case "grep" isn't in exec-path
(call-process grep-program nil nil nil
"-e" "foo" null-device)
(error nil))
1)
(format "%s -n -e " grep-program)
(format "%s -n " grep-program))))
- Grep, Alexandre Brillant, 2002/02/20
- Re: Grep, fabrice bauzac, 2002/02/20
- Re: Grep,
Alexandre Brillant <=
- Re: Grep, Fernando Dobladez, 2002/02/22
- Re: Grep, Alexandre Brillant, 2002/02/22