1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

378 Commits

Author SHA1 Message Date
Juanma Barranquero
5883afc5c4 (life-patterns): Add a few more interesting patterns.
(life-setup): Force `show-trailing-whitespace' to nil.
2006-09-15 01:26:41 +00:00
Eli Zaretskii
33aba6a0e3 (life-display-generation): Test for input manually if `sleeptime' is negative
or null.
2006-09-09 10:43:49 +00:00
Chong Yidong
0369eb8545 * subr.el (sit-for): New function.
* play/hanoi.el (hanoi-sit-for): Check sit-for return value.
2006-07-10 18:52:13 +00:00
Thien-Thi Nguyen
ac052b48cb Comment munging; nfc. 2006-07-05 07:44:35 +00:00
Thien-Thi Nguyen
e12d3ded2a (dun-load-d, dun-eval): Use eval-buffer. 2006-07-05 07:35:46 +00:00
Miles Bader
a2064b094c lisp/play/cookie1.el (cookie): Work properly when there's only one entry
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-323
2006-06-21 05:09:32 +00:00
Thien-Thi Nguyen
f47adf18e1 (pong-init-buffer): Fill buffer with spaces instead of ^A. 2006-06-09 14:23:49 +00:00
Richard M. Stallman
2af34f255b (lm-font-lock-face-O, lm-font-lock-face-X): Make them faces.
(lm-font-lock-keywords): Update appropriately.
2006-04-09 19:20:02 +00:00
Chong Yidong
5a6c1d871e * files.el (safe-local-variable-values): New option.
(hack-local-variables-prop-line): Return a list of variable-value
	pairs if MODE-ONLY is non-nil.
	(hack-local-variables): Construct list of variable-value pairs,
	and apply or reject them in one go.  Ask for confirmation if
	variables are not known safe.
	(hack-local-variables-confirm): Complete rewrite.  Support
	`safe-local-variable-values'.
	(enable-local-variables): Update docstring to reflect new
	behavior.
	(ignored-local-variables): Ignore ignored-local-variables and
	safe-local-variable-values.
	(safe-local-variable-p): New function.
	(risky-local-variable-p): `safe-local-variable' property check
	moved to safe-local-variable-p.
	(hack-one-local-variable): Checks moved to hack-local-variables.

	(byte-compile-dynamic, c-basic-offset, c-file-style,
	c-indent-level, comment-column, fill-column, fill-prefix,
	indent-tabs-mode, kept-new-versions, no-byte-compile,
	no-update-autoloads, outline-regexp, page-delimiter,
	paragraph-start, paragraph-separate, sentence-end,
	sentence-end-double-space tab-width, version-control): Add
	`safe-local-variable' property.

	* find-lisp.el: Delete nonexistent `autocompile' file variable.

	* icomplete.el, play/landmark.el: Change nonexistent
	`outline-layout' file variable to `allout-layout'.
2006-02-14 01:21:31 +00:00
Romain Francoise
1004fadc84 Update copyright notices of all files in the lisp/play directory. 2006-02-05 14:10:45 +00:00
Juri Linkov
9d6f699a8b (doctor-mode-map): Rename from `doc-mode-map'. 2006-01-23 01:28:09 +00:00
Stefan Monnier
0ff223569f Move defvars out of eval-when-compile. Use dolist.
(doc-mode-map): Define explicitly.
(doctor-txtype): Use mapc.
2006-01-18 16:49:53 +00:00
Eli Zaretskii
7a5ea63f0f (apropos-zippy): Call print-help-return-message, similar to other Help
and Apropos commands.
2005-12-03 12:07:55 +00:00
Stefan Monnier
47b5f6d679 (blackbox-mode-map): Move init into declaration.
(blackbox-redefine-key): Add argument `map'.
2005-10-25 15:28:00 +00:00
Eli Zaretskii
35b1f2e99b (blackbox-redefine-key): New function.
(blackbox-mode-map): Use it to remap existing bindings for cursor motion
instead of binding literal keys.
2005-10-25 08:40:16 +00:00
Richard M. Stallman
a8bccd82cf (doctor-doc): Don't say "psychiatrist".
(doctor-symptoms): Likewise.
2005-10-23 18:19:47 +00:00
Thien-Thi Nguyen
03c609c126 (zone): Wrap body with save-window-excursion. 2005-10-06 18:25:26 +00:00
Romain Francoise
ce5a3ac01e 2005-09-25 Romain Francoise <romain@orebokech.com>
* dired-aux.el (dired-copy-file-recursive):
	* dired.el (dired-delete-file):
	* ediff-mult.el (ediff-dir-diff-copy-file):
	* ediff-util.el (ediff-test-save-region):
	* forms.el (forms-mode):
	* ido.el (ido-file-internal, ido-delete-file-at-head):
	* log-edit.el (log-edit-done):
	* ses.el (ses-yank-resize):
	* play/gomoku.el (gomoku-human-plays, gomoku)
	(gomoku-human-resigns, gomoku-prompt-for-other-game)
	(gomoku-offer-a-draw):
	* play/landmark.el (lm-human-resigns, lm):
	* net/eudcb-ldap.el (eudc-ldap-check-base):
	* play/mpuz.el (mpuz-offer-abort, mpuz-try-letter, mpuz-close-game):
	* progmodes/ebrowse.el (ebrowse-find-pattern):
	* progmodes/idlw-shell.el (idlwave-shell-set-bp-check):
	* textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer):
	End `yes-or-no-p' and `y-or-n-p' prompts with question mark and
	space.

	* vc.el (vc-delete-file):
	* play/gomoku.el (gomoku-terminate-game, gomoku)
	(gomoku-prompt-for-move, gomoku-human-takes-back):
	* play/landmark.el (lm-human-takes-back, lm-prompt-for-move)
	(lm-start-robot, lm-human-plays): Remove extraneous spaces in
	messages.
