X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/e8757f091a502b858912a4c267210e009227d6e6..a608ff369cae4be96fc6af884f6af8d20ffed344:/lisp/userlock.el diff --git a/lisp/userlock.el b/lisp/userlock.el index 4c003e423a..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-2012 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)