Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!ucbvax!NRL3.ARPA!bal%va.DECnet
From: bal%va.DECnet@NRL3.ARPA ("VA::BAL")
Newsgroups: comp.os.vms
Subject: Re: VMS GNU Emacs
Message-ID: <8707220444.AA22358@ucbvax.Berkeley.EDU>
Date: Tue, 21-Jul-87 01:15:00 EDT
Article-I.D.: ucbvax.8707220444.AA22358
Posted: Tue Jul 21 01:15:00 1987
Date-Received: Fri, 24-Jul-87 00:46:33 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: "VA::BAL" 
Distribution: world
Organization: The ARPA Internet
Lines: 67

Reply-To: bal%va.decnet@nrl.arpa
Full-Name: Brian A. LaMacchia
Address: Code 4771, Naval Reserach Laboratory
Address: 4555 Overlook Ave. SW, Washington, DC  20375-5000
Phone: (202) 767-3066


>The first problem is that GNU EMACS doesn't even attempt to load the
>TERM/VT102.EL file when run, despite what the documentation says.  In
>fact, even if the terminal type is VT100, it doesn't load the same
>VT100.EL file.  According to the docs, the STARTUP.EL file should look
>for the appropriate terminal dependent file and load it, if it exists,
>from the TERM subdir of the LISP dir.  Nothing.

You're absolutely right.  The fragment of code that is supposed to load
the term file is:

    (and term-file-prefix (not noninteractive)
	 (load (if window-system
		   (concat term-file-prefix
			   (symbol-name window-system)
			   "-win")
		   (concat term-file-prefix
			   (substring (getenv "TERM") 0
				      (string-match "-" (getenv "TERM")))))
	       t t))

The "load" function searches for the proper terminal file in all of the
directories in the list "load-path".  By default, load-path contains
only the value "emacs_library:[lisp]"  Thus (assuming window-system is
nil), you get the above is equivalent to:

(load (concat term-file-prefix "vt102"))

By default (path.el) term-file-prefix is set to "term/".  Thus the above
sexp is equivalent to:

(load "term/vt102")

Now, emacs goes and looks for the file:

"emacs_library:[lisp]term/vt102.el"

and fails.  For some reason, emacs doesn't change [lisp]term to
[lisp.term].  Since the load function was given the optional third
argument, you don't see the failure message.

What can you do to work around this?  This simplest things to do is to
add the line:

(setq term-file-prefix "[.term]") 

to your site-init.el file (and rebuild emacs).  Or, if you don't want to
change the parameters for the site, you can add:

(setq term-file-prefix "[.term]")
(load ...)

to you own .emacs startup file.  This will make the change for you but
not for all emacs users.

Hope this helps.

				--Brian LaMacchia
				  bal%va.decnet@nrl.arpa (current)
				  balamac@athena.mit.edu
------