Wilfred/ag.el — pull request #56 by Fuco1 (2014-07-10 11:24:34+00:00)
Title: Quote the directory and the xargs input

We need to quote both the directory and the output from ag, beacuse xargs is stupid.

When ag supports `-0` argument, we can simply pipe into `xargs -0`, but until then we need to do the quoting manually.

`sed` replaces `'` with `\'`, then we wrap the entire file name with `' '`.