From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Strip text properties from string code block arguments Date: Sun, 12 Jan 2014 12:43:45 +0100 Message-ID: <87zjn1juha.fsf@bzg.ath.cx> References: <52CC38B1.7060107@gmail.com> <87wqia1lmi.fsf@bzg.ath.cx> <52CD8A77.1060908@gmail.com> <871u0g3n5d.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2JSO-0001z7-9t for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 06:44:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2JSJ-0002Vv-62 for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 06:43:56 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:44903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2JSI-0002Vm-Ux for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 06:43:51 -0500 Received: by mail-wi0-f179.google.com with SMTP id hi5so78891wib.6 for ; Sun, 12 Jan 2014 03:43:49 -0800 (PST) In-Reply-To: <871u0g3n5d.fsf@Rainer.invalid> (Achim Gratz's message of "Thu, 09 Jan 2014 21:39:42 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Daniel Gerber writes: >> Not quite. I thought %S was not a typo because it escapes characters >> more nicely. E.g. with %s the buffer should contain \"\"\" to mean """ >> in python. > > If that's the intention, then %S is arguably a latent bug, since the > escaping it applies can only by accident be compatible with the targeted > language. I don't know if something like shell-quote arguments exists > for arbitrary programming languages. Maybe we should simply use %s (downcase) and escape quotes manually. If feels less random to me. What do you think? -- Bastien