2233
|
1 ;;; meese.el --- protect the impressionable young minds of America
|
|
2
|
896
|
3 ;; This is in the public domain on account of being distributed since
|
|
4 ;; 1985 or 1986 without a copyright notice.
|
791
|
5
|
|
6 ;; Maintainer: FSF
|
811
|
7 ;; Keywords: games
|
659
|
8
|
846
|
9 ;;; Code:
|
|
10
|
14
|
11 (defun protect-innocence-hook ()
|
8126
|
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? ")))
|
|
16 (progn
|
|
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.
|
|
20 (erase-buffer)
|
|
21 (insert-file-contents buffer-file-name t))
|
|
22 (rename-buffer (file-name-nondirectory buffer-file-name))))))
|
14
|
23
|
8126
|
24 (add-hook 'find-file-hooks 'protect-innocence-hook)
|
|
25 (provide 'meese)
|
659
|
26
|
|
27 ;;; meese.el ends here
|