delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/21/15:28:24

Date: Wed, 21 Feb 2001 22:19:11 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: clc5q AT cobra DOT cs DOT Virginia DOT EDU (Clark L. Coleman)
Message-Id: <7263-Wed21Feb2001221911+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <9711cr$k2r$1@murdoch.acc.Virginia.EDU>
(clc5q AT cobra DOT cs DOT Virginia DOT EDU)
Subject: Re: DJGPP/NT4.0: Emacs cannot find cc-mode
References: <9711cr$k2r$1 AT murdoch DOT acc DOT Virginia DOT EDU>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019