home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / emacs / 3848 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.6 KB

  1. Xref: sparky comp.emacs:3848 gnu.emacs.help:5156
  2. Newsgroups: comp.emacs,gnu.emacs.help
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!uchinews!lucpum.it.luc.edu!lucpul.it.luc.edu!eneafsey
  4. From: eneafsey@lucpul.it.luc.edu (E. J. Neafsey)
  5. Subject: demacs and file locking
  6. Message-ID: <eneafsey.725032482@lucpul.it.luc.edu>
  7. Summary: demacs and file locking and the SET TZ=CST command
  8. Keywords: demacs, file locking, TZ
  9. Sender: root@lucpum.it.luc.edu (System PRIVILEGED Account)
  10. Organization: Loyola University Chicago
  11. Date: Tue, 22 Dec 1992 13:54:42 GMT
  12. Lines: 55
  13.  
  14. I recently posted a question about file locking and received a reply
  15. from Walter Hunt.  I tried to reply by email but have been unsuccessful.
  16. The message is of general interest, so I am posting it.
  17.  
  18. Neafsey's question:
  19. > |> 
  20. > |> One other thing: any solutions to demacs's problems with file locking
  21. > |> when you SET TZ=CST-9???
  22. > |> 
  23.  
  24. Hunt's inquiry:
  25. >     Could you fill me in on what this file-locking problem is? I am having
  26. > some truly annoying problems with file locking.
  27. >     Thanks.
  28.  
  29. Neafsey's reply:
  30.  
  31. According to the original (Japanese authors) installation instructions
  32. for demacs, you are supposed to SET TZ=XST-9, where XST is your time
  33. zone (CST for me).  This statement can be put in an emacs.bat file
  34. that runs everytime you start demacs or in your config.sys file.
  35.  
  36.    When you do this, demacs keeps the right time, as you can
  37. demonstrate if you type (current-time-string) in a buffer, put point
  38. immediately after it, and then type C-x C-e.  Unfortunately, although
  39. the time is right, when you try to save files, demacs starts telling
  40. you it can't because of "userlock" or something like that.  You can
  41. work around this by deleting the actual file using dired and then save
  42. the buffer again.  However, this gets annoying.
  43.  
  44.    You can "solve" the problem by changing SET TZ=XST-9 to SET TZ=XST,
  45. as mentioned in the demacs FAQ file and in the American installation
  46. instructions.  Now demacs has no trouble saving files because of
  47. userlock.  However, the time is now wrong, as you will see by doing
  48. the (current-time-string) thing again.  It actually turns out to be
  49. Japanese time (if it's really 6:00 AM your time, demacs says it's 8:00
  50. PM).  When demacs reaches midnight, the day changes to tomorrow.  For
  51. most people this is OK, a small but annoying quirk.  However, it sure
  52. would be nice to have it keep correct time and date, so that files are
  53. labeled with the right timestamp and calendar programs would work
  54. right.
  55.  
  56.    That's it, as far as I understand it.  I'd like to fix it, but I
  57. can live with it.
  58.  
  59.    Hope this helps you.  Let me know if you figure it out.
  60.  
  61. E.J. Neafsey
  62.  
  63.  
  64.  
  65.  
  66.