From: William Xu <william.xwl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: quote bashslash in a shell command
Date: Tue, 08 Jul 2014 11:59:19 +0800 [thread overview]
Message-ID: <87k37ozejs.fsf@gmail.com> (raw)
In-Reply-To: 87vbr9p4tf.fsf@kuiper.lan.informatimago.com
"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
next prev parent reply other threads:[~2014-07-08 3:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4940.1404662528.1147.help-gnu-emacs@gnu.org>
2014-07-06 16:22 ` quote bashslash in a shell command Pascal J. Bourguignon
2014-07-07 6:27 ` William Xu
2014-07-07 11:34 ` Aurélien Aptel
2014-07-07 15:27 ` Pascal J. Bourguignon
2014-07-08 3:59 ` William Xu [this message]
2014-07-08 5:04 ` Pascal J. Bourguignon
[not found] ` <mailman.4987.1404714478.1147.help-gnu-emacs@gnu.org>
2014-07-08 7:49 ` jduthen
2014-07-06 16:01 William Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k37ozejs.fsf@gmail.com \
--to=william.xwl@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.