diff options
Diffstat (limited to 'lisp/obsolete/old-emacs-lock.el')
-rw-r--r-- | lisp/obsolete/old-emacs-lock.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/obsolete/old-emacs-lock.el b/lisp/obsolete/old-emacs-lock.el index 07bccd90711..ce4c60e6a17 100644 --- a/lisp/obsolete/old-emacs-lock.el +++ b/lisp/obsolete/old-emacs-lock.el @@ -1,4 +1,4 @@ -;;; emacs-lock.el --- prevents you from exiting Emacs if a buffer is locked +;;; old-emacs-lock.el --- prevents you from exiting Emacs if a buffer is locked -*- lexical-binding: t; -*- ;; Copyright (C) 1994, 1997, 2001-2021 Free Software Foundation, Inc. @@ -90,13 +90,13 @@ If the buffer is locked, signal error and display its name." (setq emacs-lock-from-exiting t))) (unless noninteractive - (add-hook 'kill-emacs-hook 'check-emacs-lock)) -(add-hook 'kill-buffer-hook 'emacs-lock-check-buffer-lock) -(add-hook 'shell-mode-hook 'emacs-lock-was-buffer-locked) -(add-hook 'shell-mode-hook 'emacs-lock-shell-sentinel) -(add-hook 'telnet-mode-hook 'emacs-lock-was-buffer-locked) -(add-hook 'telnet-mode-hook 'emacs-lock-shell-sentinel) + (add-hook 'kill-emacs-hook #'check-emacs-lock)) +(add-hook 'kill-buffer-hook #'emacs-lock-check-buffer-lock) +(add-hook 'shell-mode-hook #'emacs-lock-was-buffer-locked) +(add-hook 'shell-mode-hook #'emacs-lock-shell-sentinel) +(add-hook 'telnet-mode-hook #'emacs-lock-was-buffer-locked) +(add-hook 'telnet-mode-hook #'emacs-lock-shell-sentinel) (provide 'emacs-lock) -;;; emacs-lock.el ends here +;;; old-emacs-lock.el ends here |