0
|
1 ;;; meese.el --- protect the impressionable young minds of America
|
|
2
|
|
3 ;; This is in the public domain on account of being distributed since
|
|
4 ;; 1985 or 1986 without a copyright notice.
|
|
5
|
|
6 ;; Maintainer: FSF
|
|
7 ;; Keywords: games
|
|
8
|
2
|
9 ;;; Commentary:
|
|
10 ;; This file is grossly misnamed. It should be called reno.el.
|
|
11
|
|
12 ;;; Synched up with: FSF 19.34.
|
|
13
|
0
|
14 ;;; Code:
|
|
15
|
|
16 (defun protect-innocence-hook ()
|
|
17 (let ((dir (file-name-directory buffer-file-name)))
|
|
18 (if (and (equal buffer-file-name (expand-file-name "sex.6" dir))
|
|
19 (file-exists-p buffer-file-name)
|
|
20 (not (y-or-n-p "Are you over 18? ")))
|
|
21 (progn
|
|
22 (clear-visited-file-modtime)
|
|
23 (setq buffer-file-name (expand-file-name "celibacy.1" dir))
|
|
24 (let ((inhibit-read-only t)) ; otherwise (erase-buffer) may bomb.
|
|
25 (erase-buffer)
|
|
26 (insert-file-contents buffer-file-name t))
|
|
27 (rename-buffer (file-name-nondirectory buffer-file-name))))))
|
|
28
|
|
29 (add-hook 'find-file-hooks 'protect-innocence-hook)
|
|
30 (provide 'meese)
|
|
31
|
|
32 ;;; meese.el ends here
|