2005-09-24 23:26:28 +00:00
Romain Francoise
5b76833fd5 2005-09-24 Emilio C. Lopes <eclig@gmx.net>
* woman.el (woman-file-name):
	* wid-edit.el (widget-file-prompt-value)
	(widget-coding-system-prompt-value):
	* w32-fns.el (set-w32-system-coding-system):
	* vc.el (vc-version-diff, vc-annotate):
	* textmodes/reftex-auc.el (reftex-arg-cite)
	(reftex-arg-index-tag):
	* textmodes/refer.el (refer-get-bib-files):
	* textmodes/artist.el (artist-figlet-choose-font):
	* terminal.el (terminal-emulator):
	* replace.el (occur-read-primary-args):
	* rect.el (string-rectangle, string-insert-rectangle):
	* ps-print.el (ps-print-preprint):
	* progmodes/pascal.el (pascal-goto-defun):
	* progmodes/etags.el (visit-tags-table, visit-tags-table-buffer):
	* progmodes/compile.el (compilation-find-file):
	* printing.el (pr-interactive-n-up):
	* play/animate.el (animate-birthday-present):
	* net/rcompile.el (remote-compile):
	* man.el (man, Man-goto-section, Man-follow-manual-reference):
	* mail/rmailsum.el (rmail-summary-search-backward)
	(rmail-summary-search):
	* mail/rmailout.el (rmail-output-read-rmail-file-name)
	(rmail-output-read-file-name):
	* mail/rmail.el (rmail-search, rmail-search-backwards):
	* mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs):
	* locate.el (locate):
	* international/quail.el (quail-show-keyboard-layout):
	* international/mule.el (set-buffer-file-coding-system)
	(revert-buffer-with-coding-system, set-file-name-coding-system)
	(set-terminal-coding-system, set-keyboard-coding-system)
	(set-next-selection-coding-system):
	* international/mule-diag.el (describe-coding-system)
	(describe-font, describe-fontset):
	* international/mule-cmds.el (universal-coding-system-argument)
	(search-unencodable-char, describe-input-method)
	(set-language-environment, describe-language-environment):
	* international/codepage.el (codepage-setup):
	* international/code-pages.el (codepage-setup):
	* info.el (Info-search, Info-follow-reference)
	(Info-search-backward):
	* emacs-lisp/advice.el (ad-read-advised-function)
	(ad-read-advice-class, ad-clear-cache, ad-activate)
	(ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name)
	(ad-enable-advice, ad-disable-advice, ad-remove-advice)
	(ad-read-regexp):
	* ediff-util.el (ediff-toggle-regexp-match):
	* ediff-ptch.el (ediff-prompt-for-patch-file):
	* dired-aux.el (dired-diff):
	* diff.el (diff):
	* cus-edit.el (custom-variable-prompt):
	* calendar/timeclock.el (timeclock-ask-for-project):
	* calc/calcalg3.el (calc-get-fit-variables):
	* calc/calc-store.el (calc-edit-variable)
	(calc-permanent-variable):
	* vc-mcvs.el (vc-mcvs-register):
	* shadowfile.el (shadow-define-literal-group):
	* woman.el (woman-file-name):
	* vc.el (vc-version-diff, vc-merge):
	* textmodes/reftex-index.el (reftex-index-complete-tag):
	* format.el (format-decode-buffer, format-decode-region):
	* emulation/viper-cmd.el (viper-read-string-with-history):
	* emacs-lisp/debug.el (cancel-debug-on-entry):
	* emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
	* ediff.el (ediff-merge-revisions)
	(ediff-merge-revisions-with-ancestor, ediff-revision):
	* completion.el (interactive-completion-string-reader):
	* calc/calc-prog.el (calc-user-define-formula):
	Follow convention for reading with the minibuffer.
2005-09-24 13:44:02 +00:00
Deepak Goel
8c307e0f56 Message format spec fixes, commit no. 4 2005-09-18 12:32:51 +00:00
Juanma Barranquero
d94707e058 (ps-printer-name, ps-lpr-command): Add defvars. 2005-08-30 10:25:22 +00:00
Dan Nicolaescu
e95e5f8193 * mh-customize.el: Do not use face-alias compatibility for
faces that did not appear in the previous Emacs release.

* buff-menu.el:
* compare-w.el:
* emacs-lisp/testcover.el:
* play/gomoku.el:
* play/mpuz.el:
* progmodes/flymake.el:
* progmodes/gdb-ui.el:
* progmodes/idlw-help.el:
* progmodes/idlw-shell.el:
* progmodes/ld-script.el:
* progmodes/which-func.el:
* ruler-mode.el:
* strokes.el:
* textmodes/sgml-mode.el:
* textmodes/table.el: Do not use face-alias for backward
compatibility for faces that did not appear in the previous Emacs
release.
2005-08-15 21:29:32 +00:00
Richard M. Stallman
47ef2dea27 (gametree-mode): Use make-local-variable, not make-variable-buffer-local. 2005-08-09 02:56:24 +00:00
Juanma Barranquero
6f08431c31 (doctor-type-symbol): "?\ " -> "?\s".
(**mad**, *debug*, *print-space*, *print-upcase*, abuselst, abusewords, account,
afraidof, arerelated, areyou, bak, beclst, bother, bye, canyou, chatlst,
continue, deathlst, describe, drnk, drugs, eliza-flag, elizalst, famlst, feared,
fears, feelings-about, foullst, found, hello, history, howareyoulst, howdyflag,
huhlst, ibelieve, improve, inter, isee, isrelated, lincount, longhuhlst, lover,
machlst, mathlst, maybe, moods, neglst, obj, object, owner, please, problems,
qlist, random-adjective, relation, remlst, repetitive-shortness, replist,
rms-flag, schoollst, sent, sexlst, shortbeclst, shortlst, something, sportslst,
stallmanlst, states, subj, suicide-flag, sure, things, thlst, toklst, typos,
verb, want, whatwhen, whereoutp, whysay, whywant, zippy-flag, zippylst):
Defvar at compile time.
2005-08-02 09:42:20 +00:00
Thien-Thi Nguyen
5fd6d89f46 Update years in copyright notice; nfc. 2005-08-01 15:47:19 +00:00
Juanma Barranquero
f706036b3e (zone-pgm-stress-destress): Use insert-buffer-substring', not insert-buffer'. 2005-07-18 11:17:42 +00:00
Richard M. Stallman
2b632b1668 (tetris-mode): Avoid warning. 2005-07-16 18:38:33 +00:00
Richard M. Stallman
2f4fbe7a92 (snake-mode): Avoid warning. 2005-07-16 18:35:08 +00:00
Richard M. Stallman
bf7f684c17 (gamegrid-shared-game-dir): Add defvar.
(gamegrid-set-display-table): Avoid warning.
(gamegrid-set-timer): Likewise.
(gamegrid-make-mono-tty-face): Use set-face-inverse-video-p.
(gamegrid-add-score-with-update-game-score-1): Take FILE as argument.
(gamegrid-add-score-with-update-game-score): Pass that argument.
Rename have-shared-game-dir to gamegrid-shared-game-dir.
2005-07-16 18:34:22 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
e0b3c2b98d (decipher-loop-with-breaks): Change space constants "protected" from end of line
by a comment to "?\s".
2005-06-29 13:55:15 +00:00
Lute Kamstra
2aa8e74af0 (doctor-mode-map): Remove defvar.
(doctor-mode): Use define-derived-mode.
2005-06-10 12:06:05 +00:00
Lute Kamstra
09e9987080 (blackbox-mode): Use run-mode-hooks. 2005-06-10 12:03:06 +00:00
Miles Bader
530b0472e7 Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-398
Remove "-face" suffix from mpuz faces

2005-06-10  Miles Bader  <miles@gnu.org>

   * lisp/play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
   (mpuz-text): Remove "-face" suffix from face names.
   (mpuz-unsolved-face, mpuz-solved-face, mpuz-trivial-face)
   (mpuz-text-face): New backward-compatibility aliases for renamed faces.
   (mpuz-create-buffer, mpuz-paint-digit): Use renamed mpuz faces.
2005-06-10 11:38:27 +00:00
Miles Bader
62d39a4265 Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-397
Remove "-face" suffix from gomoku faces

2005-06-10  Miles Bader  <miles@gnu.org>

   * lisp/play/gomoku.el (gomoku-O, gomoku-X):
   Remove "-face" suffix from face names.
   (gomoku-font-lock-O-face, gomoku-font-lock-X-face):
   New backward-compatibility aliases for renamed faces.
   (gomoku-font-lock-keywords): Use renamed gomoku faces.
2005-06-10 11:38:11 +00:00
Lute Kamstra
313cdfa4ca (dun-mode): Use define-derived-mode.
(dungeon-mode-map): Rename to dun-mode-map.  Keep old name as an
obsolete alias.
2005-06-10 10:58:59 +00:00
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