Article View: comp.emacs
Article #3264demacs and file locking
From: E. J. Neafsey
Date: Tue, 22 Dec 1992 13:54
Date: Tue, 22 Dec 1992 13:54
51 lines
2697 bytes
2697 bytes
I recently posted a question about file locking and received a reply from Walter Hunt. I tried to reply by email but have been unsuccessful. The message is of general interest, so I am posting it. Neafsey's question: > |> > |> One other thing: any solutions to demacs's problems with file locking > |> when you SET TZ=CST-9??? > |> > Hunt's inquiry: > Could you fill me in on what this file-locking problem is? I am having > some truly annoying problems with file locking. > > Thanks. > Neafsey's reply: According to the original (Japanese authors) installation instructions for demacs, you are supposed to SET TZ=XST-9, where XST is your time zone (CST for me). This statement can be put in an emacs.bat file that runs everytime you start demacs or in your config.sys file. When you do this, demacs keeps the right time, as you can demonstrate if you type (current-time-string) in a buffer, put point immediately after it, and then type C-x C-e. Unfortunately, although the time is right, when you try to save files, demacs starts telling you it can't because of "userlock" or something like that. You can work around this by deleting the actual file using dired and then save the buffer again. However, this gets annoying. You can "solve" the problem by changing SET TZ=XST-9 to SET TZ=XST, as mentioned in the demacs FAQ file and in the American installation instructions. Now demacs has no trouble saving files because of userlock. However, the time is now wrong, as you will see by doing the (current-time-string) thing again. It actually turns out to be Japanese time (if it's really 6:00 AM your time, demacs says it's 8:00 PM). When demacs reaches midnight, the day changes to tomorrow. For most people this is OK, a small but annoying quirk. However, it sure would be nice to have it keep correct time and date, so that files are labeled with the right timestamp and calendar programs would work right. That's it, as far as I understand it. I'd like to fix it, but I can live with it. Hope this helps you. Let me know if you figure it out. E.J. Neafsey
Technical Details
Message-ID:
<eneafsey.725032482@lucpul.it.luc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!uchinews!lucpum.it.luc.edu!lucpul.it.luc.edu!eneafseyShow Full Headers
Complete Article Headers
Newsgroups: comp.emacs,gnu.emacs.help Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!uchinews!lucpum.it.luc.edu!lucpul.it.luc.edu!eneafsey From: eneafsey@lucpul.it.luc.edu (E. J. Neafsey) Subject: demacs and file locking Message-ID: <eneafsey.725032482@lucpul.it.luc.edu> Summary: demacs and file locking and the SET TZ=CST command Keywords: demacs, file locking, TZ Sender: root@lucpum.it.luc.edu (System PRIVILEGED Account) Organization: Loyola University Chicago Date: Tue, 22 Dec 1992 13:54:42 GMT Lines: 55