From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Entering filenames with spaces Date: 13 Aug 2005 12:48:51 -0400 Message-ID: References: <32E7C771-B946-491E-ACA1-B95F36FAF8D4@gmail.com> <85oe82w8bj.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123952188 32649 80.91.229.2 (13 Aug 2005 16:56:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2005 16:56:28 +0000 (UTC) Cc: David Reitter , Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 13 18:56:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E3zIu-0002Qz-59 for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2005 18:56:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3zMA-0007m0-Lb for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2005 12:59:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3zKf-0007bK-Rs for emacs-devel@gnu.org; Sat, 13 Aug 2005 12:58:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3zKN-0007R3-1L for emacs-devel@gnu.org; Sat, 13 Aug 2005 12:57:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3zKK-0007Pr-GK for emacs-devel@gnu.org; Sat, 13 Aug 2005 12:57:44 -0400 Original-Received: from [207.245.121.138] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1E3zQb-0001Z8-E3; Sat, 13 Aug 2005 13:04:13 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.34) id 1E3zBj-0006Wt-Sf; Sat, 13 Aug 2005 12:48:51 -0400 Original-To: David Kastrup In-Reply-To: <85oe82w8bj.fsf@lola.goethe.zz> Original-Lines: 48 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.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:42002 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42002 David Kastrup writes: > Wrong. Spaces in filenames are no problem to pretty much _any_ > "unixoid" tool. The only place where they need escaping is in shells; > and if you use file name completion, it will be provided automatically > (i.e. by bash). well, i consider the shell a unixoid tool (perhaps the quintessential one, since with it you can compose even more tools). in any case, programs and scripts often invoke(d) the shell, passing it unprocessed filenames, assuming that filenames don't have spaces. the lack of quoting discipline in these programs' communications is a self-reenforcing phenomenon. cool-prog.sh can't handle spaces in filenames but i find cool-prog.sh useful, so i don't use spaces in filenames i pass it. when writing my-hack (in whatever language), which invokes cool-prog.sh, it's so much easier to propagate the ingrained mindset. etc. > Since desktop environments become more and more common for unixoid > systems including free systems, spaces in file names become more and > more common as well: certainly more common than most other special > characters in file names. no doubt. > The "many" are not just Windows users (by the way: spaces need quoting > in the Windows command line, too). They are all users that don't rely > on the command line for most of their work. And that certainly > includes most users of free systems. of course, it is worth the effort to change things to be more robust. iirc, first couple releases of osx had this very problem (among others). apple had to invest engineer hours to fix it. however, we are not talking about robustness per se; indeed, emacs can handle spaces in filenames. we are talking about the age-old class of problem called "preferred default keybindings". towards that end, i am in favor of leaving SPC for completion, and adding a blurb and fragment of ~/.emacs code to the manual explaining how to (1) self-insert SPC for filenames; (2) arrange for (1) to be the default. wherever the blurb lands, a pointer to it will surely find its way into every faq and wiki searched by the desperately disenfranchised. cue next 20 messages: "but those people SHOULDN'T HAVE TO munge ~/.emacs for such a simple thing!" feh. thi