In older versions of emacs when you try to find a file (C-x C-f) and press a space character while typing the file name, emacs tries to complete the name (like pressing tab). However, later versions have stopped this behaviour which allows you to open a file with a space in the name.
mg currently follows emacs older behaviour. This diff changes mg to mimic newer versions. ok/comments? -lum Index: echo.c =================================================================== RCS file: /cvs/src/usr.bin/mg/echo.c,v retrieving revision 1.50 diff -u -p -r1.50 echo.c --- echo.c 12 Apr 2012 04:47:59 -0000 1.50 +++ echo.c 23 Sep 2012 15:54:10 -0000 @@ -184,7 +184,7 @@ veread(const char *fp, char *buf, size_t ttflush(); for (;;) { c = getkey(FALSE); - if ((flag & EFAUTO) != 0 && (c == ' ' || c == CCHR('I'))) { + if ((flag & EFAUTO) != 0 && c == CCHR('I')) { if (cplflag == TRUE) { complt_list(flag, buf, cpos); cwin = TRUE;