emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rgrep buglet


From: joakim
Subject: rgrep buglet
Date: Tue, 11 Aug 2009 16:26:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

I have this function:

(defun planner-grep-unfinished-tasks ()
  (interactive)
  ;;oddly, grep must have been run once interactively for this to work
  (let ((grep-find-template (concat grep-find-template "|sort -t: -k3")))
    (rgrep "#[ABCDEFGH][0-9]* *_" "*.muse" "~/Plans")))

Do the following in a fresh emacs:
m-x  planner-grep-unfinished-tasks RET

you get:

-*- mode: grep; default-directory: "~/Plans/" -*-
Grep started at Tue Aug 11 16:25:43

|sort -t: -k3
/bin/bash: -c: line 0: syntax error near unexpected token `|'
/bin/bash: -c: line 0: `|sort -t: -k3'

Grep exited abnormally with code 2 at Tue Aug 11 16:25:43

But if I 1st do:

m-x rgrep RET c-g

it works fine. Why is this?

-- 
Joakim Verona




reply via email to

[Prev in Thread] Current Thread [Next in Thread]