annotate lisp/games/spook.el @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children b82b59fe008d
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 ;;; spook.el --- spook phrase utility for overloading the NSA line eater
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Copyright (C) 1988, 1993 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Maintainer: FSF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Keywords: games
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;; Created: May 1987
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;; Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; Synched up with: FSF 19.30.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ; this, and even if he did, he really didn't mean for you to use it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ; in an anarchistic way.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ; May 1987
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ; To use this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ; Just before sending mail, do M-x spook.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ; A number of phrases will be inserted into your buffer, to help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ; give your message that extra bit of attractiveness for automated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ; keyword scanners.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (require 'cookie1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ; Variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (defvar spook-phrases-file (concat data-directory "spook.lines")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 "Keep your favorite phrases here.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 (defvar spook-phrase-default-count 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 "Default number of phrases to insert")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (defun spook ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "Adds that special touch of class to your outgoing mail."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (cookie-insert spook-phrases-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 spook-phrase-default-count
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 "Checking authorization..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 "Checking authorization...Approved"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (defun snarf-spooks ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 "Return a vector containing the lines from `spook-phrases-file'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (cookie-snarf spook-phrases-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "Checking authorization..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "Checking authorization...Approved"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ;; Note: the implementation that used to take up most of this file has been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ;; cleaned up, generalized, gratuitously broken by esr, and now resides in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ;; cookie1.el.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ;;; spook.el ends here