Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4bd2c013
Commit
4bd2c013
authored
Sep 20, 2002
by
Richard M. Stallman
Browse files
(bb-right): Respect prefix argument.
(bb-left, bb-up, bb-down): Likewise.
parent
3adec967
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/play/blackbox.el
lisp/play/blackbox.el
+21
-21
No files found.
lisp/ChangeLog
View file @
4bd2c013
2002-09-19 Tom Tromey <tromey@redhat.com>
* play/blackbox.el (bb-right): Respect prefix argument.
(bb-left, bb-up, bb-down): Likewise.
2002-09-19 Richard M. Stallman <rms@gnu.org>
* cus-dep.el (custom-make-dependencies): Fix previous change.
...
...
lisp/play/blackbox.el
View file @
4bd2c013
;;; blackbox.el --- blackbox game in Emacs Lisp
;; Copyright (C) 1985, 1986, 1987, 1992, 2001 Free Software Foundation, Inc.
;; Copyright (C) 1985, 1986, 1987, 1992, 2001
, 2002
Free Software Foundation, Inc.
;; Author: F. Thomas May <uw-nsr!uw-warp!tom@beaver.cs.washington.edu>
;; Adapted-By: ESR
...
...
@@ -275,33 +275,33 @@ a reflection."
(insert (format "
\nThere
are
%d
balls
in
the
box
" (length bb-board)))
))
(defun bb-right ()
(interactive)
(if (= bb-x 8)
()
(defun bb-right (count)
(interactive "
p
")
(while (and (> count 0) (< bb-x 8))
(forward-char 2)
(setq bb-x (1+ bb-x))))
(setq bb-x (1+ bb-x))
(setq count (1- count))))
(defun bb-left ()
(interactive)
(if (= bb-x -1)
()
(defun bb-left (count)
(interactive "
p
")
(while (and (> count 0) (> bb-x -1))
(backward-char 2)
(setq bb-x (1- bb-x))))
(setq bb-x (1- bb-x))
(setq count (1- count))))
(defun bb-up ()
(interactive)
(if (= bb-y -1)
()
(defun bb-up (count)
(interactive "
p
")
(while (and (> count 0) (> bb-y -1))
(previous-line 1)
(setq bb-y (1- bb-y))))
(setq bb-y (1- bb-y))
(setq count (1- count))))
(defun bb-down ()
(interactive)
(if (= bb-y 8)
()
(defun bb-down (count)
(interactive "
p
")
(while (and (> count 0) (< bb-y 8))
(next-line 1)
(setq bb-y (1+ bb-y))))
(setq bb-y (1+ bb-y))
(setq count (1- count))))
(defun bb-eol ()
(interactive)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment