1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

342 Commits

Author SHA1 Message Date
Lute Kamstra
c83c96545b * play/5x5.el (5x5-mode):
* play/decipher.el (decipher-mode, decipher-stats-mode):
* play/gomoku.el (gomoku-mode):
* play/snake.el (snake-mode):
* play/solitaire.el (solitaire-mode):
* play/tetris.el (tetris-mode): Use run-mode-hooks.

* play/landmark.el (lm-mode):
* play/mpuz.el (mpuz-mode): Use kill-all-local-variables and
run-mode-hooks.
2005-05-26 15:26:09 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Thien-Thi Nguyen
0ec2b560ea Update years in copyright notice; nfc. 2005-05-12 01:35:20 +00:00
Kim F. Storm
46a048fc77 (animate-place-char): Use forward-line instead
of next-line to improve performance.
2005-03-09 22:50:09 +00:00
Richard M. Stallman
b64e46503f (decipher-mode): Don't call decipher-read-alphabet if buffer is empty. 2005-01-17 23:50:23 +00:00
Thien-Thi Nguyen
fc866a94f1 (zone-pgm-random-life): Fix typo. 2004-12-17 11:58:21 +00:00
Thien-Thi Nguyen
e3fa1c1178 (zone): Init `line-spacing' from orig buffer.
(zone-replace-char): Take `count' and `del-count'
instead of `direction'.  Update callers.  When `del-count' is
non-nil, delete that many characters, otherwise `count' characters
backwards.  Insert the newly-replaced string `count' times.
(zone-fret): Handle chars w/ width greater than one.
(zone-fall-through-ws): No longer take window width `ww'.
Update callers.  Add handling for `char-width' greater than one.
(zone-pgm-drip): Update var holding window-end position every cycle.
2004-12-17 11:48:56 +00:00
Thien-Thi Nguyen
3cc2b29c6a Commentary munging; nfc. 2004-12-16 17:13:22 +00:00
Thien-Thi Nguyen
8b000fc3b1 (zone): Fix omission bug: Use a self-disabling
one-shot thunk for uniform (error, quit, normal) recovery.
(zone-pgm-random-life): Fix bug:
Recognize empty initial field by lack of "@" chars.
2004-12-16 17:11:15 +00:00
Thien-Thi Nguyen
6f5546a98c Add to THANKS in Commentary; nfc. 2004-12-15 13:59:17 +00:00
Thien-Thi Nguyen
3ef8085247 (zone): Set `truncate-lines'.
Also, init `tab-width' with value from original buffer.
(zone-shift-up): Rewrite for speed.
(zone-shift-down, zone-shift-left, zone-shift-right): Likewise.
(zone-pgm-jitter): Remove redundant entries from ops vector.
(zone-exploding-remove): Reduce iteration count.
(zone-cpos): Convert to defsubst.
(zone-replace-char): New defsubst.
(zone-park/sit-for): Likewise.
(zone-fret): Take window-start arg.
Update callers. Use `zone-park/sit-for'.
(zone-fill-out-screen): Rewrite.
(zone-fall-through-ws): Likewise. Update callers.
(zone-pgm-drip): Use `zone-replace-char'.
Move var inits before while-loop. Use `zone-park/sit-for'.
(zone-pgm-random-life): Handle empty initial field.
Use `zone-replace-char' and `zone-park/sit-for'.
2004-12-15 13:53:58 +00:00
Thien-Thi Nguyen
0ccb50fc8a (zone-programs): Add `zone-pgm-random-life'.
(zone-fill-out-screen): New func.
(zone-pgm-drip): Use `zone-fill-out-screen'.
Also, no longer go to point-min on every cycle.
(zone-pgm-paragraph-spaz): Allow spazzing for texinfo-mode.
(zone-pgm-random-life-wait): New user var.
(zone-pgm-random-life): New func.
2004-12-11 14:51:32 +00:00
Luc Teirlinck
4127f01512 Maintainer is now FSF.
(life-patterns, life-neighbor-deltas, life-window-start)
(life-current-generation, life-generation-string): Use defvar instead
of defconst.
2004-11-16 02:54:06 +00:00
Richard M. Stallman
ca5f43fa07 (5x5-new-game): Set up the buffer even if not interactive. 2004-11-01 07:46:16 +00:00
Richard M. Stallman
1d4408c8eb (fortune-to-signature): Don't use interactive-p.
(fortune-in-buffer): Doc fix.
2004-11-01 07:45:18 +00:00
Thien-Thi Nguyen
18a6a20783 (bb-trace-ray): Avoid double tracing. 2004-09-08 10:07:38 +00:00
Jesper Harder
cbfbd37df5 (gamegrid-add-score-insecure): Use sort-fields. 2004-04-05 11:57:14 +00:00
Juri Linkov
16c32e8acf Fix keywords. 2004-03-22 07:46:31 +00:00
Eli Zaretskii
8bcfd13b54 (animate-birthday-present): Accept other than `Sarah', too. 2004-02-21 13:30:42 +00:00
Simon Josefsson
507c5deb1e Fix typo.
(morse-code): Add @.
2004-02-19 19:36:36 +00:00
Andreas Schwab
dc12031733 (zone-call): Fix format string. 2004-02-08 22:32:18 +00:00
Richard M. Stallman
3066be24c1 (handwrite): Make the handwrite credit message
a comment rather than an output command.
2003-12-29 20:02:15 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
e7f32a7551 (decipher-ignore-spaces): Don't quote nil and t in docstrings. 2003-05-06 17:45:50 +00:00
Juanma Barranquero
8101c2f2e2 (mpuz-silent): Don't quote nil and t in docstrings. 2003-05-06 17:45:00 +00:00
Juanma Barranquero
f62ebc65ab Added a comment explaining the various ways to save a game score on POSIX
systems.
(gamegrid-add-score-with-update-game-score): Use `cond' instead of `if'.
Provide for the case that FILE is an absolute filename.  Create the directory
"$HOME/.emacs.d/games", if necessary.
2003-04-29 23:06:50 +00:00
Glenn Morris
428d45d255 (gomoku-buffer-name): New constant.
(gomoku-mode): Doc fix.  Add call to kill-all-local-variables,
for global-font-lock-mode.
(gomoku): Do not call gomoku-switch-to-window directly, else the
player is asked the startup questions twice after a killed game.
(gomoku-prompt-for-other-game): Throw an error if no new game,
since otherwise answering no after a killed game has no effect.
(gomoku-switch-to-window): Use gomoku-buffer-name.
2003-04-12 15:51:57 +00:00
Juanma Barranquero
f9d56d5997 (gamegrid-add-score): Add info to docstring.
(gamegrid-add-score-with-update-game-score-1): New function, factored out of
`gamegriod-add-score-with-update-game-score'.
(gamegrid-add-score-with-update-game-score): Use it.  Fall back on
`gamegrid-add-score-insecure' if the requested file does not exist in
$(gamedir), in case the user has installed a game on his own.
(gamegrid-add-score-insecure): Accept optional directory argument.
2003-02-26 10:19:29 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Andreas Schwab
8c4d9806ec (solitaire-mode-map): Use command remapping instead of
substitute-key-definition.
2003-01-12 20:50:32 +00:00
Andreas Schwab
65877b9c16 (lm-mode-map): Use command remapping instead of
substitute-key-definition.
2003-01-12 20:50:11 +00:00
Andreas Schwab
4cbb318942 (gomoku-mode-map): Use command remapping instead of
substitute-key-definition.
2003-01-12 20:49:41 +00:00
Andreas Schwab
3ed7472c12 (decipher-mode-map): Use command remapping instead of
substitute-key-definition.
2003-01-12 20:49:14 +00:00
Simon Josefsson
34c4c919b0 (morse-code): Add Norwegian non-ASCII characters. 2002-11-21 19:18:07 +00:00
Simon Josefsson
4203c128a6 (morse-code): Add non-ASCII characters, according
to table at http://www.soton.ac.uk/~scp93ch/morse/.
2002-11-21 18:11:49 +00:00
Markus Rost
456f0b95dc Add provide call. 2002-11-15 05:25:19 +00:00
Juanma Barranquero
0a10297a06 Add "no-byte-compile: t" in first line. 2002-10-01 17:06:54 +00:00
Richard M. Stallman
daa6ddb5d6 (doctor-doc): Add 2 question words.
(doctor-getnoun): Parse and save the complete object phrase.
2002-09-23 16:04:57 +00:00
Richard M. Stallman
0f7df8ac6a (gamegrid-face): new variable to emulate a buffer-local default face.
(gamegrid-xbm): new variable; XBM image as a replacement for
`gamegrid-xpm' on Emacsen compiled without XPM-support.
(gamegrid-colorize-glyph): Ported XEmacs-code for the generation
of images to Emacs.
(gamegrid-match-spec): Call `gamegrid-make-image-from-vector' to
convert XEmacs-type image descriptors.
(gamegrid-color-display-p): Removed. (Use `display-colors-p' instead.)
(gamegrid-make-image-from-vector): New function. Convert XEmacs'
image descriptors.
(gamegrid-display-type): Use Emacs' standard `display-.*-p'
functions to check for display capabilities. Fix the recognition
of image-support in Emacs 21 by this way.
(gamegrid-hide-cursor): Removed.
(gamegrid-setup-default-font): Ported the code from XEmacs to
Emacs: create a new face and assign the variable `gamegrid-face'
to it. Make sure that the face is not higher than the smallest
image used by the game.
(gamegrid-initialize-display): Use `(setq cursor-type nil)'
instead of `gamegrid-hide-cursor'.
(gamegrid-set-face): If `gamegrid-display-mode' is 'glyph, put an
image in the buffer, instead of applying a face.
(gamegrid-init-buffer): If `gamegrid-display-mode' is 'glyph, put
the face held by `gamegrid-face' in an overlay over the whole
buffer to emulate a buffer-local default-face.
2002-09-23 16:03:03 +00:00
Richard M. Stallman
4bd2c0134a (bb-right): Respect prefix argument.
(bb-left, bb-up, bb-down): Likewise.
2002-09-20 18:34:12 +00:00
Richard M. Stallman
05a841569d (gomoku-move-up, gomoku-move-down):
Use forward-line and move-to-column.
2002-09-16 19:32:53 +00:00
Francesco Potortì
ba8cb9c56d (tetris-blank-options, tetris-cell-options):
Remove various redundant `(t nil)'.
(tetris-border-options): Use color on tty if available.
2002-09-13 13:33:57 +00:00
Francesco Potortì
c2f8b57c62 (snake-border-options): Use color on tty if available. 2002-09-13 13:31:54 +00:00
Francesco Potortì
6add75170c (pong-border-options): Use color on tty if
available.  Reset color on tty to be [0.5 0.5 0.5].
2002-09-13 13:30:09 +00:00
Richard M. Stallman
a5bce90d94 (gamegrid-make-color-tty-face): Handle string as COLOR arg.
(gamegrid-display-type): Don't assume display-color-p
implies a color-x terminal.
(gamegrid-hide-cursor): Set `cursor-type' local variable.
2002-09-10 16:47:16 +00:00
John Paul Wallington
a3e58c1a03 2002-09-10 Deepak Goel <deego@glue.umd.edu>
* play/doctor.el (doc//): Rename from `//'.  Update callers.
	(doc$): Rename from `$'.  Update callers.
2002-09-10 05:48:44 +00:00
John Paul Wallington
454473ea06 (doctor-cadr, doctor-caddr, doctor-cddr): Remove.
Update callers.
2002-09-09 05:50:58 +00:00
Richard M. Stallman
27664fbec1 (doctor-doc): Recognize question words and use qlist.
Use doctor-shorten's return value.
(doctor-shorten): Compute a return value, don't alter `sent'.
(doctor-hates1): Add a question mark.
(doctor-strangelove): Unused function deleted.
2002-09-09 00:25:09 +00:00
Stefan Monnier
1a4914f340 Use find-file-hook instead of find-file-hooks. 2002-08-15 00:48:20 +00:00
Juanma Barranquero
318cfc6481 (dun-physobj-desc): Fix typo. 2002-07-03 11:29:28 +00:00