summaryrefslogtreecommitdiff
path: root/lisp/play
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-11-30 08:34:29 +0000
committerGlenn Morris <rgm@gnu.org>2007-11-30 08:34:29 +0000
commit53e2f97f97018d46b0fabaa70820395201468220 (patch)
tree424e6aead226c3ad59bdd9bb3c4bb99e224a68d4 /lisp/play
parent257a0a0d98229a5b361b198d8136b26f10334044 (diff)
downloademacs-53e2f97f97018d46b0fabaa70820395201468220.tar.gz
Don't require cl when compiling.
(byte-compile-warnings): Set via file local variables. (dun-parse): Let-bind `beg' and `line'.
Diffstat (limited to 'lisp/play')
-rw-r--r--lisp/play/dunnet.el31
1 files changed, 13 insertions, 18 deletions
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el
index a1f8c2708d2..95c16849dce 100644
--- a/lisp/play/dunnet.el
+++ b/lisp/play/dunnet.el
@@ -1,4 +1,4 @@
-;;; dunnet.el --- text adventure for Emacs
+;;; dunnet.el --- text adventure for Emacs -*- byte-compile-warnings: nil -*-
;; Copyright (C) 1992, 1993, 2001, 2002, 2003, 2004,
;; 2005, 2006, 2007 Free Software Foundation, Inc.
@@ -46,12 +46,6 @@
:type 'file
:group 'dunnet)
-(if nil
- (eval-and-compile (setq byte-compile-warnings nil)))
-
-(eval-when-compile
- (require 'cl))
-
;;;; Mode definitions for interactive mode
(define-derived-mode dun-mode text-mode "Dungeon"
@@ -63,18 +57,19 @@
"Function called when return is pressed in interactive mode to parse line."
(interactive "*p")
(beginning-of-line)
- (setq beg (+ (point) 1))
- (end-of-line)
- (if (and (not (= beg (point))) (not (< (point) beg))
- (string= ">" (buffer-substring (- beg 1) beg)))
- (progn
- (setq line (downcase (buffer-substring beg (point))))
- (princ line)
- (if (eq (dun-vparse dun-ignore dun-verblist line) -1)
- (dun-mprinc "I don't understand that.\n")))
+ (let ((beg (1+ (point)))
+ line)
+ (end-of-line)
+ (if (and (not (= beg (point))) (not (< (point) beg))
+ (string= ">" (buffer-substring (- beg 1) beg)))
+ (progn
+ (setq line (downcase (buffer-substring beg (point))))
+ (princ line)
+ (if (eq (dun-vparse dun-ignore dun-verblist line) -1)
+ (dun-mprinc "I don't understand that.\n")))
(goto-char (point-max))
- (dun-mprinc "\n"))
- (dun-messages))
+ (dun-mprinc "\n")))
+ (dun-messages))
(defun dun-messages ()
(if dun-dead