From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.help Subject: Re: quote bashslash in a shell command Date: Tue, 08 Jul 2014 11:59:19 +0800 Organization: the Church of Emacs Message-ID: <87k37ozejs.fsf@gmail.com> References: <87mwcmqwx2.fsf@kuiper.lan.informatimago.com> <87vbr9znsl.fsf@gmail.com> <87vbr9p4tf.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1404792015 5728 80.91.229.3 (8 Jul 2014 04:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2014 04:00:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 08 06:00:06 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X4MZX-0004Uv-Gj for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jul 2014 06:00:03 +0200 Original-Received: from localhost ([::1]:53831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4MZX-0005UT-95 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jul 2014 00:00:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4MZF-0005No-FU for help-gnu-emacs@gnu.org; Mon, 07 Jul 2014 23:59:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4MZ9-0001pe-Un for help-gnu-emacs@gnu.org; Mon, 07 Jul 2014 23:59:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4MZ9-0001pK-NM for help-gnu-emacs@gnu.org; Mon, 07 Jul 2014 23:59:39 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4MZ7-0004FI-IE for help-gnu-emacs@gnu.org; Tue, 08 Jul 2014 05:59:37 +0200 Original-Received: from amprx01x.nokia.com ([192.100.130.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 05:59:37 +0200 Original-Received: from william.xwl by amprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 05:59:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: amprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:5X+3ntGkNiGPsFJ/c4lsbFVhzX8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98573 Archived-At: "Pascal J. Bourguignon" 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