blob 81739dfa6cba050562ce52fee3f292f4931d5bb3 1233 bytes (raw)
name: lisp/obsolete/meese.el # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| | ;;; meese.el --- protect the impressionable young minds of America
;; This is in the public domain on account of being distributed since
;; 1985 or 1986 without a copyright notice.
;; This file is part of GNU Emacs.
;; Maintainer: emacs-devel@gnu.org
;; Keywords: games
;; Obsolete-since: 24.4
;;; Commentary:
;; Adds a hook to protect the impressionable young minds of America
;; from reading certain files in the Emacs distribution using Emacs.
;; This file is named after Ed Meese, the US Attorney General
;; under President Reagan, because of his support for censorship.
;;; Code:
(defun protect-innocence-hook ()
(let ((dir (file-name-directory buffer-file-name)))
(if (and (equal buffer-file-name (expand-file-name "sex.6" dir))
(file-exists-p buffer-file-name)
(not (y-or-n-p "Are you over 18? ")))
(progn
(clear-visited-file-modtime)
(setq buffer-file-name (expand-file-name "celibacy.1" dir))
(let ((inhibit-read-only t)) ; otherwise (erase-buffer) may bomb.
(erase-buffer)
(insert-file-contents buffer-file-name t))
(rename-buffer (file-name-nondirectory buffer-file-name))))))
;;;(add-hook 'find-file-hook 'protect-innocence-hook)
(provide 'meese)
;;; meese.el ends here
|
debug log:
solving 81739dfa6c ...
found 81739dfa6c in https://git.savannah.gnu.org/cgit/emacs.git
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).