]> code.delx.au - gnu-emacs-elpa/commit
counsel-ag: Fix escaping problem
authorjustbur <justin@burkett.cc>
Mon, 7 Mar 2016 01:59:14 +0000 (20:59 -0500)
committerjustbur <justin@burkett.cc>
Mon, 7 Mar 2016 01:59:14 +0000 (20:59 -0500)
commit79f9cdab81526246018642421b3b0f144991b1d6
treee31e45c0e6232b629ac16ff3afb20ddbfb1c7db6
parentf1c72331a7025c806f4a2e4e536484a5839403a3
counsel-ag: Fix escaping problem

Before this it is not possible to pass the string "string1\|string2" to
ag, because inputing string1\|string2 gets translated into
"string1\\|string2" via %S.

Instead I use %s and shell-quote-argument to take care of escaping for
the command line, which fixes the issue for me.

Please test.

Also see https://github.com/syl20bnr/spacemacs/issues/5378
counsel.el