[comp.emacs] DIRED for VMS, and some VMS Emacs questions

SRWHMAS@windy.dsir.govt.nz (Mark Stephens) (07/27/89)

(sorry if you've seen this - I had to repost because it didn't get where it
 should have gone last time)

Hi there. Is there any interest in a DIRED and LIST-DIRECTORY (?) for VMS?
I've just written one, but it's so simple it MUST have been done already
(or it has some incredibly stupid bug I've overlooked :-)

If anyone is interested, I'll post it.

Also, could anyone answer the following questions (sorry if they've been
asked before, but I'm new here!). They all relate to VMS.
  1. does Emacs know about VMS privs? If so, it doesn't know very much,
     because it won't save a file that I've modified if I don't own it, even
     if I have BYPASS (or even ALL privs!). Is there something I've set up
     wrong?
  2. When I log on, my terminal device type is VT200_Series, but Emacs changes
     this to VT100, then I can't use the keypad. If I do SET TERM/INQUIRE,
     it comes right, but when I re-enter Emacs the arrow and keypad/function
     keys go beserk (like it's interpreting the escape codes completely
     wrong). Does this sound right? Should this be happening? What can
     I do about it (no wise cracks please :-) ?
  3. does Emacs client work under VMS? I've looked at it briefly and looks
     like it's only for U*IX systems. Could this be done under VMS using
     mailboxes? Could this be done under VMS at all?

any answers appreciated. Thanks,
-------------------
Mark Stephens                      P = I think
Programmer and other things        Q = I am
DSIR/DIT, Wellington, NZ.       ~((Q & (P->Q))->P)
(genie@windy.dsir.govt.nz)
"It ain't easy to get to heaven when you're going down..." - Ziggy Stardust

templon@silver.bacs.indiana.edu (jeffrey templon) (07/28/89)

I must not have completely understood your posting: VMS Emacs (at least 18.52)
comes with dired for VMS.  It works fine for the most part; the only real gripe
I have with it is that it is a bit too brain-damaged to figure out the
difference between a regular file and a directory.  In dired, if you ask
to 'find' a directory using the 'f' command, it should run dired on the
subdirectory if the 'f' was typed on a line with a subdir entry.  VMS emacs
(GNU-VMS Emacs that is) just puts up a window with one entry, which is the name
of the subdirectory file you tried to find.  I would be quite interested in
a fix to this.

While we're on the subject of GNU emacs/VMS, I have a gripe:  i keep getting
the message (file has changed on disk - do you really want to edit...) when
I try to edit a file I have just saved!  The cycle is, edit the file; save it;
get out of the editor (another program reads the file at this point, but I
don't believe it modifies it!); then get back in to re-edit, and get the
message!  Has anybody else seen (or fixed) this?

					jeff

templon@silver.bacs.indiana.edu (jeffrey templon) (07/29/89)

Whoops.  Sorry about the question concerning emacs repeated query, "do
you really want to edit...".  Turns out it was fortran's io at fault;
it really does modify the file, at least it modifies the files "last
revision" date field.

					jeff

kkerce@x102c.harris-atd.com (Kingsley F. Kerce) (07/29/89)

In article <518@windy.dsir.govt.nz> SRWHMAS@windy.dsir.govt.nz (Mark Stephens) writes:
     1. does Emacs know about VMS privs? If so, it doesn't know very much,
	because it won't save a file that I've modified if I don't own it, even
	if I have BYPASS (or even ALL privs!). Is there something I've set up
	wrong?

I recall that one of the files in the GNU Emacs distribution mentions
something about using the rights database (SYSUAF?).  If you don't
have the rights to modify something, you can't, even with all
privileges.
--
|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
Kingsley Kerce  | kkerce%x102c@trantor.harris-atd.com | Harris Corp. GISD
                | uunet!x102a!x102c!kkerce            | PO Box 98000 MS W2/7744
(407)984-6623   |                                     | Melbourne, FL 32902

jym@nli.UUCP (08/01/89)

I usually just crank up all my privs before spawning Emacs (on VMS), then
 crank them back down.

(Of course, I usually crank them right back up.  You can't do anything
 worthwhile under VMS without privs!)

That gives my Emacs privs, and I can write files anywhere.  It squawks a
 bit, but it works.
  <_Jym_>