From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: dired cannot access file names with a quote Date: Sat, 23 Feb 2008 18:55:22 -0500 Message-ID: <87fxvji5xx.fsf@stupidchicken.com> References: <87r6f3ux2z.fsf@stupidchicken.com> <0ylk5b1e72.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203811059 7516 80.91.229.12 (23 Feb 2008 23:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 23:57:39 +0000 (UTC) Cc: Francesco =?utf-8?Q?Potort=C3=AC?= , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 00:58:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JT4Fn-0002w1-KE for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 00:58:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT4FI-0000Ux-04 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 18:57:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JT4Ei-0000EV-I1 for emacs-devel@gnu.org; Sat, 23 Feb 2008 18:56:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JT4Eg-0000DG-Uy for emacs-devel@gnu.org; Sat, 23 Feb 2008 18:56:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT4Eg-0000D4-Ln for emacs-devel@gnu.org; Sat, 23 Feb 2008 18:56:54 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JT4EY-0005I9-Vz; Sat, 23 Feb 2008 18:56:47 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 412F64E49C; Sat, 23 Feb 2008 18:55:22 -0500 (EST) In-Reply-To: <0ylk5b1e72.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat\, 23 Feb 2008 17\:49\:05 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90183 Archived-At: Glenn Morris writes: > Chong Yidong wrote: > >> I think the fix is to quote ' as well in shell-quote-wildcard-pattern. >> Could someone on this list double-check? > > Won't that break things like 'foo*' that people might want to pass to > shell-quote-wildcard-pattern, as per the comment in the function's > doc-string? > > 'foo*' and \'foo*\' are not the same to the shell. Don't the quote characters referred to in the docstring refer to backslash (\)? The only place that calls shell-quote-wildcard-pattern in the Emacs source tree is insert-directory, and the logic in insert-directory indicates that shell-quote-wildcard-pattern is simply intended to quote special characters that would screw up the call to `ls'. Is there any way of passing a ' character in the file argument to insert-directory, except as a literal part of a filename?