From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: Feature Request: Function to quote filenames Date: Wed, 24 Jun 2015 13:24:27 -0700 Message-ID: <21899.4603.137675.136717@retriever.mtv.corp.google.com> References: <87fv5hf7d3.fsf@members.fsf.org> <21898.57325.878520.672648@retriever.mtv.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435177491 16429 80.91.229.3 (24 Jun 2015 20:24:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2015 20:24:51 +0000 (UTC) Cc: emacs-devel@gnu.org, youngfrog@members.fsf.org, raman@google.com To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 24 22:24:51 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Z7rDz-0003gV-7P for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2015 22:24:47 +0200 Original-Received: from localhost ([::1]:52799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7rDy-0003Eg-Ce for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2015 16:24:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7rDj-0003E1-QN for emacs-devel@gnu.org; Wed, 24 Jun 2015 16:24:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7rDj-0004JK-0x for emacs-devel@gnu.org; Wed, 24 Jun 2015 16:24:31 -0400 Original-Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]:36675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7rDi-0004IS-Qi for emacs-devel@gnu.org; Wed, 24 Jun 2015 16:24:30 -0400 Original-Received: by igbiq7 with SMTP id iq7so105285289igb.1 for ; Wed, 24 Jun 2015 13:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject:in-reply-to:references; bh=OwcGpoO0OixRao+gXob2Uenqh4ThhjvVKI5JHhbjfEQ=; b=D2uuOSzP7DgNe+h99IkNKUVhDokVCXu09eB93xVnEpBF169npk+Ooxq03DzqVnmQhI wzVQAclWKW/HNU7iwblzzvNVXmTsGdIMS4jDV0x+FJ2c3ckKQ35JwWcDhoT4crzy6J6w N2mPM+Schi/wNvla2KqOLCmobSeBAaGXLrVsvA5CZ/zI2MwizuTCZ9E6qbdxMl2s5LR3 J/2tiv6wNEtcY8mHg7IjAAv+6EVnNhKnz2RjUQ2qQy57zVkQb9mQidn9bgvsReAG+TlU SxcpgdK4ekq8SLQaAt+zUe6DPlUpnoJHvy5EyEsx94C5K7jNuoBD5yM1HJLyCSMyV4pE b5SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to :references; bh=OwcGpoO0OixRao+gXob2Uenqh4ThhjvVKI5JHhbjfEQ=; b=TCz/jHzuYBdMPw67EnCY9rAZzyM2GYtIK/ffOKpUb9eIWuv6wVYGUi3JiUocfZ6oDd mg+u1fNXlRW+0jU0W0FJoWQxYvudb7npFy2rOLKWgkw33o7ndz7kPmdiMYTfDhCJ8vwY avIB6V0BAxqd9x+HH7kQ5KbnhXuFzc6a+WBo27EP/tXe8ocJX5p0pxpFxrY7rWz7srGA fEQVoR6f5CMn3gyKCX87ZQhYvf+xi4OxFQlVRPNh3Tnib7NUsZ4oyaLjw/RcOIPCinqZ pxrNCoF//Yp77z9QhcVqZoZ5uYrhfOutqpOANKOgoPF1LjnkSqcm/fX77nCnnv+Hdqoc kt9Q== X-Gm-Message-State: ALoCoQn6W4UZz17u+ZvAw0RtdGv/K1OaU5kqYQHac1/gpFt/R+IS1TZnYrIIdx2hxrZJOuyDIo5i X-Received: by 10.50.56.104 with SMTP id z8mr2163770igp.45.1435177470178; Wed, 24 Jun 2015 13:24:30 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([172.27.71.174]) by mx.google.com with ESMTPSA id i7sm1762683igt.18.2015.06.24.13.24.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jun 2015 13:24:28 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 488D61A17E6; Wed, 24 Jun 2015 13:24:27 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 25.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187498 Archived-At: Thanks Stefan -- In this instance, I went back and looked in the buffer on my laptop where I hit the error -- like you said I had used the result from shell-quote-argument incorrectly -- had used "... '%s'" and the "'%s'" was the cause of the breakage. Stefan Monnier writes: > > interesting, it worked for me just now -- not sure why I hit an error > > when I last tried. I likely did somethign else that messed it up -- -- > > but in general, I've had trouble with quoting arguments from elisp to > > the shell. > > Quoting is tricky business, and it's easy to mess it up. But details > matter, and in most cases the problem is not that shell-quote-argument > doesn't work right, but that it's not called on the right data, or it's > not called at all, or the result is then later massaged incorrectly, > etc... > Once you have a concrete problem case, file a bug report. > > > Stefan -- --