Add 2011 to FSF/AIST copyright years.
[bpt/emacs.git] / lisp / play / spook.el
CommitLineData
c88ab9ce
ER
1;;; spook.el --- spook phrase utility for overloading the NSA line eater
2
f2e3589a 3;; Copyright (C) 1988, 1993, 2001, 2002, 2003, 2004,
5df4f04c 4;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
58142744 5
d7b4d18f 6;; Maintainer: FSF
d7b4d18f 7;; Keywords: games
d9ecc911 8;; Created: May 1987
630cc463 9
a2535589
JA
10;; This file is part of GNU Emacs.
11
b1fc2b50 12;; GNU Emacs is free software: you can redistribute it and/or modify
a2535589 13;; it under the terms of the GNU General Public License as published by
b1fc2b50
GM
14;; the Free Software Foundation, either version 3 of the License, or
15;; (at your option) any later version.
a2535589
JA
16
17;; GNU Emacs is distributed in the hope that it will be useful,
18;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;; GNU General Public License for more details.
21
22;; You should have received a copy of the GNU General Public License
b1fc2b50 23;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
a2535589 24
630cc463 25;;; Commentary:
a2535589 26
b578f267
EN
27;; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write
28;; this, and even if he did, he really didn't mean for you to use it
29;; in an anarchistic way.
30;;
31;; To use this:
32;; Just before sending mail, do M-x spook.
33;; A number of phrases will be inserted into your buffer, to help
34;; give your message that extra bit of attractiveness for automated
35;; keyword scanners. Help defeat the NSA trunk trawler!
a2535589 36
630cc463
ER
37;;; Code:
38
269d869f 39(require 'cookie1)
ed73b256 40
a2535589 41; Variables
323f7c49
SE
42(defgroup spook nil
43 "Spook phrase utility for overloading the NSA line eater."
44 :prefix "spook-"
45 :group 'games)
46
1a601ad8 47(defcustom spook-phrases-file (expand-file-name "spook.lines" data-directory)
323f7c49
SE
48 "Keep your favorite phrases here."
49 :type 'file
50 :group 'spook)
51
52(defcustom spook-phrase-default-count 15
53 "Default number of phrases to insert."
54 :type 'integer
55 :group 'spook)
a2535589 56
c38b7764 57;;;###autoload
a2535589
JA
58(defun spook ()
59 "Adds that special touch of class to your outgoing mail."
60 (interactive)
215aa4f9
RM
61 (cookie-insert spook-phrases-file
62 spook-phrase-default-count
63 "Checking authorization..."
64 "Checking authorization...Approved"))
65
66;;;###autoload
67(defun snarf-spooks ()
68 "Return a vector containing the lines from `spook-phrases-file'."
69 (cookie-snarf spook-phrases-file
70 "Checking authorization..."
71 "Checking authorization...Approved"))
72
73;; Note: the implementation that used to take up most of this file has been
74;; cleaned up, generalized, gratuitously broken by esr, and now resides in
75;; cookie1.el.
c88ab9ce 76
896546cd
RS
77(provide 'spook)
78
cbee283d 79;; arch-tag: c682b61f-92b6-4492-9c0d-2367e562449c
c88ab9ce 80;;; spook.el ends here