> It fixes the issue that if a filename has a space at the start of
> it, the point will stay in the first character column and not jump
> to the first non ' ' character in the filename.

Yup, this looks good to me.

> However, it does seem to expose a bug in dired, that if a filename
> has a space at the start of it, mg doesn't find it if you try and 
> open it. mg gives a message of (New File) and creates and empty 
> buffer. But in the mean time, I think this change does make this
> diff more correct.

Indeed.  This looks like a flaw in d_makename, which seems to implement
its own warpdot() :-)  This should be changed to use our new function
(and we could make use of NAME_FIELD).  That fix, along with the one
for dealing with shell metacharacters, should probably be a separate
diff though.

Reply via email to