Archive-Date: Tue, 29 Oct 1996 22:33:56 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Return-Path: Denis_Haskin@iacnet.com
Date: Tue, 29 Oct 1996 16:26:35 -0400 (EDT)
From: Denis Haskin <Denis_Haskin@iacnet.com>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Emacs 19.28: 2 problems
To: gnu-emacs-bugs <gnu-emacs-bugs@iacnet.com>
Message-ID: <9610300031.AA0147@circus.med.iacnet.com>
MIME-Version: 1.0
Content-Type: Text/Plain
Content-Transfer-Encoding: 7BIT

I just pulled EMACS 19.28 from vms.gnu.ai.mit.edu and built it on an
Alpha/VMS 6.2 system with DECC 5.3, using MMS.  The build went fine (kudos
to whoever (Richard?) did the great improvements to the VMS build+install
scripts--much easier than when I installed 19.19 a few years ago).

In any case, everything seems hunky-dory except for two problems.

The first and more crucial one is that KEPTEDITOR.COM isn't working properly, 
or perhaps Emacs isn't properly handling what KEPTEDITOR.COM is giving it.

What is happening is that the kept Emacs isn't finding out about changes to 
default directory that are made in the parent process.  So for example, I start 
Emacs up the first time in SYS$LOGIN, and then suspend it by typing Control-Z.  
Back in the parent process I SET DEF [.WORK] and then run Emacs again, giving 
it a filename to edit (either existing or new, doesn't matter).  Back in the 
Emacs subprocess, it clearly doesn't know that I've switched directories and is 
looking for this file back in SYS$LOGIN:.

Any suggestions on how to fix this?  KEPTEDITOR.COM seems to be correctly 
passing EMACS_COMMAND_ARGS in via the
job logical name, but I'm having trouble figuring out why Emacs doesn't seem to 
be using it.  (I seem to recall having a similar problem a few years ago when I 
first set up 19.19 here.)

The second problem is that Emacs does not seem to be executing my .EMACS file, 
which is in SYS$LOGIN: as it should be (and works fine under my VAX/VMS 19.19 
Emacs).  Does anyone have any suggestions as to what might be happening or how 
I might do some more debugging of this or the previous problem?

I tried checking some of the mailing list archives for any info about this but 
there's not much there, and nothing about this.

Thanks,

dwh
Denis Haskin
Senior Manager for Production Engineering
IACenter, Information Access Company
================================================================================
Archive-Date: Wed, 30 Oct 1996 00:23:48 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Date: Wed, 30 Oct 1996 00:23:44 MET
Message-ID: <12918.40976.271755.feedmail.pl5.LEVITTE@devil.bofh.se>
From: Richard Levitte - VMS Whacker <levitte@lp.se>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, levitte@LP.SE
To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems

From: Denis Haskin <Denis_Haskin@iacnet.com>

On the problem with Emacs not seeing the change in default directory,
I'm working on it.  This has, however, lower priority that getting the
build to work with VMS 7.1 (EFT1 had a TPU bug getting in my way.  I
hope EFT2 will work better).

On the problem with .EMACS not being read, I'd like you to tell me what
the values of your SYS$LOGIN are (I want the output of SHOW LOG SYS$LOGIN).
I also wait the output of DIR SYS$LOGIN:.EMACS .
Right now, I don't know what your problem is.

   I just pulled EMACS 19.28 from vms.gnu.ai.mit.edu and built it on an
   Alpha/VMS 6.2 system with DECC 5.3, using MMS.  The build went fine (kudos
   to whoever (Richard?) did the great improvements to the VMS build+install
   scripts--much easier than when I installed 19.19 a few years ago).

   In any case, everything seems hunky-dory except for two problems.

   The first and more crucial one is that KEPTEDITOR.COM isn't working properly, 
   or perhaps Emacs isn't properly handling what KEPTEDITOR.COM is giving it.

   What is happening is that the kept Emacs isn't finding out about changes to 
   default directory that are made in the parent process.  So for example, I start 
   Emacs up the first time in SYS$LOGIN, and then suspend it by typing Control-Z.  
   Back in the parent process I SET DEF [.WORK] and then run Emacs again, giving 
   it a filename to edit (either existing or new, doesn't matter).  Back in the 
   Emacs subprocess, it clearly doesn't know that I've switched directories and is 
   looking for this file back in SYS$LOGIN:.

   Any suggestions on how to fix this?  KEPTEDITOR.COM seems to be correctly 
   passing EMACS_COMMAND_ARGS in via the
   job logical name, but I'm having trouble figuring out why Emacs doesn't seem to 
   be using it.  (I seem to recall having a similar problem a few years ago when I 
   first set up 19.19 here.)

   The second problem is that Emacs does not seem to be executing my .EMACS file, 
   which is in SYS$LOGIN: as it should be (and works fine under my VAX/VMS 19.19 
   Emacs).  Does anyone have any suggestions as to what might be happening or how 
   I might do some more debugging of this or the previous problem?

   I tried checking some of the mailing list archives for any info about this but 
   there's not much there, and nothing about this.

   Thanks,

-- 
R Levitte, Levitte Programming; Spannvägen 38, I; S-161 43  Bromma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.se
================================================================================
Archive-Date: Wed, 30 Oct 1996 03:20:26 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Return-Path: Denis_Haskin@iacnet.com
Date: Tue, 29 Oct 1996 21:10:19 -0400 (EDT)
From: Denis Haskin <Denis_Haskin@iacnet.com>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems
To: Richard Levitte - VMS Whacker <levitte@iacnet.com>
CC: gnu-emacs-bugs <gnu-emacs-bugs@iacnet.com>
Message-ID: <9610300518.AA0737@circus.med.iacnet.com>
MIME-Version: 1.0
Content-Type: Text/Plain
Content-Transfer-Encoding: QUOTED-PRINTABLE

I will see what headway I can make in resolving the default directory=
 problem;=20
I think I had to do similar changes with the previous version of Emac=
s that I'm=20
running on the VAXes, so maybe I can resurrect what I did there.

Re: the other problem, here's some info:

be\d1$ show log sys$login
   "SYS$LOGIN" =3D "QRF03:[DENIS]" (LNM$JOB_9E4D4A80)

Directory QRF03:[DENIS]

=2EEMACS;42            [EPUB,DWH]            (RWED,RWED,RE,)

Total of 1 file.

You'll note that my SYS$LOGIN directory is *not* the same as my usern=
ame (for a=20
historical reason that I haven't gotten around to fixing).  I don't t=
hink=20
that's affecting this; I tested this by creating a qrf03:[dwh] direct=
ory with=20
appropriate ownership and protection and made a copy of .emacs there;=
 same=20
result.

Thanks,

dwh

--- in re ---

To: gnu-emacs-bugs @ LISTS.VMS.GNU.AI.MIT.EDU @ IGATE, Denis_Haskin @=
=20
iacnet.com @ IGATE
cc:  (bcc: Denis Haskin)
=46rom: levitte @ lp.se (Richard Levitte - VMS Whacker) @ IGATE
Date: 10/30/96 12:23:44 AM
Subject: Re: Emacs 19.28: 2 problems

=46rom: Denis Haskin <Denis_Haskin@iacnet.com>

On the problem with Emacs not seeing the change in default directory,
I'm working on it.  This has, however, lower priority that getting th=
e
build to work with VMS 7.1 (EFT1 had a TPU bug getting in my way.  I
hope EFT2 will work better).

On the problem with .EMACS not being read, I'd like you to tell me wh=
at
the values of your SYS$LOGIN are (I want the output of SHOW LOG SYS$L=
OGIN).
I also wait the output of DIR SYS$LOGIN:.EMACS .
Right now, I don't know what your problem is.

--=20
R Levitte, Levitte Programming; Spannv=02=CFgen 38, I; S-161 43  Brom=
ma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint =3D A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 =
9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.=
se

=20

================================================================================
Archive-Date: Wed, 30 Oct 1996 04:08:59 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Date: Wed, 30 Oct 1996 04:08:54 MET
Message-ID: <12918.54486.271755.feedmail.pl5.LEVITTE@devil.bofh.se>
From: Richard Levitte - VMS Whacker <levitte@lp.se>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, levitte@LP.SE
To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems

From: Denis Haskin <Denis_Haskin@iacnet.com>

   I will see what headway I can make in resolving the default directory
   problem; I think I had to do similar changes with the previous version
   of Emacs that I'm running on the VAXes, so maybe I can resurrect what
   I did there.

I'd be very gratefull.

   be\d1$ show log sys$login
      "SYS$LOGIN" = "QRF03:[DENIS]" (LNM$JOB_9E4D4A80)

OK. and in Emacs, if you do the following in the *scratch* buffer:

	(getenv "SYS$LOGIN")

(press C-j directly after the closing parenthesis)

Try the same with

	(getenv "HOME")

Also, try:

	(load "sys$login:.emacs" t t t)

(that is exactly what Emacs should do)

-- 
R Levitte, Levitte Programming; Spannvägen 38, I; S-161 43  Bromma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.se
================================================================================
Archive-Date: Wed, 30 Oct 1996 12:30:14 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Return-Path: Denis_Haskin@iacnet.com
Date: Wed, 30 Oct 1996 06:24:05 -0400 (EDT)
From: Denis Haskin <Denis_Haskin@iacnet.com>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems
To: Richard Levitte - VMS Whacker <levitte@iacnet.com>
CC: gnu-emacs-bugs <gnu-emacs-bugs@iacnet.com>
Message-ID: <9610301427.AA1834@circus.med.iacnet.com>
MIME-Version: 1.0
Content-Type: Text/Plain
Content-Transfer-Encoding: QUOTED-PRINTABLE

Hmm.  All of those seem okay:

(getenv "SYS$LOGIN")
"QRF03:[DENIS]"
(getenv "HOME")
"qrf03:[denis]"
(load "sys$login:.emacs" t t t)
t

dwh

--- in re ---

To: gnu-emacs-bugs @ LISTS.VMS.GNU.AI.MIT.EDU @ IGATE, Denis_Haskin @=
=20
iacnet.com @ IGATE
cc:  (bcc: Denis Haskin)
=46rom: levitte @ lp.se (Richard Levitte - VMS Whacker) @ IGATE
Date: 10/30/96 04:08:54 AM
Subject: Re: Emacs 19.28: 2 problems

=46rom: Denis Haskin <Denis_Haskin@iacnet.com>

   I will see what headway I can make in resolving the default direct=
ory
   problem; I think I had to do similar changes with the previous ver=
sion
   of Emacs that I'm running on the VAXes, so maybe I can resurrect w=
hat
   I did there.

I'd be very gratefull.

   be\d1$ show log sys$login
      "SYS$LOGIN" =3D "QRF03:[DENIS]" (LNM$JOB_9E4D4A80)

OK. and in Emacs, if you do the following in the *scratch* buffer:

 (getenv "SYS$LOGIN")

(press C-j directly after the closing parenthesis)

Try the same with

 (getenv "HOME")

Also, try:

 (load "sys$login:.emacs" t t t)

(that is exactly what Emacs should do)

--=20
R Levitte, Levitte Programming; Spannv=02=CFgen 38, I; S-161 43  Brom=
ma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint =3D A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 =
9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.=
se

=20

================================================================================
Archive-Date: Wed, 30 Oct 1996 13:04:18 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Date: Wed, 30 Oct 1996 13:04:13 MET
Message-ID: <12919.21069.271755.feedmail.pl5.LEVITTE@devil.bofh.se>
From: Richard Levitte - VMS Whacker <levitte@lp.se>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, levitte@LP.SE
To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems

From: Denis Haskin <Denis_Haskin@iacnet.com>

   Hmm.  All of those seem okay:

   (getenv "SYS$LOGIN")
   "QRF03:[DENIS]"
   (getenv "HOME")
   "qrf03:[denis]"
   (load "sys$login:.emacs" t t t)
   t

And at this point, did the C-s <-> C-\ hack work?

Do you understand enough ELisp to be able to look through startup.el (which
is the one being run when Emacs starts up)?  In that case, you could maybe
find out what's goind wrong...

-- 
R Levitte, Levitte Programming; Spannvägen 38, I; S-161 43  Bromma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.se
================================================================================
Archive-Date: Wed, 30 Oct 1996 15:36:35 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Return-Path: Denis_Haskin@iacnet.com
Date: Wed, 30 Oct 1996 09:26:28 -0400 (EDT)
From: Denis Haskin <Denis_Haskin@iacnet.com>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems
To: Richard Levitte - VMS Whacker <levitte@iacnet.com>
CC: gnu-emacs-bugs <gnu-emacs-bugs@iacnet.com>
Message-ID: <9610301733.AA2165@circus.med.iacnet.com>
MIME-Version: 1.0
Content-Type: Text/Plain
Content-Transfer-Encoding: QUOTED-PRINTABLE

No, it appears that although (load "sys$login:.emacs" t t t) returns =
t (which I=20
assume means success), it doesn't appear to have been executed, or ex=
ecuted=20
properly; the C-s/C-\ hack doesn't work.

Also, if I read the file into a buffer and do a eval-buffer, same thi=
ng; no=20
errors reported but the (enable-flow-control) doesn't seem to have be=
en=20
executed.  I'll have to figure out how to get eval-buffer to work wit=
h the=20
optional PRINTFLAG argument.

Interesting.

I can follow enough Elisp to try and do some debugging on my end.  Di=
tto for=20
the kepteditor/EMACS_COMMAND_ARGS problem.  I looked at my older code=
 and what=20
I did was pretty much completely ignore EMACS_COMMAND_ARGS and instea=
d pass in=20
a new logical EMACS_DEFAULT_DIRECTORY.  I will probably just try and =
lift my=20
old kepteditor.com and (vms-suspend-resume-hook) changes and see if t=
hey'll=20
work okay with the new Emacs.

Thanks,

dwh

--- in re ---

To: gnu-emacs-bugs @ LISTS.VMS.GNU.AI.MIT.EDU @ IGATE, Denis_Haskin @=
=20
iacnet.com @ IGATE
cc:  (bcc: Denis Haskin)
=46rom: levitte @ lp.se (Richard Levitte - VMS Whacker) @ IGATE
Date: 10/30/96 01:04:13 PM
Subject: Re: Emacs 19.28: 2 problems

=46rom: Denis Haskin <Denis_Haskin@iacnet.com>

   Hmm.  All of those seem okay:

   (getenv "SYS$LOGIN")
   "QRF03:[DENIS]"
   (getenv "HOME")
   "qrf03:[denis]"
   (load "sys$login:.emacs" t t t)
   t

And at this point, did the C-s <-> C-\ hack work?

Do you understand enough ELisp to be able to look through startup.el =
(which
is the one being run when Emacs starts up)?  In that case, you could =
maybe
find out what's goind wrong...

--=20
R Levitte, Levitte Programming; Spannv=02=CFgen 38, I; S-161 43  Brom=
ma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint =3D A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 =
9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.=
se

=20

================================================================================
Archive-Date: Thu, 31 Oct 1996 10:41:32 +0100
Sender: owner-gnu-emacs-bugs@lp.se
Date: Thu, 31 Oct 1996 10:41:24 MET
Message-ID: <12920.33364.271755.feedmail.pl5.LEVITTE@devil.bofh.se>
From: Richard Levitte - VMS Whacker <levitte@lp.se>
Reply-To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, levitte@LP.SE
To: gnu-emacs-bugs@LISTS.VMS.GNU.AI.MIT.EDU, Denis_Haskin@IACNET.COM
Subject: Re: Emacs 19.28: 2 problems

   From: Denis Haskin <Denis_Haskin@iacnet.com>

      I will see what headway I can make in resolving the default directory
      problem; I think I had to do similar changes with the previous version
      of Emacs that I'm running on the VAXes, so maybe I can resurrect what
      I did there.

I found the bug!  Apparently, a change between 19.22 and 19.28 went by me
unnoticed...  I'll produce a patch tomorrow.

-- 
R Levitte, Levitte Programming; Spannvägen 38, I; S-161 43  Bromma; SWEDEN
                  Tel: +46-8-26 52 47;  No fax right now
  PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 9C 65
   Check http://www.lp.se/~levitte for my public key.   bastard@bofh.se
