mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
3.2 KiB
3.2 KiB
(put (quote file-locked) (quote error-conditions) (quote (file-locked file-error error)))
(defun ask-user-about-lock (fn opponent) "\
Ask user what to do when he wants to edit FILE but it is locked by USER.
This function has a choice of three things to do:
do (signal 'buffer-file-locked (list FILE USER))
to refrain from editing the file
return t (grab the lock on the file)
return nil (edit the file even though it is locked).
You can rewrite it to use any criterion you like to choose which one to do." (byte-code "Ê ˆË‹‡" [answer opponent fn tem inhibit-quit t cursor-in-echo-area quit-flag nil help-char discard-input ((byte-code "È?…d