From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: shell-unquote-argument: throws error if called outside a shell buffer Date: Sat, 11 Mar 2017 18:48:12 -0800 Message-ID: References: <22724.26048.710191.633963@gargle.gargle.HOWL> <87tw6zfm0a.fsf@luca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489286938 3525 195.159.176.226 (12 Mar 2017 02:48:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 02:48:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Andreas Politz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 12 03:48:53 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmtYy-0000E5-SM for ged-emacs-devel@m.gmane.org; Sun, 12 Mar 2017 03:48:53 +0100 Original-Received: from localhost ([::1]:45391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmtZ4-0006yq-Ti for ged-emacs-devel@m.gmane.org; Sat, 11 Mar 2017 21:48:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmtYT-0006yk-IS for emacs-devel@gnu.org; Sat, 11 Mar 2017 21:48:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmtYO-0002VL-Ke for emacs-devel@gnu.org; Sat, 11 Mar 2017 21:48:21 -0500 Original-Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]:35444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmtYO-0002Us-E2 for emacs-devel@gnu.org; Sat, 11 Mar 2017 21:48:16 -0500 Original-Received: by mail-pg0-x231.google.com with SMTP id b129so51906237pgc.2 for ; Sat, 11 Mar 2017 18:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=mriiVgw4b106Qg5HszHQj9A2QnwVR/7Bt9VIrbPfO8A=; b=ItloXvplIU/pDeVXY+2pEzkjmhF6XAIvFpCdVBIUMjoHd8p0np26Yxb8+11A8EfSCC nojaII0A+9JYI1M75Gi5FNrb36ZgoNv0PEqP6+Sa0g9n+31TOOF+hzuPoBDPv+HS3RCf 7vSlFkOrVFK5PDpCl5FkaOdhefujPBJyKYyHpE2ujNEuTelQ4z19qqEb49N+jKcNKU+G Nb++5QUrRQ6ur3DWWFVO35+22CZmohdA5y4NdjQIJskEkzY3xDV+t+aIzGLnP9FEmGcU 1TBSJjNVVtkqz5wlC+yx3tdICd/yH7BwS8X6ag0OGAGKOmpVT96HncjmsfQoxP4Hl2cw Mbcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=mriiVgw4b106Qg5HszHQj9A2QnwVR/7Bt9VIrbPfO8A=; b=XFZkFuyZg8ivOg4CWfcwEdqtBiQZOlRSqvhMckoc24axwnQJRyKY4Z9YyLTLemimAL JxSryWKc6mq+y9X8dfdVpma13sVJV2RUC5v4JoYxXsgnbkp+CTq1NUrizwQ5lfabxD0j QNx2spCBiMRFI2sb3vAW9DiErtFfWn6ayXjyHFDsChjeUQ4bCqofwwtasIiBXo4R9Tv0 KOLs3rMi6v/VxkFV6TUjGFH8FAJuGCzL0gB++of9hBrmWBQVUSXxcNLzdUH4d9S05qPa I+GARRPgOpCqh+ndFuJ5DA3sSMjcLQweY0sQ4Z1rZn7hEA6lexRNQJqW9pxAyg7IhnIh Kiew== X-Gm-Message-State: AMke39kl7Ixh4xyYDHpKb8ry0MvlDQj+EBfhhWJ49nd6w10S8RnGzKcN0ysDXNsy9/3N8XTy X-Received: by 10.84.238.9 with SMTP id u9mr37670854plk.174.1489286894741; Sat, 11 Mar 2017 18:48:14 -0800 (PST) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id 129sm26338307pgj.59.2017.03.11.18.48.13 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 11 Mar 2017 18:48:14 -0800 (PST) In-Reply-To: <87tw6zfm0a.fsf@luca> (Andreas Politz's message of "Sun, 12 Mar 2017 00:10:13 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212935 Archived-At: Andreas Politz writes: Yes, namespacing -- plus incomplete documentation. shell-unquote-argument is a compiled Lisp function in `shell.el'. (shell-unquote-argument STRING) Remove all kinds of shell quoting from STRING. [back] > I assume this is a problem of name-spaces. While `shell-quote-argument' > lives in subr.el, where the prefix denotes "functionality related to > shells", its would-be companion function `shell-unquote-argument' is > defined in shell.el and is not supposed to be used outside that > libraries scope (i.e. a *shell* buffer), as is e.g. shell-resync-dirs. > > -ap --