annotate lisp/games/spook.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 0293115a14e9
children b9518feda344
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
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 4
diff changeset
24 ;; Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
26 ;;; Synched up with: FSF 19.30.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
30 ; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
31 ; this, and even if he did, he really didn't mean for you to use it
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
32 ; in an anarchistic way.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
33 ; May 1987
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
34
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
35 ; To use this:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
36 ; Just before sending mail, do M-x spook.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
37 ; A number of phrases will be inserted into your buffer, to help
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
38 ; give your message that extra bit of attractiveness for automated
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
39 ; keyword scanners.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (require 'cookie1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ; Variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 (defvar spook-phrases-file (concat data-directory "spook.lines")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 "Keep your favorite phrases here.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 (defvar spook-phrase-default-count 15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 "Default number of phrases to insert")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (defun spook ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 "Adds that special touch of class to your outgoing mail."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (cookie-insert spook-phrases-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 spook-phrase-default-count
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 "Checking authorization..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 "Checking authorization...Approved"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;;;###autoload
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (defun snarf-spooks ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 "Return a vector containing the lines from `spook-phrases-file'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (cookie-snarf spook-phrases-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "Checking authorization..."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 "Checking authorization...Approved"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ;; 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
69 ;; cleaned up, generalized, gratuitously broken by esr, and now resides in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ;; cookie1.el.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;;; spook.el ends here