# HG changeset patch # User Juri Linkov # Date 1230508101 0 # Node ID dd817152aca5d907a81241554a142a9841e32c0c # Parent fdd1168c1df6312dad4dce54929a6a947aab50b6 (butterfly): New command. diff -r fdd1168c1df6 -r dd817152aca5 lisp/misc.el --- a/lisp/misc.el Sun Dec 28 23:46:34 2008 +0000 +++ b/lisp/misc.el Sun Dec 28 23:48:21 2008 +0000 @@ -106,6 +106,20 @@ (interactive "p") (forward-to-word (- arg))) +;;;###autoload +(defun butterfly () + "This function is designed to be used only be the most +proficient hackers on earth. If equipped with a butterfly key, +it should be bound to C-x M-c M-butterfly (for further +information please refer to http://xkcd.com/378/)." + (interactive) + (if (yes-or-no-p "Do you really want to unleash the powers of the butterfly? ") + (progn + (message "Amazing physics going on...") + (sit-for (* 5 (/ (abs (random)) (float most-positive-fixnum)))) + (message "Successfully flipped one bit!")) + (message "Well, then go to www.xkcd.com!"))) + (provide 'misc) ;; arch-tag: 908f7884-c19e-4388-920c-9cfa425e449b