1 ;;; meese.el --- protect the impressionable young minds of America
3 ;; This is in the public domain on account of being distributed since
4 ;; 1985 or 1986 without a copyright notice.
11 (defun protect-innocence-hook ()
12 (let ((dir (file-name-directory buffer-file-name
)))
13 (if (and (equal buffer-file-name
(expand-file-name "sex.6" dir
))
14 (file-exists-p buffer-file-name
)
15 (not (y-or-n-p "Are you over 18? ")))
17 (clear-visited-file-modtime)
18 (setq buffer-file-name
(expand-file-name "celibacy.1" dir
))
19 (let ((inhibit-read-only t
)) ; otherwise (erase-buffer) may bomb.
21 (insert-file-contents buffer-file-name t
))
22 (rename-buffer (file-name-nondirectory buffer-file-name
))))))
24 (add-hook 'find-file-hooks
'protect-innocence-hook
)
27 ;;; meese.el ends here