annotate lisp/utils/meese.el @ 51:69ce12f60f55

Added tag r19-16b91 for changeset ee648375d8d6
author cvs
date Mon, 13 Aug 2007 08:56:44 +0200
parents ac2d302a0011
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; meese.el --- protect the impressionable young minds of America
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; This is in the public domain on account of being distributed since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; 1985 or 1986 without a copyright notice.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Maintainer: FSF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; Keywords: games
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
9 ;;; Commentary:
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
10 ;; This file is grossly misnamed. It should be called reno.el.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
11
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
12 ;;; Synched up with: FSF 19.34.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
13
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 (defun protect-innocence-hook ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 (let ((dir (file-name-directory buffer-file-name)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 (if (and (equal buffer-file-name (expand-file-name "sex.6" dir))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 (file-exists-p buffer-file-name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 (not (y-or-n-p "Are you over 18? ")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 (clear-visited-file-modtime)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 (setq buffer-file-name (expand-file-name "celibacy.1" dir))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 (let ((inhibit-read-only t)) ; otherwise (erase-buffer) may bomb.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 (erase-buffer)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 (insert-file-contents buffer-file-name t))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (rename-buffer (file-name-nondirectory buffer-file-name))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 (add-hook 'find-file-hooks 'protect-innocence-hook)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (provide 'meese)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;;; meese.el ends here