;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Mon Apr 17 19:54:26 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/userlock.el ;;; emacs version 19.28.90.26. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/userlock.el' was compiled for Emacs 19")) (put (quote file-locked) (quote error-conditions) (quote (file-locked file-error error))) #@382 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. (defalias 'ask-user-about-lock #[(fn opponent) " " [discard-input ((byte-code " b\f #Ɖ \n* \fU( ^ \"@ !!^ A=O ^ A=^ \fE\") A)" [nil answer message "%s is locking %s: action (s, q, p, ?)? " opponent fn t cursor-in-echo-area inhibit-quit read-char quit-flag tem help-char ask-user-about-lock-help assoc ((115 . t) (113 . yield) (7 . yield) (112) (63 . help)) beep "Please type q, s, or p; or ? for help" sit-for 3 help yield signal file-locked "File is locked"] 6))] 1 (#$ . 576)]) (defalias 'ask-user-about-lock-help #[nil "! q )" ["*Help*" princ "It has been detected that you want to modify a file that someone else has\nalready started modifying in EMACS.\n\nYou can teal the file; The other user becomes the\n intruder if (s)he ever unmodifies the file and then changes it again.\nYou can

roceed; you edit at your own (and the other user's) risk.\nYou can uit; don't modify this file." standard-output help-mode] 3]) (put (quote file-supersession) (quote error-conditions) (quote (file-supersession file-error error))) #@425 Ask a user who is about to modify an obsolete buffer what to do. This function has two choices: it can return, in which case the modification of the buffer will proceed, or it can (signal 'file-supersession (file)), in which case the proposed buffer modification will not be made. You can rewrite this to use any criterion you like to choose which one to do. The buffer in question is current when this function is called. (defalias 'ask-user-about-supersession-threat #[(fn) " " [discard-input ((byte-code " Y !\" ) \nU!˂' \"A: !!U =H U =U D\")!)" [nil answer message "%s changed on disk; really edit the buffer? (y, n or C-h) " file-name-nondirectory fn t cursor-in-echo-area read-char tem help-char help assoc ((110 . yield) (7 . yield) (121 . proceed) (63 . help)) beep "Please type y or n; or ? for help" sit-for 3 ask-user-about-supersession-help yield signal file-supersession "File changed on disk" "File on disk now will become a backup file if you save these changes." buffer-backed-up] 5))] 1 (#$ . 2073)]) (defalias 'ask-user-about-supersession-help #[nil "! q )" ["*Help*" princ "You want to modify a buffer whose disk file has changed\nsince you last read it in or saved it with this buffer.\n\nIf you say `y' to go ahead and modify this buffer,\nyou risk ruining the work of whoever rewrote the file.\nIf you say `n', the change you started to make will be aborted.\n\nUsually, you should type `n' and then `M-x revert-buffer',\nto get the latest version of the file, then make the change again." standard-output help-mode] 3])