Mercurial > emacs
comparison lisp/userlock.el @ 258:1e0bc00dca7a
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 09 May 1991 21:50:55 +0000 |
parents | 9697c13298e5 |
children | fec3f9a1e3e5 |
comparison
equal
deleted
inserted
replaced
257:e5ba2ba35226 | 258:1e0bc00dca7a |
---|---|
23 ;; `ask-user-about-supersession-threat'. | 23 ;; `ask-user-about-supersession-threat'. |
24 | 24 |
25 | 25 |
26 (put 'file-locked 'error-conditions '(file-locked file-error error)) | 26 (put 'file-locked 'error-conditions '(file-locked file-error error)) |
27 | 27 |
28 ;;;###autoload | |
28 (defun ask-user-about-lock (fn opponent) | 29 (defun ask-user-about-lock (fn opponent) |
29 "Ask user what to do when he wants to edit FILE but it is locked by USER. | 30 "Ask user what to do when he wants to edit FILE but it is locked by USER. |
30 This function has a choice of three things to do: | 31 This function has a choice of three things to do: |
31 do (signal 'buffer-file-locked (list FILE USER)) | 32 do (signal 'buffer-file-locked (list FILE USER)) |
32 to refrain from editing the file | 33 to refrain from editing the file |
71 You can <q>uit; don't modify this file."))) | 72 You can <q>uit; don't modify this file."))) |
72 | 73 |
73 (put | 74 (put |
74 'file-supersession 'error-conditions '(file-supersession file-error error)) | 75 'file-supersession 'error-conditions '(file-supersession file-error error)) |
75 | 76 |
77 ;;;###autoload | |
76 (defun ask-user-about-supersession-threat (fn) | 78 (defun ask-user-about-supersession-threat (fn) |
77 "Ask a user who is about to modify an obsolete buffer what to do. | 79 "Ask a user who is about to modify an obsolete buffer what to do. |
78 This function has two choices: it can return, in which case the modification | 80 This function has two choices: it can return, in which case the modification |
79 of the buffer will proceed, or it can (signal 'file-supersession (file)), | 81 of the buffer will proceed, or it can (signal 'file-supersession (file)), |
80 in which case the proposed buffer modification will not be made. | 82 in which case the proposed buffer modification will not be made. |