Mail Archives: djgpp/2001/02/21/15:28:24
> From: clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman)
> Newsgroups: comp.os.msdos.djgpp
> Date: 21 Feb 2001 18:28:43 GMT
>
> When I try to open a C header or source file from within emacs, using
> C-x f or the Files->Open File pull down, it produces the message:
>
> File mode specification error: (file-error "Cannot open load file" "cc-mode")
>
> The emacs executable is in E:\djgpp\gnu\emacs\bin\emacs.exe.
>
> I can see the following in the Windows NT Explorer:
>
> E:\djgpp\gnu\emacs\lisp\progmodes\cc-mode.el
> E:\djgpp\gnu\emacs\lisp\progmodes\cc-mode.elc
>
> I unzipped with long file name support
This is _exactly_ your problem: DJGPP programs cannot access long file
names on NT, so you should have _not_ unzipped with long file name
support. The name of the `progmodes' directory exceeds the DOS 8+3
limits, so Emacs cannot find it.
> and everything else in DJGPP seems to work fine.
That's an illusion. You just didn't see the problems yet.
> E:\save_pmpapi.c
>
> If I double-click on that file name, it opens emacs on it, but emacs
> calls it "save_p~1.c".
This is unrelated to the problem I mentioned above: Windows _always_
passes files to DOS programs in their 8+3 short form, when you click
on the file name or drag-n-drop the file onto the DOS program. This
happens even on Windows 9X, where DJGPP does support long file names.
A kind of welcome party from uncle Bill, I'd say.
> If I try to open this file from within emacs
> using C-x f or File->Open File, it won't find the long filename
> version on disk.
This is again because DJGPP programs cannot access long file names on
NT.
> I used to use a version of emacs 19.34 for NT that someone had online
> in binary form. I still have the binaries on diskettes, but I was
> hoping to use the emacs that was installed with DJGPP and not have to
> install a different version. The other version had none of these
> problems.
Because you unzipped it with a DOS unzip program, probably. Or maybe
that was a Windows port of Emacs, not a DJGPP port.
- Raw text -