unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* find-file could even delete leading spaces...
@ 2002-06-17  2:53 Dan Jacobson
  2002-06-17 16:40 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-06-17  2:53 UTC (permalink / raw)


When cutting and pasting into the minibuffer, sometimes I end up
sending in effect
(find-file " /mdk/boot")
or maybe even with the space at the end.

Being that find-file is so user friendly that even /bla/bla//urg/urg
becomes /urg/urg, perhaps its friendliness should be enhanced to find
the file I really want, at least interactively.  On the other hand,
this might not be smart...

Because I was using cut and paste I was not stopped during entry as
would have happened if I was typing the filename in.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: find-file could even delete leading spaces...
  2002-06-17  2:53 find-file could even delete leading spaces Dan Jacobson
@ 2002-06-17 16:40 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2002-06-17 16:40 UTC (permalink / raw)


Dan Jacobson wrote:

> When cutting and pasting into the minibuffer, sometimes I end up
> sending in effect
> (find-file " /mdk/boot")
> or maybe even with the space at the end.
> 
> Being that find-file is so user friendly that even /bla/bla//urg/urg
> becomes /urg/urg, perhaps its friendliness should be enhanced to find
> the file I really want, at least interactively.  On the other hand,
> this might not be smart...


I don't think it would be smart, since (if I recall correctly) "...//" and "...~/"

are handled at a very low level.  Treating "... /" the same way might make it
impossible to work with files and directories that have a leading space in their
name.


> Because I was using cut and paste I was not stopped during entry as
> would have happened if I was typing the filename in.


I've gotten in the habit of typing TAB before RET, to make sure I've pasted a

valid file name.

-- 
Kevin Rodgers <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-17 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17  2:53 find-file could even delete leading spaces Dan Jacobson
2002-06-17 16:40 ` Kevin Rodgers

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).