Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!pasteur!ucbvax!THEORY.LCS.MIT.EDU!bard From: bard@THEORY.LCS.MIT.EDU (Bard Bloom) Newsgroups: comp.emacs Subject: stop-editing-hook? Message-ID: <8801271613.AA02607@RAVEN.LCS.MIT.EDU> Date: 27 Jan 88 16:13:37 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 12 Is there a hook which GNU emacs runs when a buffer is killed? I am trying to write some functions which prevent more than one person from editing a file at a given time. There are some primitives (lock-buffer and friends), but it looks as if I have to write some commands to manipulate them. I can set up the locks without trouble, but I'd like to be able to take them off when the person stops editing the file -- preferably without forcing the person to leave emacs. Thanks, Bard