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