summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-02-09 20:30:54 +0200
committerEli Zaretskii <eliz@gnu.org>2016-02-09 20:30:54 +0200
commita6d675393841be3fb56ad20320742e458c7af369 (patch)
tree2a2f7754e58857b6dbd7deae65f76dfda1c5f697 /lisp/emacs-lisp
parentfff8bfc8d831faf76a80b44b15c6b6c190a1cd52 (diff)
downloademacs-a6d675393841be3fb56ad20320742e458c7af369.tar.gz
emacs-a6d675393841be3fb56ad20320742e458c7af369.tar.bz2
emacs-a6d675393841be3fb56ad20320742e458c7af369.zip
Disable 'timer-list'
* lisp/emacs-lisp/timer-list.el: Make 'timer-list' a disabled command.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/timer-list.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/timer-list.el b/lisp/emacs-lisp/timer-list.el
index b54902a45f8..eba152325c2 100644
--- a/lisp/emacs-lisp/timer-list.el
+++ b/lisp/emacs-lisp/timer-list.el
@@ -74,6 +74,9 @@
'timer timer)
(insert "\n")))
(goto-char (point-min)))
+;; This command can be destructive if they don't know what they are
+;; doing. Kids, don't try this at home!
+;;;###autoload (put 'timer-list 'disabled "Beware: manually canceling timers can ruin your Emacs session.")
(defvar timer-list-mode-map
(let ((map (make-sparse-keymap)))