Article View: gnu.epoch.misc
Article #2049Re: server problem
From: Rich Ragan
Date: Wed, 10 Apr 1991 22:56
Date: Wed, 10 Apr 1991 22:56
45 lines
3531 bytes
3531 bytes
In <Apr.8.14.59.37.1991.3090@morley.rutgers.edu> purtill@morley.rutgers.edu (Mark Purtill) writes: >>I use epoch's emacsclient for my EDITOR variable, and it works fairly >>well, but after a while it will start not destroying the server window >>when I ^X#. Around the same time, it starts asking me if I want to >>revert buffers. Does anyonee else have this problem, and if so, are >>there any solutions other than restarting epoch? We are running a similar setup and have done some analysis of this problem. emacsclient determines that it is time to go way when the screen being shutdown is the same name as the one it started. This messes us up considerably because we are also using maintain-titles.el which changes the screen title to match the file currently displayed in the screen (we didn't like all windows named Server Screen). As soon as the name changes, emacsclient never terminates. The revert problem is because epoch (and emacs) remember files as buffers once they are initially read up. This happens particularly with things like elm or nn where temp files have names like nn.process_number or snd.process_number. The first time you use elm and send mail all is well. The next time you get the revert message and you need to answer yes to make things work right. I don't have a full cure for these problems. I have made some changes which alleviate them (but cause other problems). emacsclient now always goes away because I make it exit immediately rather than waiting for the ^X# data to come back. This fixes the hung windows but messes up things like nn that figure that when the editor returns, editing must be complete (not so here because emacsclient finishes immediately). Clearly not a long term viable solution but I get by temporarily telling nn to use emacs -nw for my editor. elm is happy since I have to explicitly tell it to send before it reads up the edit file. As soon as I have some time I plan to go back and try to find the correct solution and allow the emacsclients to hang around. As far as the revert buffer, I added a kill-buffer to the ^X# code. This gets rid of things at the cost of reloading them next time. However, you get other problems if you ever open a second screen on the same buffer. The kill-buffer wipes the single buffer pointed to by both screens leaving epoch in a very "upset" state that requires stopping it and restarting it. A fix to this will require determining that there are multiple screens pointing to the same buffer. Probably doable when I have some time. -- Richard R. Ragan rrr@svl.cdc.com (408) 496-4340 Control Data Corporation - Silicon Valley Operations 5101 Patrick Henry Drive, Santa Clara, CA 95054-1111
Technical Details
Message-ID:
<32198@shamash.cdc.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mercury.cair.du.edu!pikes!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!uc!shamash!rrrReferences:
<Apr.8.14.59.37.1991.3090@morley.rutgers.edu> <laprade.671311399@ringworld>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,8b4a647e6bd8b32d X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-04-11 11:52:41 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!mercury.cair.du.edu!pikes!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!msi.umn.edu!cs.umn.edu!uc!shamash!rrr From: rrr@u02.svl.cdc.com (Rich Ragan) Newsgroups: gnu.epoch.misc Subject: Re: server problem Message-ID: <32198@shamash.cdc.com> Date: 10 Apr 91 22:56:35 GMT References: <Apr.8.14.59.37.1991.3090@morley.rutgers.edu> <laprade.671311399@ringworld> Sender: usenet@shamash.cdc.com Reply-To: rrr@svl.cdc.com Organization: Control Data Corporation, Silicon Valley Operations Lines: 45