diff options
| author | Glenn Morris | 2007-11-30 08:34:29 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-30 08:34:29 +0000 |
| commit | 53e2f97f97018d46b0fabaa70820395201468220 (patch) | |
| tree | 424e6aead226c3ad59bdd9bb3c4bb99e224a68d4 | |
| parent | 257a0a0d98229a5b361b198d8136b26f10334044 (diff) | |
| download | emacs-53e2f97f97018d46b0fabaa70820395201468220.tar.gz emacs-53e2f97f97018d46b0fabaa70820395201468220.zip | |
Don't require cl when compiling.
(byte-compile-warnings): Set via file local variables.
(dun-parse): Let-bind `beg' and `line'.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/play/dunnet.el | 31 |
2 files changed, 17 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 40b2fafc42f..ee796b3e0a5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -31,6 +31,10 @@ | |||
| 31 | (bbdb-address-location, bbdb-record-addresses): Pass non-nil | 31 | (bbdb-address-location, bbdb-record-addresses): Pass non-nil |
| 32 | fourth arg to declare-function. | 32 | fourth arg to declare-function. |
| 33 | 33 | ||
| 34 | * play/dunnet.el: Don't require cl when compiling. | ||
| 35 | (byte-compile-warnings): Set via file local variables. | ||
| 36 | (dun-parse): Let-bind `beg' and `line'. | ||
| 37 | |||
| 34 | 2007-11-29 Alexandre Julliard <julliard@winehq.org> | 38 | 2007-11-29 Alexandre Julliard <julliard@winehq.org> |
| 35 | 39 | ||
| 36 | * vc-git.el (vc-git-dir-state): Fix the git command arguments. | 40 | * vc-git.el (vc-git-dir-state): Fix the git command arguments. |
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 @@ | |||
| 1 | ;;; dunnet.el --- text adventure for Emacs | 1 | ;;; dunnet.el --- text adventure for Emacs -*- byte-compile-warnings: nil -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1992, 1993, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
| @@ -46,12 +46,6 @@ | |||
| 46 | :type 'file | 46 | :type 'file |
| 47 | :group 'dunnet) | 47 | :group 'dunnet) |
| 48 | 48 | ||
| 49 | (if nil | ||
| 50 | (eval-and-compile (setq byte-compile-warnings nil))) | ||
| 51 | |||
| 52 | (eval-when-compile | ||
| 53 | (require 'cl)) | ||
| 54 | |||
| 55 | ;;;; Mode definitions for interactive mode | 49 | ;;;; Mode definitions for interactive mode |
| 56 | 50 | ||
| 57 | (define-derived-mode dun-mode text-mode "Dungeon" | 51 | (define-derived-mode dun-mode text-mode "Dungeon" |
| @@ -63,18 +57,19 @@ | |||
| 63 | "Function called when return is pressed in interactive mode to parse line." | 57 | "Function called when return is pressed in interactive mode to parse line." |
| 64 | (interactive "*p") | 58 | (interactive "*p") |
| 65 | (beginning-of-line) | 59 | (beginning-of-line) |
| 66 | (setq beg (+ (point) 1)) | 60 | (let ((beg (1+ (point))) |
| 67 | (end-of-line) | 61 | line) |
| 68 | (if (and (not (= beg (point))) (not (< (point) beg)) | 62 | (end-of-line) |
| 69 | (string= ">" (buffer-substring (- beg 1) beg))) | 63 | (if (and (not (= beg (point))) (not (< (point) beg)) |
| 70 | (progn | 64 | (string= ">" (buffer-substring (- beg 1) beg))) |
| 71 | (setq line (downcase (buffer-substring beg (point)))) | 65 | (progn |
| 72 | (princ line) | 66 | (setq line (downcase (buffer-substring beg (point)))) |
| 73 | (if (eq (dun-vparse dun-ignore dun-verblist line) -1) | 67 | (princ line) |
| 74 | (dun-mprinc "I don't understand that.\n"))) | 68 | (if (eq (dun-vparse dun-ignore dun-verblist line) -1) |
| 69 | (dun-mprinc "I don't understand that.\n"))) | ||
| 75 | (goto-char (point-max)) | 70 | (goto-char (point-max)) |
| 76 | (dun-mprinc "\n")) | 71 | (dun-mprinc "\n"))) |
| 77 | (dun-messages)) | 72 | (dun-messages)) |
| 78 | 73 | ||
| 79 | (defun dun-messages () | 74 | (defun dun-messages () |
| 80 | (if dun-dead | 75 | (if dun-dead |