X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/d76bf86f438d4f5f9fe493ab76f02ffc78f3ae2e..88f3dbc46545d1f699dd3f2aba8156cf1cdaa500:/lisp/userlock.el diff --git a/lisp/userlock.el b/lisp/userlock.el index 4ad96eb41c..7c7b09cb0d 100644 --- a/lisp/userlock.el +++ b/lisp/userlock.el @@ -1,8 +1,10 @@ ;;; userlock.el --- handle file access contention between multiple users -;; Copyright (C) 1985-1986, 2001-2013 Free Software Foundation, Inc. +;; Copyright (C) 1985-1986, 2001-2014 Free Software Foundation, Inc. -;; Maintainer: FSF +;; Author: Richard King +;; (according to authors.el) +;; Maintainer: emacs-devel@gnu.org ;; Keywords: internal ;; Package: emacs @@ -30,8 +32,7 @@ ;;; Code: -(put 'file-locked 'error-conditions '(file-locked file-error error)) -(put 'file-locked 'error-message "File is locked") +(define-error 'file-locked "File is locked" 'file-error) ;;;###autoload (defun ask-user-about-lock (file opponent) @@ -94,8 +95,7 @@ You can uit; don't modify this file.") (with-current-buffer standard-output (help-mode)))) -(put - 'file-supersession 'error-conditions '(file-supersession file-error error)) +(define-error 'file-supersession nil 'file-error) ;;;###autoload (defun ask-user-about-supersession-threat (fn)