[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quote bashslash in a shell command
From: |
William Xu |
Subject: |
Re: quote bashslash in a shell command |
Date: |
Tue, 08 Jul 2014 11:59:19 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com> writes:
> If you use the paredit minor mode in emacs lisp mode buffers, then M-"
> paredit-doublequote will double the backquotes.
Neat! Thanks.
I use paredit, but not this paredit-doublequote.
> Unfortunately, since | is an escape character in lisp, if you paste a
> shell pipe with an odd number of | in elisp, select it and M-", it will
> signal an Unbalanced parentheses error and not do the work.
>
> Instead you can add a | at the end to make an even number of them,
> select the shell expression and type M-".
Seems I don't have this problem.
Aurélien's my-raw-string is also a good work around.
My paredit.el git head: 67d6a4f5ad505af98a311bd955dbe7bd2fc4e0b1
--
William
http://xwl.appspot.com