Article View: gnu.emacs.bug
Article #99282Re: news path
From: cwebb
Date: Tue, 09 Oct 1990 22:48
Date: Tue, 09 Oct 1990 22:48
41 lines
2389 bytes
2389 bytes
No, the news path was fine.
The problem was that setting the news spool directory (or whatever
the doggoned variable was) in the site-init.el was a problem
because it used "~news/..." twiddle syntax. That was a problem in
site-init.el because using the "~user" notation causes a yellow pages
lookup on the suns, which in turn forces temacs to determine its
domainname in order to query the YP passwd server for that domain.
The domain name appears to be cached by the C library routine
so that it can be directly used in any later calls to look up
a user name. This is OK if the domain name is the same on the
machine that ran temacs as on the machine that executes xemacs (gnuemacs)
but woth exptools distribution to many different Sun networks
most of which don't have the same domain name then this loses.
I solved the problem by wrapping all calls to YP derived functions
in an
if(initialized){
/* do normal YP call */
}
else{
/* default to something for temacs and
don't call YP supported routines */
}
This effected several locations in the C source code (I can send the
files if you want) and for all but one case I was able to comment
out or modify the source - the only case I couldn't fix was the
part that looked up the home directory for a user based on the username
with the "~user/..." syntax. I solved the problem by moving the
parts of site-init.el that depended on the twiddle notation to
default.el.
Result - no serious difference in the way gnuemacs works (the machine
name where gnuemacs is built is "EXPBUILD" in stead of ihlpa, or
hou2d or mercury or paint or whatever) and the routines that
return host name and user name are unaffected in xemacs. The only
place that a difference is evident is when running temacs.
Chip
Technical Details
Message-ID:
<9010092248.AA13826@pixels.att.com..>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!pixels.att.com!cwebbShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,cd3b54caf8259456,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-10-09 15:48:52 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!pixels.att.com!cwebb From: cwebb@pixels.att.com Newsgroups: gnu.emacs.bug Subject: Re: news path Message-ID: <9010092248.AA13826@pixels.att.com..> Date: 9 Oct 90 22:48:52 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41 Posted: Tue Oct 9 23:48:52 1990