[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quote bashslash in a shell command
From: |
Pascal J. Bourguignon |
Subject: |
Re: quote bashslash in a shell command |
Date: |
Tue, 08 Jul 2014 07:04:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
William Xu <william.xwl@gmail.com> writes:
> "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.
It depends whether you are in emacs-lisp-mode or lisp-mode.
Indeed, in emacs-lisp-mode, | is not an escape character, so the problem
doesn't occur. I tried it in lisp-mode.
--
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ? C'est le moment d'acheter !"