home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!iat.holonet.net!dattier
- From: dattier@orac.holonet.net (DWT)
- Subject: Re: edit buffer lost at disconnection
- Message-ID: <Bz5u6K.7En@iat.holonet.net>
- Sender: usenet@iat.holonet.net (USENET News System)
- Nntp-Posting-Host: holonet.holonet.net
- Organization: Information Access Technologies, Inc. of Berkeley, CA
- References: <Bz28FM.Mq6@ddsw1.mcs.com> <1g8u2kINNsvs@dsinc.dsi.com>
- Date: Sat, 12 Dec 1992 19:01:31 GMT
- Lines: 39
-
- In article <1g8u2kINNsvs@dsinc.dsi.com> syd@dsi.com (Syd Weinstein) replied
- to my question from article <Bz28FM.Mq6@ddsw1.mcs.com>:
-
- T> HOW can I keep Elm from removing $tmpdir/snd.$$ upon hangups? I think Elm
- T> should remove that file only when the user exits the editor (and the header
- T> editing screen) and issues a s)end or f)orget command.
-
- W> The code that does this is in src/util.c, in the leave function.
- W> You need to delete or comment out the lines that 'delete' the edit buffer.
-
- Sorry for not making this clear: I need a user-level solution, not an admin-
- istrator-level solution. (1) It requires me to importune someone else to
- implement it. (2) It would get forced on all users. [I'm the only user with
- the problem, and recompiling with those lines of code commented out would
- require all users to rm their $tmpdir/snd.$$ files by hand. I'd put up with
- that as the cost of the cure, but why should everyone else on ddsw1?]
-
- Les Mikesell emailed me a suggestion that I change $editor in my .elm/elmrc
- to a script like this:
-
- ln $1 safedirectory
- exec vi $1
-
- and it's working very well. In my logout routines (called up only when I
- sign out voluntarily and not executed when I fall off line) I simply added
- rm -f safedirectory/snd.*
-
- The only change I've made to Les's suggestion is to redirect ln's stderr to
- /dev/null because of the complaint it makes because the two names are already
- linked when I re-enter the editor to make more changes before sending a
- letter. (Note that in my elmrc tmpdir is set to a directory under my $HOME,
- so finding another directory on the same filesystem to use as the safe
- directory was not an obstacle.)
-
- Disclaimer: I'm having the hangup problem on ddsw1, where I posted the
- original question, not on HoloNet, where I am posting this follow-up.
-
- David W. Tamkin P. O. Box 59297 Northtown Station, Illinois 60659-0297
- dattier@{holonet.net|gagme.chi.il.us} CIS: 73720,1570 MCI Mail: 426-1818
-