diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-08-19 16:48:59 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-08-19 16:48:59 -0700 |
commit | 07fcbb558d797272b9f43547da60beda485873a3 (patch) | |
tree | 77d5da14e9f9d9d8b1d877c70c01296fd3893796 /lisp/obsolete/old-emacs-lock.el | |
parent | c9bdeff3e45a7ac84a74a81bb048046f82dddc91 (diff) | |
parent | fb81c8c3adf8633f2f617c82f6019aef630860c7 (diff) | |
download | emacs-07fcbb558d797272b9f43547da60beda485873a3.tar.gz |
Merge remote-tracking branch 'origin/master' into athena/unstable
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 |