diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/obsolete/meese.el | 38 |
2 files changed, 43 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 92f396367c5..e77adedb23f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-02-07 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * obsolete/meese.el: Restore as obsolete (deleted 2014-01-11). | ||
| 4 | Disable now non-functional find-file-hook. | ||
| 5 | |||
| 1 | 2014-02-06 Michael Albinus <michael.albinus@gmx.de> | 6 | 2014-02-06 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&" | 8 | * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&" |
diff --git a/lisp/obsolete/meese.el b/lisp/obsolete/meese.el new file mode 100644 index 00000000000..c0aba38dd3b --- /dev/null +++ b/lisp/obsolete/meese.el | |||
| @@ -0,0 +1,38 @@ | |||
| 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 | ;; This file is part of GNU Emacs. | ||
| 7 | |||
| 8 | ;; Maintainer: FSF | ||
| 9 | ;; Keywords: games | ||
| 10 | ;; Obsolete-since: 24.4 | ||
| 11 | |||
| 12 | ;;; Commentary: | ||
| 13 | |||
| 14 | ;; Adds a hook to protect the impressionable young minds of America | ||
| 15 | ;; from reading certain files in the Emacs distribution using Emacs. | ||
| 16 | |||
| 17 | ;; This file is named after Ed Meese, the US Attorney General | ||
| 18 | ;; under President Reagan, because of his support for censorship. | ||
| 19 | |||
| 20 | ;;; Code: | ||
| 21 | |||
| 22 | (defun protect-innocence-hook () | ||
| 23 | (let ((dir (file-name-directory buffer-file-name))) | ||
| 24 | (if (and (equal buffer-file-name (expand-file-name "sex.6" dir)) | ||
| 25 | (file-exists-p buffer-file-name) | ||
| 26 | (not (y-or-n-p "Are you over 18? "))) | ||
| 27 | (progn | ||
| 28 | (clear-visited-file-modtime) | ||
| 29 | (setq buffer-file-name (expand-file-name "celibacy.1" dir)) | ||
| 30 | (let ((inhibit-read-only t)) ; otherwise (erase-buffer) may bomb. | ||
| 31 | (erase-buffer) | ||
| 32 | (insert-file-contents buffer-file-name t)) | ||
| 33 | (rename-buffer (file-name-nondirectory buffer-file-name)))))) | ||
| 34 | |||
| 35 | ;;;(add-hook 'find-file-hook 'protect-innocence-hook) | ||
| 36 | (provide 'meese) | ||
| 37 | |||
| 38 | ;;; meese.el ends here | ||