unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
Cc: David Reitter <david.reitter@gmail.com>,
	Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Entering filenames with spaces
Date: 13 Aug 2005 12:48:51 -0400	[thread overview]
Message-ID: <jkek8xg4uk.fsf@glug.org> (raw)
In-Reply-To: <85oe82w8bj.fsf@lola.goethe.zz>

David Kastrup <dak@gnu.org> 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

  reply	other threads:[~2005-08-13 16:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-08 11:22 Entering filenames with spaces David Reitter
2005-08-12  7:51 ` James Cloos
2005-08-12  9:37   ` Lennart Borgman
2005-08-12 10:26     ` James Cloos
2005-08-12 13:13       ` David Reitter
2005-08-12 15:15   ` Drew Adams
2005-08-12 15:40     ` Andreas Schwab
2005-08-12 15:58       ` Drew Adams
2005-08-12 16:26         ` David Reitter
2005-08-12 17:50           ` Drew Adams
2005-08-12 19:28             ` David Reitter
2005-08-12 21:47               ` Drew Adams
2005-08-13  0:55               ` Thien-Thi Nguyen
2005-08-13  8:27                 ` David Kastrup
2005-08-13 16:48                   ` Thien-Thi Nguyen [this message]
2005-08-13 17:51                     ` David Kastrup
2005-08-13 21:14                       ` Thien-Thi Nguyen
2005-08-13 12:11           ` James Cloos
2005-08-12 19:23     ` Lennart Borgman
2005-08-12 19:51       ` Drew Adams
2005-08-12 20:22         ` Lennart Borgman
2005-08-13  6:11         ` Juri Linkov
2005-08-13 14:40     ` Richard M. Stallman
2005-08-14  3:48       ` Eli Zaretskii
2005-08-14  6:20         ` Stefan Monnier
2005-08-14 19:06           ` Eli Zaretskii
2005-08-15  7:58             ` Kim F. Storm
2005-08-15 19:35               ` Eli Zaretskii
2005-08-14 21:03         ` Richard M. Stallman
2005-10-15 17:42       ` David Reitter
2005-10-17  4:33         ` Richard M. Stallman
2005-10-18  9:26           ` David Reitter
2005-10-18 15:06             ` Drew Adams
2005-10-18 15:39             ` Stefan Monnier
2005-10-19  2:43             ` Richard M. Stallman
2005-11-05 15:02               ` David Reitter
2005-11-05 16:34                 ` Drew Adams
2005-11-06 16:15                   ` David Reitter
2005-11-06 17:36                   ` Richard M. Stallman
2005-11-07  1:48                     ` Drew Adams
2005-11-07 14:34                   ` Juri Linkov
2005-11-07 21:56                     ` Richard M. Stallman
2005-11-07 15:34                 ` Richard M. Stallman
2005-11-14 11:18                   ` David Reitter
2005-11-14 13:27                     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jkek8xg4uk.fsf@glug.org \
    --to=ttn@gnu.org \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).